@cto.af/eslint-config 6.0.3 → 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.3",
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.1.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
@@ -307,7 +307,8 @@ export const rules = {
307
307
  '@typescript-eslint/strict-boolean-expressions': 'off', // Can't config
308
308
  '@typescript-eslint/switch-exhaustiveness-check': 'off', // Can't config
309
309
  '@typescript-eslint/triple-slash-reference': 'error',
310
- '@typescript-eslint/typedef': 'error',
310
+ // Deprecated
311
+ // '@typescript-eslint/typedef': 'error',
311
312
  '@typescript-eslint/unbound-method': 'off', // Can't config
312
313
  '@typescript-eslint/unified-signatures': 'off', // Too hard
313
314
  '@typescript-eslint/use-unknown-in-catch-callback-variable': 'error',