@cto.af/eslint-config 6.2.3 → 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.3",
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