Skip to content

Common ESLint configuration for X-GOVUK projects

License

Notifications You must be signed in to change notification settings

x-govuk/eslint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

X-GOVUK ESLint Config

Common ESLint configuration for X-GOVUK projects.

It is loosely based on the configuration proposed for use by GOV.UK Frontend.

Requirements

Node.js v18 or later.

Installation

npm install @x-govuk/eslint-config

Usage

See the ESLint documentation on combining configs. Example:

import xGovukConfig from "@x-govuk/eslint-config";

export default [
  ...xGovukConfig,
  {
    ignores: ["foo", "bar.js"],
  },
];

Contributing

Bug reports and feature requests are welcome. Please raise an issue or submit a pull request.

Releasing a new version

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.

About

Common ESLint configuration for X-GOVUK projects

Resources

License

Stars

Watchers

Forks

Packages

No packages published