@aarongoldenthal/eslint-config-standard 45.0.2 → 46.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.
- package/eslint-comments-config.js +0 -1
- package/node-config.js +3 -1
- package/package.json +13 -13
- package/unicorn-config.js +4 -0
|
@@ -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
|
@@ -44,7 +44,9 @@ const config = defineConfig({
|
|
|
44
44
|
'node/no-restricted-require': 'off',
|
|
45
45
|
'node/no-sync': 'off',
|
|
46
46
|
'node/no-top-level-await': 'off',
|
|
47
|
-
|
|
47
|
+
// Files in bin are always published since npm v10
|
|
48
|
+
// https://docs.npmjs.com/cli/v10/configuring-npm/package-json#files
|
|
49
|
+
'node/no-unpublished-bin': 'off',
|
|
48
50
|
'node/no-unpublished-import': 'error',
|
|
49
51
|
'node/no-unpublished-require': 'error',
|
|
50
52
|
'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": "
|
|
3
|
+
"version": "46.0.0",
|
|
4
4
|
"description": "Standard ESLint configuration settings",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"config-inspector": "npx @eslint/config-inspector build --
|
|
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": "^
|
|
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.
|
|
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": "
|
|
60
|
+
"eslint-plugin-n": "18.0.1",
|
|
61
61
|
"eslint-plugin-playwright": "2.10.2",
|
|
62
|
-
"eslint-plugin-unicorn": "
|
|
63
|
-
"globals": "17.
|
|
64
|
-
"typescript-eslint": "8.59.
|
|
62
|
+
"eslint-plugin-unicorn": "64.0.0",
|
|
63
|
+
"globals": "17.6.0",
|
|
64
|
+
"typescript-eslint": "8.59.3"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@eslint/config-inspector": "
|
|
68
|
-
"@vitest/coverage-v8": "4.1.
|
|
69
|
-
"eslint": "10.
|
|
70
|
-
"jest": "30.
|
|
67
|
+
"@eslint/config-inspector": "3.0.2",
|
|
68
|
+
"@vitest/coverage-v8": "4.1.6",
|
|
69
|
+
"eslint": "10.3.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.
|
|
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
|