@aarongoldenthal/eslint-config-standard 41.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 },
@@ -85,6 +86,7 @@ export default defineConfig({
85
86
  'jsdoc/require-property-description': 'error', // Recommended
86
87
  'jsdoc/require-property-name': 'error', // Recommended
87
88
  'jsdoc/require-property-type': 'error', // Recommended
89
+ 'jsdoc/require-rejects': 'off',
88
90
  'jsdoc/require-returns': 'error', // Recommended
89
91
  'jsdoc/require-returns-check': 'error', // Recommended
90
92
  'jsdoc/require-returns-description': 'error', // Recommended
@@ -113,3 +115,5 @@ export default defineConfig({
113
115
  'jsdoc/valid-types': 'error' // Recommended
114
116
  }
115
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": "41.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.24",
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": "61.1.8",
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.38.0",
65
+ "@eslint/config-inspector": "1.4.2",
66
+ "@vitest/coverage-v8": "4.0.13",
67
+ "eslint": "9.39.1",
68
68
  "jest": "30.2.0",
69
- "markdownlint-cli2": "0.18.1",
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 },
@@ -75,6 +76,7 @@ export default defineConfig({
75
76
  'vitest/prefer-to-have-length': 'error',
76
77
  'vitest/prefer-todo': 'error',
77
78
  'vitest/prefer-vi-mocked': 'error',
79
+ 'vitest/require-awaited-expect-poll': 'error',
78
80
  'vitest/require-hook': 'error',
79
81
  'vitest/require-local-test-context-for-concurrent-snapshots': 'error', // Recommended
80
82
  'vitest/require-mock-type-parameters': 'off',
@@ -87,3 +89,5 @@ export default defineConfig({
87
89
  'vitest/warn-todo': 'error'
88
90
  }
89
91
  });
92
+
93
+ export default config;