eslint-config-nodejs-pmb 0.3.2 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/ci.yaml +4 -4
- package/devDepPatterns.js +1 -0
- package/package.json +4 -4
- package/rules.js +6 -6
- package/test/expectedPeerDependencies.js +1 -1
|
@@ -14,15 +14,15 @@ jobs:
|
|
|
14
14
|
runs-on: ubuntu-latest
|
|
15
15
|
strategy:
|
|
16
16
|
matrix:
|
|
17
|
-
|
|
18
|
-
-
|
|
17
|
+
ver:
|
|
18
|
+
- { node: 16 }
|
|
19
19
|
|
|
20
20
|
steps:
|
|
21
21
|
- uses: actions/checkout@v2
|
|
22
|
-
- name: Use Node.js ${{ matrix.node
|
|
22
|
+
- name: 'Use Node.js ${{ matrix.ver.node }}.x'
|
|
23
23
|
uses: actions/setup-node@v1
|
|
24
24
|
with:
|
|
25
|
-
node-version: ${{ matrix.node
|
|
25
|
+
node-version: ${{ matrix.ver.node }}.x
|
|
26
26
|
- run: npm install .
|
|
27
27
|
- run: npm audit
|
|
28
28
|
- run: npm test
|
package/devDepPatterns.js
CHANGED
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{ "name": "eslint-config-nodejs-pmb",
|
|
2
|
-
"version": "0.3.
|
|
2
|
+
"version": "0.3.5",
|
|
3
3
|
"description": "My favorite eslint rules",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"absdir": "^1.0.6",
|
|
30
|
-
"eslint-plugin-json-light-pmb": "^1.0.
|
|
31
|
-
"eslint-plugin-
|
|
30
|
+
"eslint-plugin-json-light-pmb": "^1.0.7",
|
|
31
|
+
"eslint-plugin-n": "^15.2.4",
|
|
32
32
|
"p-fatal": "^0.1.3",
|
|
33
33
|
"safe-sortedjson": "^1.0.6",
|
|
34
34
|
"usnam-pmb": "^0.2.5"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"eslint": "^8.
|
|
37
|
+
"eslint": "^8.13.0"
|
|
38
38
|
},
|
|
39
39
|
|
|
40
40
|
"npm vs. BOM = Unexpected token": "-*- coding: UTF-8 -*-"
|
package/rules.js
CHANGED
|
@@ -44,14 +44,14 @@ const rules = {
|
|
|
44
44
|
'func-names': ['error', 'as-needed'],
|
|
45
45
|
'function-call-argument-newline': 'off',
|
|
46
46
|
'function-paren-newline': 'off',
|
|
47
|
-
'global-require': 'off', // deprecated, see '
|
|
47
|
+
'global-require': 'off', // deprecated, see 'n/global-require' instead.
|
|
48
48
|
'import/no-extraneous-dependencies': ['error', extraneousDepsOpts],
|
|
49
49
|
'key-spacing': 'off', // b/c it doesn't support all the combinations I want
|
|
50
50
|
'lines-around-directive': 'off',
|
|
51
51
|
'max-len': ['error', lineLengthRules],
|
|
52
52
|
'no-console': 'off',
|
|
53
53
|
'no-control-regex': 'off',
|
|
54
|
-
'
|
|
54
|
+
'n/global-require': 'off', // I'd rather exempt just top-level arrays
|
|
55
55
|
'no-div-regex': 'error',
|
|
56
56
|
'no-extra-semi': 'off',
|
|
57
57
|
'no-multiple-empty-lines': 'off',
|
|
@@ -77,13 +77,13 @@ const overrides = [
|
|
|
77
77
|
{ files: ['**.js'], parserOptions: { sourceType: 'script' } },
|
|
78
78
|
{ files: ['**.mjs'],
|
|
79
79
|
rules: {
|
|
80
|
-
'
|
|
80
|
+
'n/no-unsupported-features/es-syntax': 'off', // assume esmod-pmb
|
|
81
81
|
},
|
|
82
82
|
},
|
|
83
83
|
{ files: devDepPatternsList,
|
|
84
84
|
rules: {
|
|
85
|
-
'
|
|
86
|
-
'
|
|
85
|
+
'n/no-unpublished-import': 'off',
|
|
86
|
+
'n/no-unpublished-require': 'off',
|
|
87
87
|
},
|
|
88
88
|
},
|
|
89
89
|
];
|
|
@@ -100,7 +100,7 @@ const config = {
|
|
|
100
100
|
...[
|
|
101
101
|
...configDeps.filter(mustStartWith('eslint-config-')),
|
|
102
102
|
].map(require.resolve),
|
|
103
|
-
'plugin:
|
|
103
|
+
'plugin:n/recommended',
|
|
104
104
|
],
|
|
105
105
|
|
|
106
106
|
overrides,
|