@aarongoldenthal/eslint-config-standard 40.0.0 → 42.0.0

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.
@@ -1,7 +1,8 @@
1
1
  import { defineConfig } from 'eslint/config';
2
2
  import eslintCommentsPlugin from '@eslint-community/eslint-plugin-eslint-comments';
3
3
 
4
- export default defineConfig({
4
+ // Create local variable due to vitest v4 coverage changes
5
+ const config = defineConfig({
5
6
  files: ['**/*.{js,mjs,cjs}'],
6
7
  name: 'eslint-comments (all files)',
7
8
  plugins: { comments: eslintCommentsPlugin },
@@ -26,3 +27,5 @@ export default defineConfig({
26
27
  'comments/require-description': 'error'
27
28
  }
28
29
  });
30
+
31
+ export default config;
package/esm-config.js CHANGED
@@ -1,7 +1,8 @@
1
1
  import { defineConfig } from 'eslint/config';
2
2
  import unicornPlugin from 'eslint-plugin-unicorn';
3
3
 
4
- export default defineConfig({
4
+ // Create local variable due to vitest v4 coverage changes
5
+ const config = defineConfig({
5
6
  files: ['**/*.js'],
6
7
  languageOptions: {
7
8
  sourceType: 'module'
@@ -13,3 +14,5 @@ export default defineConfig({
13
14
  'unicorn/prefer-top-level-await': 'error'
14
15
  }
15
16
  });
17
+
18
+ export default config;
package/jest-config.js CHANGED
@@ -2,7 +2,8 @@ import { defineConfig } from 'eslint/config';
2
2
  import globals from 'globals';
3
3
  import jestPlugin from 'eslint-plugin-jest';
4
4
 
5
- export default defineConfig({
5
+ // Create local variable due to vitest v4 coverage changes
6
+ const config = defineConfig({
6
7
  files: [
7
8
  '**/__tests__/**/*.{js,mjs,cjs}',
8
9
  '**/?(*.)+(spec|test).{js,mjs,cjs}'
@@ -85,6 +86,9 @@ export default defineConfig({
85
86
  'jest/valid-describe-callback': 'error',
86
87
  'jest/valid-expect': 'error',
87
88
  'jest/valid-expect-in-promise': 'error',
89
+ 'jest/valid-mock-module-path': 'error',
88
90
  'jest/valid-title': 'error'
89
91
  }
90
92
  });
93
+
94
+ export default config;
package/jsdoc-config.js CHANGED
@@ -1,7 +1,8 @@
1
1
  import { defineConfig } from 'eslint/config';
2
2
  import jsdocPlugin from 'eslint-plugin-jsdoc';
3
3
 
4
- export default defineConfig({
4
+ // Create local variable due to vitest v4 coverage changes
5
+ const config = defineConfig({
5
6
  files: ['**/*.{js,mjs,cjs}'],
6
7
  name: 'jsdoc (all files)',
7
8
  plugins: { jsdoc: jsdocPlugin },
@@ -38,6 +39,7 @@ export default defineConfig({
38
39
  'jsdoc/check-values': 'error', // Recommended
39
40
  'jsdoc/convert-to-jsdoc-comments': 'off',
40
41
  'jsdoc/empty-tags': 'error', // Recommended
42
+ 'jsdoc/escape-inline-tags': 'error',
41
43
  'jsdoc/implements-on-classes': 'error', // Recommended
42
44
  'jsdoc/imports-as-dependencies': 'error',
43
45
  'jsdoc/informative-docs': 'error',
@@ -52,6 +54,7 @@ export default defineConfig({
52
54
  'jsdoc/no-restricted-syntax': 'off',
53
55
  'jsdoc/no-types': 'off',
54
56
  'jsdoc/no-undefined-types': 'error', // Recommended
57
+ 'jsdoc/prefer-import-tag': 'error',
55
58
  'jsdoc/reject-any-type': 'error', // Recommended
56
59
  'jsdoc/reject-function-type': 'error', // Recommended
57
60
  'jsdoc/require-asterisk-prefix': 'error',
@@ -83,11 +86,13 @@ export default defineConfig({
83
86
  'jsdoc/require-property-description': 'error', // Recommended
84
87
  'jsdoc/require-property-name': 'error', // Recommended
85
88
  'jsdoc/require-property-type': 'error', // Recommended
89
+ 'jsdoc/require-rejects': 'off',
86
90
  'jsdoc/require-returns': 'error', // Recommended
87
91
  'jsdoc/require-returns-check': 'error', // Recommended
88
92
  'jsdoc/require-returns-description': 'error', // Recommended
89
93
  'jsdoc/require-returns-type': 'error', // Recommended
90
94
  'jsdoc/require-template': 'error',
95
+ 'jsdoc/require-template-description': 'error',
91
96
  'jsdoc/require-throws': 'error',
92
97
  'jsdoc/require-throws-description': 'error',
93
98
  'jsdoc/require-throws-type': 'error', // Recommended
@@ -102,7 +107,13 @@ export default defineConfig({
102
107
  'never',
103
108
  { applyToEndTag: false, startLines: 1 }
104
109
  ],
110
+ 'jsdoc/ts-method-signature-style': 'off',
111
+ 'jsdoc/ts-no-empty-object-type': 'off',
112
+ 'jsdoc/ts-no-unnecessary-template-expression': 'off',
113
+ 'jsdoc/ts-prefer-function-type': 'off',
105
114
  'jsdoc/type-formatting': 'off',
106
115
  'jsdoc/valid-types': 'error' // Recommended
107
116
  }
108
117
  });
118
+
119
+ export default config;
package/node-config.js CHANGED
@@ -2,7 +2,8 @@ import { defineConfig } from 'eslint/config';
2
2
  import globals from 'globals';
3
3
  import nodePlugin from 'eslint-plugin-n';
4
4
 
5
- export default defineConfig({
5
+ // Create local variable due to vitest v4 coverage changes
6
+ const config = defineConfig({
6
7
  files: ['**/*.{js,mjs,cjs}'],
7
8
  languageOptions: {
8
9
  globals: {
@@ -53,3 +54,5 @@ export default defineConfig({
53
54
  'node/process-exit-as-throw': 'error'
54
55
  }
55
56
  });
57
+
58
+ export default config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aarongoldenthal/eslint-config-standard",
3
- "version": "40.0.0",
3
+ "version": "42.0.0",
4
4
  "description": "Standard ESLint configuration settings",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -51,24 +51,24 @@
51
51
  "homepage": "https://gitlab.com/gitlab-ci-utils/eslint-config-standard",
52
52
  "dependencies": {
53
53
  "@eslint-community/eslint-plugin-eslint-comments": "4.5.0",
54
- "@vitest/eslint-plugin": "1.3.12",
54
+ "@vitest/eslint-plugin": "1.4.3",
55
55
  "eslint-config-prettier": "10.1.8",
56
- "eslint-plugin-jest": "29.0.1",
57
- "eslint-plugin-jsdoc": "59.0.2",
56
+ "eslint-plugin-jest": "29.2.1",
57
+ "eslint-plugin-jsdoc": "61.4.1",
58
58
  "eslint-plugin-n": "17.23.1",
59
- "eslint-plugin-playwright": "2.2.2",
59
+ "eslint-plugin-playwright": "2.3.0",
60
60
  "eslint-plugin-promise": "7.2.1",
61
- "eslint-plugin-unicorn": "61.0.2",
62
- "globals": "16.4.0"
61
+ "eslint-plugin-unicorn": "62.0.0",
62
+ "globals": "16.5.0"
63
63
  },
64
64
  "devDependencies": {
65
- "@eslint/config-inspector": "1.3.0",
66
- "@vitest/coverage-v8": "3.2.4",
67
- "eslint": "9.36.0",
68
- "jest": "30.1.3",
69
- "markdownlint-cli2": "0.18.1",
65
+ "@eslint/config-inspector": "1.4.2",
66
+ "@vitest/coverage-v8": "4.0.13",
67
+ "eslint": "9.39.1",
68
+ "jest": "30.2.0",
69
+ "markdownlint-cli2": "0.19.1",
70
70
  "prettier": "3.6.2",
71
- "vitest": "3.2.4"
71
+ "vitest": "4.0.13"
72
72
  },
73
73
  "peerDependencies": {
74
74
  "eslint": "^9.22.0"
@@ -38,6 +38,7 @@ export default defineConfig({
38
38
  'playwright/no-slowed-test': 'error',
39
39
  'playwright/no-standalone-expect': 'error',
40
40
  'playwright/no-unsafe-references': 'error',
41
+ 'playwright/no-unused-locators': 'error', // Recommended
41
42
  'playwright/no-useless-await': 'error',
42
43
  'playwright/no-useless-not': 'error',
43
44
  'playwright/no-wait-for-navigation': 'error',
package/promise-config.js CHANGED
@@ -1,7 +1,8 @@
1
1
  import { defineConfig } from 'eslint/config';
2
2
  import promisePlugin from 'eslint-plugin-promise';
3
3
 
4
- export default defineConfig({
4
+ // Create local variable due to vitest v4 coverage changes
5
+ const config = defineConfig({
5
6
  files: ['**/*.{js,mjs,cjs}'],
6
7
  name: 'promise (all files)',
7
8
  plugins: { promise: promisePlugin },
@@ -26,3 +27,5 @@ export default defineConfig({
26
27
  'promise/valid-params': 'error'
27
28
  }
28
29
  });
30
+
31
+ export default config;
@@ -11,7 +11,8 @@ import promiseConfig from './promise-config.js';
11
11
  import unicornConfigs from './unicorn-configs.js';
12
12
  import vitestConfig from './vitest-config.js';
13
13
 
14
- export default defineConfig([
14
+ // Create local variable due to vitest v4 coverage changes
15
+ const config = defineConfig([
15
16
  eslintCommentsConfig,
16
17
  jsdocConfig,
17
18
  nodeConfig,
@@ -23,3 +24,5 @@ export default defineConfig([
23
24
  esmConfig,
24
25
  prettierConfig
25
26
  ]);
27
+
28
+ export default config;
package/recommended.js CHANGED
@@ -10,7 +10,8 @@ import prettierConfig from 'eslint-config-prettier';
10
10
  import promiseConfig from './promise-config.js';
11
11
  import unicornConfigs from './unicorn-configs.js';
12
12
 
13
- export default defineConfig([
13
+ // Create local variable due to vitest v4 coverage changes
14
+ const config = defineConfig([
14
15
  eslintCommentsConfig,
15
16
  jestConfig,
16
17
  jsdocConfig,
@@ -21,3 +22,5 @@ export default defineConfig([
21
22
  baseConfigs,
22
23
  { name: 'prettier (all files)', ...prettierConfig }
23
24
  ]);
25
+
26
+ export default config;
@@ -1,7 +1,8 @@
1
1
  import { defineConfig } from 'eslint/config';
2
2
  import unicornPlugin from 'eslint-plugin-unicorn';
3
3
 
4
- export default defineConfig([
4
+ // Create local variable due to vitest v4 coverage changes
5
+ const config = defineConfig([
5
6
  {
6
7
  files: ['**/*.{js,mjs,cjs}'],
7
8
  name: 'unicorn (all files)',
@@ -40,6 +41,7 @@ export default defineConfig([
40
41
  'unicorn/no-empty-file': 'error', // Recommended
41
42
  'unicorn/no-for-loop': 'error', // Recommended
42
43
  'unicorn/no-hex-escape': 'error', // Recommended
44
+ 'unicorn/no-immediate-mutation': 'error', // Recommended
43
45
  'unicorn/no-instanceof-builtins': 'error', // Recommended
44
46
  'unicorn/no-invalid-fetch-options': 'error', // Recommended
45
47
  'unicorn/no-invalid-remove-event-listener': 'error', // Recommended
@@ -68,6 +70,7 @@ export default defineConfig([
68
70
  'unicorn/no-unreadable-array-destructuring': 'error', // Recommended
69
71
  'unicorn/no-unreadable-iife': 'error', // Recommended
70
72
  'unicorn/no-unused-properties': 'error',
73
+ 'unicorn/no-useless-collection-argument': 'error', // Recommended
71
74
  'unicorn/no-useless-error-capture-stack-trace': 'error', // Recommended
72
75
  'unicorn/no-useless-fallback-in-spread': 'error', // Recommended
73
76
  'unicorn/no-useless-length-check': 'error', // Recommended
@@ -119,6 +122,7 @@ export default defineConfig([
119
122
  'unicorn/prefer-query-selector': 'error', // Recommended
120
123
  'unicorn/prefer-reflect-apply': 'error', // Recommended
121
124
  'unicorn/prefer-regexp-test': 'error', // Recommended
125
+ 'unicorn/prefer-response-static-json': 'error', // Recommended
122
126
  'unicorn/prefer-set-has': 'error', // Recommended
123
127
  'unicorn/prefer-set-size': 'error', // Recommended
124
128
  'unicorn/prefer-single-call': 'error', // Recommended
@@ -181,3 +185,5 @@ export default defineConfig([
181
185
  }
182
186
  }
183
187
  ]);
188
+
189
+ export default config;
package/vitest-config.js CHANGED
@@ -1,7 +1,8 @@
1
1
  import { defineConfig } from 'eslint/config';
2
2
  import vitestPlugin from '@vitest/eslint-plugin';
3
3
 
4
- export default defineConfig({
4
+ // Create local variable due to vitest v4 coverage changes
5
+ const config = defineConfig({
5
6
  files: ['**/__tests__/**/*.{js,mjs}', '**/?(*.)+(spec|test).{js,mjs}'],
6
7
  name: 'vitest (test files)',
7
8
  plugins: { vitest: vitestPlugin },
@@ -48,6 +49,7 @@ export default defineConfig({
48
49
  'vitest/padding-around-describe-blocks': 'off',
49
50
  'vitest/padding-around-expect-groups': 'off',
50
51
  'vitest/padding-around-test-blocks': 'off',
52
+ 'vitest/prefer-called-exactly-once-with': 'error', // Recommended
51
53
  'vitest/prefer-called-once': 'error', // Recommended
52
54
  'vitest/prefer-called-times': 'off', // Recommended
53
55
  'vitest/prefer-called-with': 'error',
@@ -59,6 +61,7 @@ export default defineConfig({
59
61
  'vitest/prefer-expect-resolves': 'error',
60
62
  'vitest/prefer-hooks-in-order': 'error',
61
63
  'vitest/prefer-hooks-on-top': 'error',
64
+ 'vitest/prefer-import-in-mock': 'error',
62
65
  'vitest/prefer-importing-vitest-globals': 'error',
63
66
  'vitest/prefer-lowercase-title': 'error',
64
67
  'vitest/prefer-mock-promise-shorthand': 'error',
@@ -73,6 +76,7 @@ export default defineConfig({
73
76
  'vitest/prefer-to-have-length': 'error',
74
77
  'vitest/prefer-todo': 'error',
75
78
  'vitest/prefer-vi-mocked': 'error',
79
+ 'vitest/require-awaited-expect-poll': 'error',
76
80
  'vitest/require-hook': 'error',
77
81
  'vitest/require-local-test-context-for-concurrent-snapshots': 'error', // Recommended
78
82
  'vitest/require-mock-type-parameters': 'off',
@@ -85,3 +89,5 @@ export default defineConfig({
85
89
  'vitest/warn-todo': 'error'
86
90
  }
87
91
  });
92
+
93
+ export default config;