@cto.af/eslint-config 6.0.2 → 6.0.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cto.af/eslint-config",
3
- "version": "6.0.2",
3
+ "version": "6.0.4",
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.12.0",
18
- "@stylistic/eslint-plugin": "4.2.0",
19
- "eslint-plugin-n": "17.17.0",
18
+ "@stylistic/eslint-plugin": "4.4.0",
19
+ "eslint-plugin-n": "17.18.0",
20
20
  "eslint-plugin-redos": "4.4.5",
21
- "globals": "16.0.0"
21
+ "globals": "16.2.0"
22
22
  },
23
- "packageManager": "pnpm@10.10.0",
23
+ "packageManager": "pnpm@10.11.0",
24
24
  "engines": {
25
25
  "node": ">=20"
26
26
  }
package/rules/js.js CHANGED
@@ -42,6 +42,7 @@ export const rules = {
42
42
  'no-sparse-arrays': 'error',
43
43
  'no-template-curly-in-string': 'error',
44
44
  'no-this-before-super': 'error',
45
+ 'no-unassigned-vars': 'error',
45
46
  'no-undef': 'error',
46
47
  'no-unexpected-multiline': 'error',
47
48
  'no-unmodified-loop-condition': 'error',
package/rules/ts.js CHANGED
@@ -249,6 +249,7 @@ export const rules = {
249
249
  '@typescript-eslint/no-unnecessary-type-arguments': 'off', // Can't config
250
250
  '@typescript-eslint/no-unnecessary-type-assertion': 'off', // Can't config
251
251
  '@typescript-eslint/no-unnecessary-type-constraint': 'error',
252
+ '@typescript-eslint/no-unnecessary-type-conversion': 'error',
252
253
  '@typescript-eslint/no-unnecessary-type-parameters': 'error', // Warning: preliminary
253
254
  '@typescript-eslint/no-unsafe-argument': 'off', // Can't config
254
255
  '@typescript-eslint/no-unsafe-assignment': 'off', // Can't config
@@ -306,7 +307,8 @@ export const rules = {
306
307
  '@typescript-eslint/strict-boolean-expressions': 'off', // Can't config
307
308
  '@typescript-eslint/switch-exhaustiveness-check': 'off', // Can't config
308
309
  '@typescript-eslint/triple-slash-reference': 'error',
309
- '@typescript-eslint/typedef': 'error',
310
+ // Deprecated
311
+ // '@typescript-eslint/typedef': 'error',
310
312
  '@typescript-eslint/unbound-method': 'off', // Can't config
311
313
  '@typescript-eslint/unified-signatures': 'off', // Too hard
312
314
  '@typescript-eslint/use-unknown-in-catch-callback-variable': 'error',