7.0.0 • Published 11 months ago

@dwp/eslint-config-base v7.0.0

Weekly downloads
1,755
License
ISC
Repository
github
Last release
11 months ago

@dwp/eslint-config-base

Shareable eslint config enforcing our lint conventions.

Getting started

This configuration assumes that the dependant project is using Prettier to style its code, leaving ESLint to handle the linting of code.

npm install --save-dev @dwp/eslint-config-base eslint

Add an .eslintrc.cjs file that looks something like:

module.exports = {
  extends: ["@dwp/eslint-config-base"],
  env: {
    node: true,
  },
};

Add eslint to your test suite like this, or see our package.json for an example of how we do it:

{
  "scripts": {
    "lint": "eslint ."
  }
}

Rules

This package contains only syntax linting rules, and explicitly excludes any styling rules that may conflict with our recommended styling ruleset, which uses Prettier.

6.1.1

1 year ago

7.0.0

11 months ago

6.1.0

1 year ago

6.0.0

2 years ago

5.0.1

3 years ago

5.0.0

3 years ago

4.1.0

5 years ago

4.0.0

5 years ago

3.0.0

5 years ago

2.1.0

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.0

6 years ago