eslint 9.11.1 → 9.12.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/README.md +1 -1
- package/lib/cli-engine/formatters/stylish.js +2 -2
- package/lib/cli.js +1 -6
- package/lib/config/config-loader.js +694 -0
- package/lib/eslint/eslint-helpers.js +128 -134
- package/lib/eslint/eslint.js +84 -294
- package/lib/rule-tester/rule-tester.js +33 -2
- package/lib/rules/complexity.js +16 -6
- package/lib/shared/flags.js +1 -0
- package/lib/unsupported-api.js +2 -1
- package/package.json +25 -12
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "eslint",
|
3
|
-
"version": "9.
|
3
|
+
"version": "9.12.0",
|
4
4
|
"author": "Nicholas C. Zakas <nicholas+npm@nczconsulting.com>",
|
5
5
|
"description": "An AST-based pattern checker for JavaScript.",
|
6
6
|
"bin": {
|
@@ -26,6 +26,19 @@
|
|
26
26
|
"default": "./lib/universal.js"
|
27
27
|
}
|
28
28
|
},
|
29
|
+
"typesVersions": {
|
30
|
+
"*": {
|
31
|
+
"use-at-your-own-risk": [
|
32
|
+
"./lib/types/use-at-your-own-risk.d.ts"
|
33
|
+
],
|
34
|
+
"rules": [
|
35
|
+
"./lib/types/rules/index.d.ts"
|
36
|
+
],
|
37
|
+
"universal": [
|
38
|
+
"./lib/types/universal.d.ts"
|
39
|
+
]
|
40
|
+
}
|
41
|
+
},
|
29
42
|
"scripts": {
|
30
43
|
"build:docs:update-links": "node tools/fetch-docs-links.js",
|
31
44
|
"build:site": "node Makefile.js gensite",
|
@@ -38,6 +51,7 @@
|
|
38
51
|
"lint:unused": "knip",
|
39
52
|
"lint:fix": "trunk check -y --ignore=docs/**/*.js -a --filter=eslint && trunk check -y --ignore=docs/**/*.js",
|
40
53
|
"lint:fix:docs:js": "trunk check -y --ignore=** --ignore=!docs/**/*.js -a --flter=eslint && trunk check -y --ignore=** --ignore=!docs/**/*.js",
|
54
|
+
"lint:types": "attw --pack",
|
41
55
|
"release:generate:alpha": "node Makefile.js generatePrerelease -- alpha",
|
42
56
|
"release:generate:beta": "node Makefile.js generatePrerelease -- beta",
|
43
57
|
"release:generate:latest": "node Makefile.js generateRelease -- latest",
|
@@ -87,11 +101,11 @@
|
|
87
101
|
"@eslint/config-array": "^0.18.0",
|
88
102
|
"@eslint/core": "^0.6.0",
|
89
103
|
"@eslint/eslintrc": "^3.1.0",
|
90
|
-
"@eslint/js": "9.
|
104
|
+
"@eslint/js": "9.12.0",
|
91
105
|
"@eslint/plugin-kit": "^0.2.0",
|
106
|
+
"@humanfs/node": "^0.16.5",
|
92
107
|
"@humanwhocodes/module-importer": "^1.0.1",
|
93
|
-
"@humanwhocodes/retry": "^0.3.
|
94
|
-
"@nodelib/fs.walk": "^1.2.8",
|
108
|
+
"@humanwhocodes/retry": "^0.3.1",
|
95
109
|
"@types/estree": "^1.0.6",
|
96
110
|
"@types/json-schema": "^7.0.15",
|
97
111
|
"ajv": "^6.12.4",
|
@@ -99,9 +113,9 @@
|
|
99
113
|
"cross-spawn": "^7.0.2",
|
100
114
|
"debug": "^4.3.2",
|
101
115
|
"escape-string-regexp": "^4.0.0",
|
102
|
-
"eslint-scope": "^8.0
|
103
|
-
"eslint-visitor-keys": "^4.
|
104
|
-
"espree": "^10.
|
116
|
+
"eslint-scope": "^8.1.0",
|
117
|
+
"eslint-visitor-keys": "^4.1.0",
|
118
|
+
"espree": "^10.2.0",
|
105
119
|
"esquery": "^1.5.0",
|
106
120
|
"esutils": "^2.0.2",
|
107
121
|
"fast-deep-equal": "^3.1.3",
|
@@ -111,19 +125,18 @@
|
|
111
125
|
"ignore": "^5.2.0",
|
112
126
|
"imurmurhash": "^0.1.4",
|
113
127
|
"is-glob": "^4.0.0",
|
114
|
-
"is-path-inside": "^3.0.3",
|
115
128
|
"json-stable-stringify-without-jsonify": "^1.0.1",
|
116
129
|
"lodash.merge": "^4.6.2",
|
117
130
|
"minimatch": "^3.1.2",
|
118
131
|
"natural-compare": "^1.4.0",
|
119
132
|
"optionator": "^0.9.3",
|
120
|
-
"strip-ansi": "^6.0.1",
|
121
133
|
"text-table": "^0.2.0"
|
122
134
|
},
|
123
135
|
"devDependencies": {
|
136
|
+
"@arethetypeswrong/cli": "^0.16.4",
|
124
137
|
"@babel/core": "^7.4.3",
|
125
138
|
"@babel/preset-env": "^7.4.3",
|
126
|
-
"@eslint/json": "^0.
|
139
|
+
"@eslint/json": "^0.5.0",
|
127
140
|
"@trunkio/launcher": "^1.3.0",
|
128
141
|
"@types/node": "^20.11.5",
|
129
142
|
"@typescript-eslint/parser": "^8.4.0",
|
@@ -153,7 +166,7 @@
|
|
153
166
|
"globals": "^15.0.0",
|
154
167
|
"got": "^11.8.3",
|
155
168
|
"gray-matter": "^4.0.3",
|
156
|
-
"jiti": "^1.
|
169
|
+
"jiti": "^2.1.0",
|
157
170
|
"knip": "^5.21.0",
|
158
171
|
"lint-staged": "^11.0.0",
|
159
172
|
"load-perf": "^0.2.0",
|
@@ -166,7 +179,7 @@
|
|
166
179
|
"metascraper-logo": "^5.25.7",
|
167
180
|
"metascraper-logo-favicon": "^5.25.7",
|
168
181
|
"metascraper-title": "^5.25.7",
|
169
|
-
"mocha": "^
|
182
|
+
"mocha": "^10.7.3",
|
170
183
|
"node-polyfill-webpack-plugin": "^1.0.3",
|
171
184
|
"npm-license": "^0.3.3",
|
172
185
|
"pirates": "^4.0.5",
|