@cto.af/eslint-config 2.0.2 → 3.0.0
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/ava.js +3 -2
- package/index.js +8 -5
- package/jsdoc.js +2 -2
- package/modules.js +2 -2
- package/package.json +9 -9
- package/ts.js +2 -3
- package/typescript.js +2 -2
package/ava.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict'
|
|
1
|
+
'use strict';
|
|
2
2
|
|
|
3
3
|
// Intended to be used in the `test` subdir, with:
|
|
4
4
|
//
|
|
@@ -52,5 +52,6 @@ module.exports = {
|
|
|
52
52
|
// way that esplugin-n finds depedencies.
|
|
53
53
|
allowModules: ['ava'],
|
|
54
54
|
}],
|
|
55
|
+
'n/no-extraneous-require': ['error', {allowModules: ['ava']}],
|
|
55
56
|
},
|
|
56
|
-
}
|
|
57
|
+
};
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict'
|
|
1
|
+
'use strict';
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
env: {
|
|
@@ -78,8 +78,10 @@ module.exports = {
|
|
|
78
78
|
'no-unused-vars': [
|
|
79
79
|
'error', {
|
|
80
80
|
args: 'none',
|
|
81
|
+
argsIgnorePattern: '^_',
|
|
81
82
|
caughtErrors: 'all',
|
|
82
|
-
caughtErrorsIgnorePattern: '^ignore',
|
|
83
|
+
caughtErrorsIgnorePattern: '^(_|ignore)',
|
|
84
|
+
varsIgnorePattern: '^_',
|
|
83
85
|
},
|
|
84
86
|
],
|
|
85
87
|
'no-use-before-define': 'error',
|
|
@@ -307,9 +309,10 @@ module.exports = {
|
|
|
307
309
|
'padding-line-between-statements': 'error',
|
|
308
310
|
'quotes': ['error', 'single', {avoidEscape: true}],
|
|
309
311
|
'rest-spread-spacing': ['error', 'never'],
|
|
310
|
-
|
|
312
|
+
// Massive breaking change. I changed my mind.
|
|
313
|
+
'semi': ['error', 'always'],
|
|
311
314
|
'semi-spacing': 'error',
|
|
312
|
-
'semi-style': ['error'
|
|
315
|
+
'semi-style': ['error'],
|
|
313
316
|
'space-before-blocks': 'error',
|
|
314
317
|
'space-before-function-paren': ['error', 'never'],
|
|
315
318
|
'space-in-parens': 'error',
|
|
@@ -389,4 +392,4 @@ module.exports = {
|
|
|
389
392
|
},
|
|
390
393
|
},
|
|
391
394
|
],
|
|
392
|
-
}
|
|
395
|
+
};
|
package/jsdoc.js
CHANGED
package/modules.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cto.af/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "hildjj's lint rules",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"license": "MIT",
|
|
17
17
|
"repository": "cto-af/eslint-config",
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@typescript-eslint/eslint-plugin": "~
|
|
20
|
-
"@typescript-eslint/parser": "~
|
|
19
|
+
"@typescript-eslint/eslint-plugin": "~6",
|
|
20
|
+
"@typescript-eslint/parser": "~6",
|
|
21
21
|
"eslint-plugin-ava": "~14",
|
|
22
22
|
"eslint-plugin-jsdoc": "~46",
|
|
23
23
|
"eslint-plugin-n": "~16",
|
|
@@ -41,16 +41,16 @@
|
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@typescript-eslint/eslint-plugin": "
|
|
45
|
-
"@typescript-eslint/parser": "
|
|
46
|
-
"eslint": "^8.
|
|
44
|
+
"@typescript-eslint/eslint-plugin": "6.0.0",
|
|
45
|
+
"@typescript-eslint/parser": "6.0.0",
|
|
46
|
+
"eslint": "^8.45.0",
|
|
47
47
|
"eslint-find-rules": "4.1.0",
|
|
48
48
|
"eslint-plugin-ava": "^14.0.0",
|
|
49
49
|
"eslint-plugin-hildjj": "link:rules",
|
|
50
|
-
"eslint-plugin-jsdoc": "^46.3
|
|
50
|
+
"eslint-plugin-jsdoc": "^46.4.3",
|
|
51
51
|
"eslint-plugin-n": "16.0.1",
|
|
52
|
-
"npm-check-updates": "16.10.
|
|
53
|
-
"typescript": "5.1.
|
|
52
|
+
"npm-check-updates": "16.10.15",
|
|
53
|
+
"typescript": "5.1.6"
|
|
54
54
|
},
|
|
55
55
|
"engines": {
|
|
56
56
|
"node": ">=16"
|
package/ts.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict'
|
|
1
|
+
'use strict';
|
|
2
2
|
|
|
3
3
|
// Last updated 2023-01-12
|
|
4
4
|
// "@typescript-eslint/eslint-plugin": "5.37.0"
|
|
@@ -143,7 +143,6 @@ module.exports = {
|
|
|
143
143
|
'@typescript-eslint/no-shadow': 'error',
|
|
144
144
|
'@typescript-eslint/no-this-alias': 'error',
|
|
145
145
|
'@typescript-eslint/no-throw-literal': 'off', // Can't config
|
|
146
|
-
'@typescript-eslint/no-type-alias': 'off', // Not important
|
|
147
146
|
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'off', // Can't config
|
|
148
147
|
'@typescript-eslint/no-unnecessary-condition': 'off', // Can't config
|
|
149
148
|
'@typescript-eslint/no-unnecessary-qualifier': 'off', // Can't config
|
|
@@ -215,4 +214,4 @@ module.exports = {
|
|
|
215
214
|
'@typescript-eslint/unbound-method': 'off', // Can't config
|
|
216
215
|
'@typescript-eslint/unified-signatures': 'off', // Too hard
|
|
217
216
|
},
|
|
218
|
-
}
|
|
217
|
+
};
|