File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 8
8
9
9
* [ eslint-config-sane] ( https://github.com/kellyselden/eslint-config-sane )
10
10
* [ eslint-plugin-json-files] ( https://github.com/kellyselden/eslint-plugin-json-files )
11
- * [ eslint-plugin-node ] ( https://github.com/mysticatea /eslint-plugin-node )
11
+ * [ eslint-plugin-n ] ( https://github.com/eslint-community /eslint-plugin-n )
12
12
13
13
### Installation
14
14
15
15
```
16
- npm install --save-dev eslint-config-sane eslint-config-sane-node eslint-plugin-json-files eslint-plugin-node eslint-plugin-prefer-let
16
+ npm install --save-dev eslint-config-sane eslint-config-sane-node eslint-plugin-json-files eslint-plugin-n eslint-plugin-prefer-let
17
17
```
18
18
19
19
Also make sure to add ` --ext js,json ` to your eslint command to include linting JSON files.
Original file line number Diff line number Diff line change @@ -4,15 +4,15 @@ module.exports = {
4
4
} ,
5
5
extends : [
6
6
'sane' ,
7
- 'plugin:node /recommended'
7
+ 'plugin:n /recommended'
8
8
] ,
9
9
plugins : [
10
10
'json-files'
11
11
] ,
12
12
rules : {
13
13
'strict' : 'error' ,
14
14
15
- 'node /no-unsupported-features/es-syntax' : [ 'error' , {
15
+ 'n /no-unsupported-features/es-syntax' : [ 'error' , {
16
16
'ignores' : [
17
17
// remove once https://github.com/mysticatea/eslint-plugin-node/issues/250 is fixed
18
18
'dynamicImport'
Original file line number Diff line number Diff line change 26
26
"peerDependencies" : {
27
27
"eslint-config-sane" : " >=1" ,
28
28
"eslint-plugin-json-files" : " >=0.8" ,
29
- "eslint-plugin-node " : " >=11 "
29
+ "eslint-plugin-n " : " >=14 "
30
30
}
31
31
}
You can’t perform that action at this time.
0 commit comments