23.0.2 • Published 4 years ago

eslint-config-env v23.0.2

Weekly downloads
375
License
MIT
Repository
github
Last release
4 years ago

eslint-config-env

npm version CI status

ESLint config optimized for authoring packages that adapts to the project environment, supporting:

Install

To install eslint-config-env and it’s peer dependencies with npm, run:

npm install eslint-config-env eslint-plugin-node eslint-plugin-import eslint-plugin-jsdoc --save-dev

Configure ESLint in your project:

{
  "extends": ["env"]
}

Also follow the setup instructions that are relevant to your project below…

Node.js

Every project must specify supported Node.js versions in the package.json engines.node field.

Browsers

If it’s not a Babel project, also install eslint-plugin-compat:

npm install eslint-plugin-compat --save-dev

Supported browsers must be specified in the package.json browserslist field.

Babel

Also install @babel/eslint-parser:

npm install @babel/eslint-parser --save-dev

Prettier

Also install eslint-plugin-prettier and eslint-config-prettier:

npm install eslint-plugin-prettier eslint-config-prettier --save-dev

React

Also install eslint-plugin-react and eslint-plugin-react-hooks:

npm install eslint-plugin-react eslint-plugin-react-hooks --save-dev

Next.js

Follow the Babel setup instructions.

Also install @next/eslint-plugin-next:

npm install @next/eslint-plugin-next --save-dev

jsdoc-md

A jsdoc-md project does not require additional setup.

23.0.2

4 years ago

23.0.1

4 years ago

23.0.0

4 years ago

22.0.0

4 years ago

21.0.0

4 years ago

19.0.1

4 years ago

19.0.2

4 years ago

20.0.1

4 years ago

20.0.0

4 years ago

19.0.0

4 years ago

18.0.1

4 years ago

18.0.0

4 years ago

17.0.0

4 years ago

16.0.0

4 years ago

15.0.1

5 years ago

15.0.0

5 years ago

14.0.4

5 years ago

14.0.3

5 years ago

14.0.2

5 years ago

14.0.1

5 years ago

14.0.0

5 years ago

13.0.6

5 years ago

13.0.5

5 years ago

13.0.4

5 years ago

13.0.3

5 years ago

13.0.2

6 years ago

13.0.1

6 years ago

13.0.0

6 years ago

12.0.1

6 years ago

12.0.0

6 years ago

11.0.1

6 years ago

11.0.0

6 years ago

10.0.0

6 years ago

9.1.0

6 years ago

9.0.0

6 years ago

8.0.0

6 years ago

7.0.1

6 years ago

7.0.0

6 years ago

6.0.0

6 years ago

5.0.0

6 years ago

4.0.1

6 years ago

4.0.0

6 years ago

3.0.0

6 years ago

2.0.0

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago

0.5.0

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago