@aarongoldenthal/eslint-config-standard 45.0.2 → 46.0.1

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.
@@ -12,7 +12,6 @@ const config = defineConfig({
12
12
  'comments/no-aggregating-enable': 'error',
13
13
  'comments/no-duplicate-disable': 'error',
14
14
  'comments/no-unlimited-disable': 'error',
15
- 'comments/no-unused-disable': 'error',
16
15
  'comments/no-unused-enable': 'error',
17
16
  'comments/no-use': [
18
17
  'error',
package/node-config.js CHANGED
@@ -16,14 +16,7 @@ const config = defineConfig({
16
16
  rules: {
17
17
  'node/callback-return': 'error',
18
18
  'node/exports-style': 'error',
19
- // Disable for "*.ts" since it adds a ".js" extension to all imports,
20
- // regardless of the file type. See
21
- // https://github.com/eslint-community/eslint-plugin-n/issues/422.
22
- 'node/file-extension-in-import': [
23
- 'error',
24
- 'always',
25
- { '.cts': 'never', '.mts': 'never', '.ts': 'never' }
26
- ],
19
+ 'node/file-extension-in-import': ['error', 'always'],
27
20
  'node/global-require': 'error',
28
21
  'node/handle-callback-err': 'error',
29
22
  'node/hashbang': 'error',
@@ -44,7 +37,9 @@ const config = defineConfig({
44
37
  'node/no-restricted-require': 'off',
45
38
  'node/no-sync': 'off',
46
39
  'node/no-top-level-await': 'off',
47
- 'node/no-unpublished-bin': 'error',
40
+ // Files in bin are always published since npm v10
41
+ // https://docs.npmjs.com/cli/v10/configuring-npm/package-json#files
42
+ 'node/no-unpublished-bin': 'off',
48
43
  'node/no-unpublished-import': 'error',
49
44
  'node/no-unpublished-require': 'error',
50
45
  'node/no-unsupported-features/es-builtins': 'error',
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@aarongoldenthal/eslint-config-standard",
3
- "version": "45.0.2",
3
+ "version": "46.0.1",
4
4
  "description": "Standard ESLint configuration settings",
5
5
  "type": "module",
6
6
  "scripts": {
7
- "config-inspector": "npx @eslint/config-inspector build --out-dir=public",
7
+ "config-inspector": "npx @eslint/config-inspector build --outDir=public",
8
8
  "hooks:pre-commit": "npm run lint && npm run prettier:check",
9
9
  "hooks:pre-push": "npm audit --audit-level=critical && npm test",
10
10
  "lint": "npm run lint:js && npm run lint:md",
@@ -25,7 +25,7 @@
25
25
  "author": "Aaron Goldenthal <npm@aarongoldenthal.com>",
26
26
  "license": "MIT",
27
27
  "engines": {
28
- "node": "^20.19.0 || ^22.13.0 || >=24.0.0"
28
+ "node": "^22.11.0 || ^24.11.0 || >=26"
29
29
  },
30
30
  "exports": {
31
31
  "./base-config": "./base-config.js",
@@ -53,25 +53,25 @@
53
53
  "homepage": "https://gitlab.com/gitlab-ci-utils/eslint-config-standard",
54
54
  "dependencies": {
55
55
  "@eslint-community/eslint-plugin-eslint-comments": "4.7.1",
56
- "@vitest/eslint-plugin": "1.6.16",
56
+ "@vitest/eslint-plugin": "1.6.17",
57
57
  "eslint-config-prettier": "10.1.8",
58
58
  "eslint-plugin-jest": "29.15.2",
59
59
  "eslint-plugin-jsdoc": "62.9.0",
60
- "eslint-plugin-n": "17.24.0",
61
- "eslint-plugin-playwright": "2.10.2",
62
- "eslint-plugin-unicorn": "63.0.0",
63
- "globals": "17.5.0",
64
- "typescript-eslint": "8.59.0"
60
+ "eslint-plugin-n": "18.0.1",
61
+ "eslint-plugin-playwright": "2.10.3",
62
+ "eslint-plugin-unicorn": "64.0.0",
63
+ "globals": "17.6.0",
64
+ "typescript-eslint": "8.59.4"
65
65
  },
66
66
  "devDependencies": {
67
- "@eslint/config-inspector": "2.0.0",
68
- "@vitest/coverage-v8": "4.1.5",
69
- "eslint": "10.2.1",
70
- "jest": "30.3.0",
67
+ "@eslint/config-inspector": "3.0.2",
68
+ "@vitest/coverage-v8": "4.1.6",
69
+ "eslint": "10.4.0",
70
+ "jest": "30.4.2",
71
71
  "markdownlint-cli2": "0.22.1",
72
72
  "prettier": "3.8.3",
73
73
  "typescript": "6.0.3",
74
- "vitest": "4.1.5"
74
+ "vitest": "4.1.6"
75
75
  },
76
76
  "peerDependencies": {
77
77
  "eslint": "^10.0.0",
package/unicorn-config.js CHANGED
@@ -17,6 +17,7 @@ const config = defineConfig([
17
17
  'unicorn/consistent-empty-array-spread': 'error', // Recommended
18
18
  'unicorn/consistent-existence-index-check': 'error', // Recommended
19
19
  'unicorn/consistent-function-scoping': 'error', // Recommended
20
+ 'unicorn/consistent-template-literal-escape': 'error', // Recommended
20
21
  'unicorn/custom-error-definition': 'error',
21
22
  'unicorn/empty-brace-spaces': 'off', // Recommended, Prettier
22
23
  'unicorn/error-message': 'error', // Recommended
@@ -75,6 +76,7 @@ const config = defineConfig([
75
76
  'unicorn/no-useless-collection-argument': 'error', // Recommended
76
77
  'unicorn/no-useless-error-capture-stack-trace': 'error', // Recommended
77
78
  'unicorn/no-useless-fallback-in-spread': 'error', // Recommended
79
+ 'unicorn/no-useless-iterator-to-array': 'error', // Recommended
78
80
  'unicorn/no-useless-length-check': 'error', // Recommended
79
81
  'unicorn/no-useless-promise-resolve-reject': 'error', // Recommended
80
82
  'unicorn/no-useless-spread': 'error', // Recommended
@@ -127,6 +129,7 @@ const config = defineConfig([
127
129
  'unicorn/prefer-response-static-json': 'error', // Recommended
128
130
  'unicorn/prefer-set-has': 'error', // Recommended
129
131
  'unicorn/prefer-set-size': 'error', // Recommended
132
+ 'unicorn/prefer-simple-condition-first': 'error', // Recommended
130
133
  'unicorn/prefer-single-call': 'error', // Recommended
131
134
  'unicorn/prefer-spread': 'error', // Recommended
132
135
  'unicorn/prefer-string-raw': 'error', // Recommended
@@ -158,6 +161,7 @@ const config = defineConfig([
158
161
  'unicorn/require-post-message-target-origin': 'off',
159
162
  'unicorn/string-content': 'off',
160
163
  'unicorn/switch-case-braces': ['error', 'always'], // Recommended
164
+ 'unicorn/switch-case-break-position': 'error', // Recommended
161
165
  'unicorn/template-indent': 'error', // Recommended
162
166
  'unicorn/text-encoding-identifier-case': 'error', // Recommended
163
167
  'unicorn/throw-new-error': 'error' // Recommended