@cto.af/eslint-config 6.2.2 → 6.2.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.2.2",
3
+ "version": "6.2.4",
4
4
  "description": "hildjj's lint rules",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -14,13 +14,13 @@
14
14
  "url": "git+https://github.com/cto-af/eslint-config.git"
15
15
  },
16
16
  "dependencies": {
17
- "@eslint/json": "0.14.0",
18
- "@stylistic/eslint-plugin": "5.7.0",
19
- "eslint-plugin-n": "17.23.1",
17
+ "@eslint/json": "1.0.1",
18
+ "@stylistic/eslint-plugin": "5.9.0",
19
+ "eslint-plugin-n": "17.24.0",
20
20
  "eslint-plugin-redos": "4.4.5",
21
- "globals": "17.0.0"
21
+ "globals": "17.3.0"
22
22
  },
23
- "packageManager": "pnpm@10.28.0",
23
+ "packageManager": "pnpm@10.30.1",
24
24
  "engines": {
25
25
  "node": ">=20"
26
26
  }
package/rules/ava.js CHANGED
@@ -5,25 +5,34 @@
5
5
  export const rules = {
6
6
  // [ava](https://github.com/avajs/eslint-plugin-ava?tab=readme-ov-file#rules)
7
7
  'ava/assertion-arguments': 'error',
8
+ 'ava/failing-test-url': 'error',
8
9
  'ava/hooks-order': 'error',
9
10
  'ava/max-asserts': 'off',
10
11
  'ava/no-async-fn-without-await': 'error',
11
- 'ava/no-duplicate-modifiers': 'error',
12
+ 'ava/no-ava-in-dependencies': 'error',
13
+ 'ava/no-commented-tests': 'error',
14
+ 'ava/no-conditional-assertion': 'error',
15
+ 'ava/no-duplicate-hooks': 'error',
12
16
  'ava/no-identical-title': 'error',
13
17
  'ava/no-ignored-test-files': 'off', // Buggy
14
18
  'ava/no-import-test-files': 'error',
15
19
  'ava/no-incorrect-deep-equal': 'error',
16
20
  'ava/no-inline-assertions': 'error',
21
+ 'ava/no-invalid-modifier-chain': 'error',
22
+ 'ava/no-negated-assertion': 'error',
23
+ 'ava/no-nested-assertions': 'error',
17
24
  'ava/no-nested-tests': 'error',
18
25
  'ava/no-only-test': 'error',
19
26
  'ava/no-skip-assert': 'error',
20
27
  'ava/no-skip-test': 'error',
21
28
  'ava/no-todo-implementation': 'error',
22
29
  'ava/no-todo-test': 'error',
23
- 'ava/no-unknown-modifiers': 'error',
30
+ 'ava/no-useless-t-pass': 'error',
24
31
  'ava/prefer-async-await': 'error',
25
32
  'ava/prefer-power-assert': 'off',
26
33
  'ava/prefer-t-regex': 'error',
34
+ 'ava/prefer-t-throws': 'error',
35
+ 'ava/require-assertion': 'error',
27
36
  'ava/test-title': 'error',
28
37
  'ava/test-title-format': 'error',
29
38
  'ava/use-t': 'error',
package/rules/js.js CHANGED
@@ -243,6 +243,7 @@ export const rules = {
243
243
  '@stylistic/curly-newline': 'off', // Too much config
244
244
  '@stylistic/dot-location': ['error', 'property'],
245
245
  '@stylistic/eol-last': 'error',
246
+ '@stylistic/exp-jsx-props-style': 'off', // JSX
246
247
  '@stylistic/exp-list-style': 'off', // Still experimental
247
248
  '@stylistic/function-call-argument-newline': ['error', 'consistent'],
248
249
  '@stylistic/function-call-spacing': 'error',
@@ -389,9 +390,11 @@ export const rules = {
389
390
  'n/no-sync': 'off',
390
391
  'n/prefer-global/buffer': ['error', 'never'],
391
392
  'n/prefer-global/console': 'off', // Hopefully only used in tests and cli
393
+ 'n/prefer-global/crypto': ['error', 'always'],
392
394
  'n/prefer-global/process': 'off',
393
395
  'n/prefer-global/text-decoder': ['error', 'always'],
394
396
  'n/prefer-global/text-encoder': ['error', 'always'],
397
+ 'n/prefer-global/timers': 'error',
395
398
  'n/prefer-global/url': ['error', 'always'],
396
399
  'n/prefer-global/url-search-params': ['error', 'always'],
397
400
  'n/prefer-node-protocol': 'error', // Turn off when needed
package/rules/ts.js CHANGED
@@ -279,7 +279,7 @@ export const rules = {
279
279
  ],
280
280
  '@typescript-eslint/no-use-before-define': 'error',
281
281
  '@typescript-eslint/no-useless-constructor': 'error',
282
- '@typescript-eslint/no-useless-default-assignment': 'error',
282
+ '@typescript-eslint/no-useless-default-assignment': 'off', // I prefer both belt and suspenders
283
283
  '@typescript-eslint/no-useless-empty-export': 'error',
284
284
  '@typescript-eslint/no-wrapper-object-types': 'error', // Turn off in cbor projects
285
285
  '@typescript-eslint/non-nullable-type-assertion-style': 'off', // Can't config
@@ -311,7 +311,7 @@ export const rules = {
311
311
  '@typescript-eslint/restrict-template-expressions': 'off', // Can't config
312
312
  '@typescript-eslint/return-await': 'error',
313
313
  '@typescript-eslint/strict-boolean-expressions': 'off', // Can't config
314
- '@typescript-eslint/strict-void-return': 'error',
314
+ '@typescript-eslint/strict-void-return': 'off', // Can't configure to except event handlers
315
315
  '@typescript-eslint/switch-exhaustiveness-check': 'off', // Can't config
316
316
  '@typescript-eslint/triple-slash-reference': 'error',
317
317
  // Deprecated