Common ESLint configuration for X-GOVUK projects.
It is loosely based on the configuration proposed for use by GOV.UK Frontend.
Node.js v18 or later.
npm install @x-govuk/eslint-config
See the ESLint documentation on combining configs. Example:
import xGovukConfig from "@x-govuk/eslint-config";
export default [
...xGovukConfig,
{
ignores: ["foo", "bar.js"],
},
];
Bug reports and feature requests are welcome. Please raise an issue or submit a pull request.
npm run release
This command will ask you what version you want to use. It will then publish a new version on NPM, create and push a new git tag and then generate release notes ready for posting on GitHub.
Note
Releasing a new version requires permission to publish packages to the @x-govuk
organisation.