@cto.af/eslint-config 6.2.0 → 6.2.2
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/jsdoc_ts.js +1 -0
- package/package.json +4 -4
- package/rules/js.js +1 -1
- package/rules/jsdoc.js +1 -0
- package/rules/ts.js +3 -0
package/jsdoc_ts.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cto.af/eslint-config",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.2",
|
|
4
4
|
"description": "hildjj's lint rules",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@eslint/json": "0.14.0",
|
|
18
|
-
"@stylistic/eslint-plugin": "5.
|
|
18
|
+
"@stylistic/eslint-plugin": "5.7.0",
|
|
19
19
|
"eslint-plugin-n": "17.23.1",
|
|
20
20
|
"eslint-plugin-redos": "4.4.5",
|
|
21
|
-
"globals": "
|
|
21
|
+
"globals": "17.0.0"
|
|
22
22
|
},
|
|
23
|
-
"packageManager": "pnpm@10.
|
|
23
|
+
"packageManager": "pnpm@10.28.0",
|
|
24
24
|
"engines": {
|
|
25
25
|
"node": ">=20"
|
|
26
26
|
}
|
package/rules/js.js
CHANGED
|
@@ -269,7 +269,7 @@ export const rules = {
|
|
|
269
269
|
// '@stylistic/jsx-props-no-multi-spaces': 'off', // Deprecated
|
|
270
270
|
'@stylistic/jsx-quotes': 'off', // Not needed
|
|
271
271
|
'@stylistic/jsx-self-closing-comp': 'off', // Not needed
|
|
272
|
-
'@stylistic/jsx-sort-props': 'off', //
|
|
272
|
+
// '@stylistic/jsx-sort-props': 'off', // Deprecated
|
|
273
273
|
'@stylistic/jsx-tag-spacing': 'off', // Not needed
|
|
274
274
|
'@stylistic/jsx-wrap-multilines': 'off', // Not needed
|
|
275
275
|
|
package/rules/jsdoc.js
CHANGED
|
@@ -60,6 +60,7 @@ export const rules = {
|
|
|
60
60
|
'jsdoc/require-property-description': 'error',
|
|
61
61
|
'jsdoc/require-property-name': 'error',
|
|
62
62
|
'jsdoc/require-property-type': 'error',
|
|
63
|
+
'jsdoc/require-rejects': 'off', // Sounds like a pain.
|
|
63
64
|
'jsdoc/require-returns': ['error', {
|
|
64
65
|
exemptedBy: ['ignore'],
|
|
65
66
|
}],
|
package/rules/ts.js
CHANGED
|
@@ -266,6 +266,7 @@ export const rules = {
|
|
|
266
266
|
'@typescript-eslint/no-unsafe-type-assertion': 'off', // Used all the time
|
|
267
267
|
'@typescript-eslint/no-unsafe-unary-minus': 'error',
|
|
268
268
|
'@typescript-eslint/no-unused-expressions': 'error',
|
|
269
|
+
'@typescript-eslint/no-unused-private-class-members': 'error',
|
|
269
270
|
'@typescript-eslint/no-unused-vars': [
|
|
270
271
|
'error', {
|
|
271
272
|
args: 'all',
|
|
@@ -278,6 +279,7 @@ export const rules = {
|
|
|
278
279
|
],
|
|
279
280
|
'@typescript-eslint/no-use-before-define': 'error',
|
|
280
281
|
'@typescript-eslint/no-useless-constructor': 'error',
|
|
282
|
+
'@typescript-eslint/no-useless-default-assignment': 'error',
|
|
281
283
|
'@typescript-eslint/no-useless-empty-export': 'error',
|
|
282
284
|
'@typescript-eslint/no-wrapper-object-types': 'error', // Turn off in cbor projects
|
|
283
285
|
'@typescript-eslint/non-nullable-type-assertion-style': 'off', // Can't config
|
|
@@ -309,6 +311,7 @@ export const rules = {
|
|
|
309
311
|
'@typescript-eslint/restrict-template-expressions': 'off', // Can't config
|
|
310
312
|
'@typescript-eslint/return-await': 'error',
|
|
311
313
|
'@typescript-eslint/strict-boolean-expressions': 'off', // Can't config
|
|
314
|
+
'@typescript-eslint/strict-void-return': 'error',
|
|
312
315
|
'@typescript-eslint/switch-exhaustiveness-check': 'off', // Can't config
|
|
313
316
|
'@typescript-eslint/triple-slash-reference': 'error',
|
|
314
317
|
// Deprecated
|