eslint-config-env

ESLint config optimized for authoring packages that adapts to the project environment.

MIT 53 个版本
安装
npm install eslint-config-env
yarn add eslint-config-env
pnpm add eslint-config-env
bun add eslint-config-env
README

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 2022-01-04
23.0.1 2021-12-24
23.0.0 2021-11-05
22.0.0 2021-08-01
21.0.0 2021-06-16
20.0.1 2021-05-25
20.0.0 2021-05-12
19.0.2 2021-05-02
19.0.1 2021-04-23
19.0.0 2021-03-30
18.0.1 2021-02-05
18.0.0 2021-02-05
17.0.0 2021-01-22
16.0.0 2021-01-13
15.0.1 2020-07-19
15.0.0 2020-07-13
14.0.4 2020-06-21
14.0.3 2020-06-08
14.0.2 2020-06-06
14.0.1 2020-06-01
14.0.0 2020-05-12
13.0.6 2020-05-03
13.0.5 2020-04-19
13.0.4 2020-03-03
13.0.3 2020-01-26
13.0.2 2020-01-03
13.0.1 2019-12-31
13.0.0 2019-12-28
12.0.1 2019-12-16
12.0.0 2019-12-09
11.0.1 2019-11-27
11.0.0 2019-11-04
10.0.0 2019-10-14
9.1.0 2019-09-19
9.0.0 2019-08-01
8.0.0 2019-07-15
7.0.1 2019-07-14
7.0.0 2019-07-12
6.0.0 2019-05-13
5.0.0 2019-05-05
4.0.0 2019-02-26
3.0.0 2019-02-10
2.0.0 2018-11-15
1.2.1 2018-10-29
1.2.0 2018-10-21
1.1.0 2018-09-04
1.0.0 2018-07-18
0.5.0 2018-06-29
0.4.0 2018-06-27
0.3.0 2018-06-25
0.2.0 2018-06-21
0.1.1 2018-06-12
0.1.0 2018-06-09