oxlint 1.87.0 → 1.89.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/configuration_schema.json +32 -3
- package/dist/bindings.js +27 -27
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +10 -3
- package/dist/js_config.js +1 -1
- package/dist/lint.js +87 -89
- package/dist/plugins-dev.d.ts +6 -2
- package/dist/plugins-dev.js +2 -14
- package/dist/rolldown-runtime.js +1 -1
- package/dist/workspace.js +1 -2
- package/package.json +20 -20
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"markdownDescription": "Globs to ignore during linting. Patterns use gitignore-style matching,\nrooted at the directory containing the configuration file.\nFiles outside that directory cannot be matched; patterns containing `..`\nare rejected as a configuration error."
|
|
58
58
|
},
|
|
59
59
|
"jsPlugins": {
|
|
60
|
-
"description": "JS plugins, allows usage of ESLint plugins with Oxlint.\n\nRead more about JS plugins in\n[the docs](https://oxc.rs/docs/guide/usage/linter/js-plugins.html).\n\nNote: JS plugins are in alpha and not subject to semver.\n\nExamples:\n\nBasic usage with a local plugin path.\n\n```json\n{\n\"jsPlugins\": [\"./custom-plugin.js\"],\n\"rules\": {\n\"custom/rule-name\": \"warn\"\n}\n}\n```\n\nBasic usage with a TypeScript plugin and a local plugin path.\n\nTypeScript plugin files are supported in the following environments:\n- Deno and Bun: TypeScript files are supported natively.\n- Node.js >=22.18.0
|
|
60
|
+
"description": "JS plugins, allows usage of ESLint plugins with Oxlint.\n\nRead more about JS plugins in\n[the docs](https://oxc.rs/docs/guide/usage/linter/js-plugins.html).\n\nNote: JS plugins are in alpha and not subject to semver.\n\nExamples:\n\nBasic usage with a local plugin path.\n\n```json\n{\n\"jsPlugins\": [\"./custom-plugin.js\"],\n\"rules\": {\n\"custom/rule-name\": \"warn\"\n}\n}\n```\n\nBasic usage with a TypeScript plugin and a local plugin path.\n\nTypeScript plugin files are supported in the following environments:\n- Deno and Bun: TypeScript files are supported natively.\n- Node.js >=22.18.0: TypeScript files are supported natively with built-in\ntype-stripping enabled by default.\n\nFor older Node.js versions, TypeScript plugins are not supported. Please use JavaScript plugins or upgrade your Node version.\n\n```json\n{\n\"jsPlugins\": [\"./custom-plugin.ts\"],\n\"rules\": {\n\"custom/rule-name\": \"warn\"\n}\n}\n```\n\nUsing a built-in Rust plugin alongside a JS plugin with the same name\nby giving the JS plugin an alias.\n\n```json\n{\n\"plugins\": [\"import\"],\n\"jsPlugins\": [\n{ \"name\": \"import-js\", \"specifier\": \"eslint-plugin-import\" }\n],\n\"rules\": {\n\"import/no-cycle\": \"error\",\n\"import-js/no-unresolved\": \"warn\"\n}\n}\n```",
|
|
61
61
|
"anyOf": [
|
|
62
62
|
{
|
|
63
63
|
"type": "null"
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"uniqueItems": true
|
|
71
71
|
}
|
|
72
72
|
],
|
|
73
|
-
"markdownDescription": "JS plugins, allows usage of ESLint plugins with Oxlint.\n\nRead more about JS plugins in\n[the docs](https://oxc.rs/docs/guide/usage/linter/js-plugins.html).\n\nNote: JS plugins are in alpha and not subject to semver.\n\nExamples:\n\nBasic usage with a local plugin path.\n\n```json\n{\n\"jsPlugins\": [\"./custom-plugin.js\"],\n\"rules\": {\n\"custom/rule-name\": \"warn\"\n}\n}\n```\n\nBasic usage with a TypeScript plugin and a local plugin path.\n\nTypeScript plugin files are supported in the following environments:\n- Deno and Bun: TypeScript files are supported natively.\n- Node.js >=22.18.0
|
|
73
|
+
"markdownDescription": "JS plugins, allows usage of ESLint plugins with Oxlint.\n\nRead more about JS plugins in\n[the docs](https://oxc.rs/docs/guide/usage/linter/js-plugins.html).\n\nNote: JS plugins are in alpha and not subject to semver.\n\nExamples:\n\nBasic usage with a local plugin path.\n\n```json\n{\n\"jsPlugins\": [\"./custom-plugin.js\"],\n\"rules\": {\n\"custom/rule-name\": \"warn\"\n}\n}\n```\n\nBasic usage with a TypeScript plugin and a local plugin path.\n\nTypeScript plugin files are supported in the following environments:\n- Deno and Bun: TypeScript files are supported natively.\n- Node.js >=22.18.0: TypeScript files are supported natively with built-in\ntype-stripping enabled by default.\n\nFor older Node.js versions, TypeScript plugins are not supported. Please use JavaScript plugins or upgrade your Node version.\n\n```json\n{\n\"jsPlugins\": [\"./custom-plugin.ts\"],\n\"rules\": {\n\"custom/rule-name\": \"warn\"\n}\n}\n```\n\nUsing a built-in Rust plugin alongside a JS plugin with the same name\nby giving the JS plugin an alias.\n\n```json\n{\n\"plugins\": [\"import\"],\n\"jsPlugins\": [\n{ \"name\": \"import-js\", \"specifier\": \"eslint-plugin-import\" }\n],\n\"rules\": {\n\"import/no-cycle\": \"error\",\n\"import-js/no-unresolved\": \"warn\"\n}\n}\n```"
|
|
74
74
|
},
|
|
75
75
|
"options": {
|
|
76
76
|
"description": "Oxlint config options.",
|
|
@@ -9511,7 +9511,24 @@
|
|
|
9511
9511
|
"$ref": "#/definitions/RuleNoConfig"
|
|
9512
9512
|
},
|
|
9513
9513
|
"unicorn/prefer-query-selector": {
|
|
9514
|
-
"
|
|
9514
|
+
"anyOf": [
|
|
9515
|
+
{
|
|
9516
|
+
"$ref": "#/definitions/RuleNoConfig"
|
|
9517
|
+
},
|
|
9518
|
+
{
|
|
9519
|
+
"type": "array",
|
|
9520
|
+
"items": [
|
|
9521
|
+
{
|
|
9522
|
+
"$ref": "#/definitions/AllowWarnDeny"
|
|
9523
|
+
},
|
|
9524
|
+
{
|
|
9525
|
+
"$ref": "#/definitions/PreferQuerySelector"
|
|
9526
|
+
}
|
|
9527
|
+
],
|
|
9528
|
+
"maxItems": 2,
|
|
9529
|
+
"minItems": 2
|
|
9530
|
+
}
|
|
9531
|
+
]
|
|
9515
9532
|
},
|
|
9516
9533
|
"unicorn/prefer-reflect-apply": {
|
|
9517
9534
|
"$ref": "#/definitions/RuleNoConfig"
|
|
@@ -18039,6 +18056,18 @@
|
|
|
18039
18056
|
},
|
|
18040
18057
|
"additionalProperties": false
|
|
18041
18058
|
},
|
|
18059
|
+
"PreferQuerySelector": {
|
|
18060
|
+
"type": "object",
|
|
18061
|
+
"properties": {
|
|
18062
|
+
"allowWithVariables": {
|
|
18063
|
+
"description": "When set to `true`, allows using `.getElementById()` and `.getElementsByClassName()` when called with a variable or expression.\nThis avoids the need to manually compose a CSS selector string, which can be less readable.",
|
|
18064
|
+
"default": false,
|
|
18065
|
+
"type": "boolean",
|
|
18066
|
+
"markdownDescription": "When set to `true`, allows using `.getElementById()` and `.getElementsByClassName()` when called with a variable or expression.\nThis avoids the need to manually compose a CSS selector string, which can be less readable."
|
|
18067
|
+
}
|
|
18068
|
+
},
|
|
18069
|
+
"additionalProperties": false
|
|
18070
|
+
},
|
|
18042
18071
|
"PreferReadonlyConfig": {
|
|
18043
18072
|
"type": "object",
|
|
18044
18073
|
"properties": {
|
package/dist/bindings.js
CHANGED
|
@@ -37,7 +37,7 @@ function requireNative() {
|
|
|
37
37
|
}
|
|
38
38
|
try {
|
|
39
39
|
let binding = require("@oxlint/binding-android-arm64"), bindingPackageVersion = require("@oxlint/binding-android-arm64/package.json").version;
|
|
40
|
-
if (bindingPackageVersion !== "1.
|
|
40
|
+
if (bindingPackageVersion !== "1.89.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.89.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
41
41
|
return binding;
|
|
42
42
|
} catch (e) {
|
|
43
43
|
loadErrors.push(e);
|
|
@@ -50,7 +50,7 @@ function requireNative() {
|
|
|
50
50
|
}
|
|
51
51
|
try {
|
|
52
52
|
let binding = require("@oxlint/binding-android-arm-eabi"), bindingPackageVersion = require("@oxlint/binding-android-arm-eabi/package.json").version;
|
|
53
|
-
if (bindingPackageVersion !== "1.
|
|
53
|
+
if (bindingPackageVersion !== "1.89.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.89.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
54
54
|
return binding;
|
|
55
55
|
} catch (e) {
|
|
56
56
|
loadErrors.push(e);
|
|
@@ -66,7 +66,7 @@ function requireNative() {
|
|
|
66
66
|
}
|
|
67
67
|
try {
|
|
68
68
|
let binding = require("@oxlint/binding-win32-x64-gnu"), bindingPackageVersion = require("@oxlint/binding-win32-x64-gnu/package.json").version;
|
|
69
|
-
if (bindingPackageVersion !== "1.
|
|
69
|
+
if (bindingPackageVersion !== "1.89.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.89.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
70
70
|
return binding;
|
|
71
71
|
} catch (e) {
|
|
72
72
|
loadErrors.push(e);
|
|
@@ -79,7 +79,7 @@ function requireNative() {
|
|
|
79
79
|
}
|
|
80
80
|
try {
|
|
81
81
|
let binding = require("@oxlint/binding-win32-x64-msvc"), bindingPackageVersion = require("@oxlint/binding-win32-x64-msvc/package.json").version;
|
|
82
|
-
if (bindingPackageVersion !== "1.
|
|
82
|
+
if (bindingPackageVersion !== "1.89.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.89.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
83
83
|
return binding;
|
|
84
84
|
} catch (e) {
|
|
85
85
|
loadErrors.push(e);
|
|
@@ -93,7 +93,7 @@ function requireNative() {
|
|
|
93
93
|
}
|
|
94
94
|
try {
|
|
95
95
|
let binding = require("@oxlint/binding-win32-ia32-msvc"), bindingPackageVersion = require("@oxlint/binding-win32-ia32-msvc/package.json").version;
|
|
96
|
-
if (bindingPackageVersion !== "1.
|
|
96
|
+
if (bindingPackageVersion !== "1.89.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.89.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
97
97
|
return binding;
|
|
98
98
|
} catch (e) {
|
|
99
99
|
loadErrors.push(e);
|
|
@@ -106,7 +106,7 @@ function requireNative() {
|
|
|
106
106
|
}
|
|
107
107
|
try {
|
|
108
108
|
let binding = require("@oxlint/binding-win32-arm64-msvc"), bindingPackageVersion = require("@oxlint/binding-win32-arm64-msvc/package.json").version;
|
|
109
|
-
if (bindingPackageVersion !== "1.
|
|
109
|
+
if (bindingPackageVersion !== "1.89.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.89.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
110
110
|
return binding;
|
|
111
111
|
} catch (e) {
|
|
112
112
|
loadErrors.push(e);
|
|
@@ -120,7 +120,7 @@ function requireNative() {
|
|
|
120
120
|
}
|
|
121
121
|
try {
|
|
122
122
|
let binding = require("@oxlint/binding-darwin-universal"), bindingPackageVersion = require("@oxlint/binding-darwin-universal/package.json").version;
|
|
123
|
-
if (bindingPackageVersion !== "1.
|
|
123
|
+
if (bindingPackageVersion !== "1.89.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.89.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
124
124
|
return binding;
|
|
125
125
|
} catch (e) {
|
|
126
126
|
loadErrors.push(e);
|
|
@@ -133,7 +133,7 @@ function requireNative() {
|
|
|
133
133
|
}
|
|
134
134
|
try {
|
|
135
135
|
let binding = require("@oxlint/binding-darwin-x64"), bindingPackageVersion = require("@oxlint/binding-darwin-x64/package.json").version;
|
|
136
|
-
if (bindingPackageVersion !== "1.
|
|
136
|
+
if (bindingPackageVersion !== "1.89.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.89.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
137
137
|
return binding;
|
|
138
138
|
} catch (e) {
|
|
139
139
|
loadErrors.push(e);
|
|
@@ -146,7 +146,7 @@ function requireNative() {
|
|
|
146
146
|
}
|
|
147
147
|
try {
|
|
148
148
|
let binding = require("@oxlint/binding-darwin-arm64"), bindingPackageVersion = require("@oxlint/binding-darwin-arm64/package.json").version;
|
|
149
|
-
if (bindingPackageVersion !== "1.
|
|
149
|
+
if (bindingPackageVersion !== "1.89.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.89.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
150
150
|
return binding;
|
|
151
151
|
} catch (e) {
|
|
152
152
|
loadErrors.push(e);
|
|
@@ -161,7 +161,7 @@ function requireNative() {
|
|
|
161
161
|
}
|
|
162
162
|
try {
|
|
163
163
|
let binding = require("@oxlint/binding-freebsd-x64"), bindingPackageVersion = require("@oxlint/binding-freebsd-x64/package.json").version;
|
|
164
|
-
if (bindingPackageVersion !== "1.
|
|
164
|
+
if (bindingPackageVersion !== "1.89.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.89.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
165
165
|
return binding;
|
|
166
166
|
} catch (e) {
|
|
167
167
|
loadErrors.push(e);
|
|
@@ -174,7 +174,7 @@ function requireNative() {
|
|
|
174
174
|
}
|
|
175
175
|
try {
|
|
176
176
|
let binding = require("@oxlint/binding-freebsd-arm64"), bindingPackageVersion = require("@oxlint/binding-freebsd-arm64/package.json").version;
|
|
177
|
-
if (bindingPackageVersion !== "1.
|
|
177
|
+
if (bindingPackageVersion !== "1.89.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.89.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
178
178
|
return binding;
|
|
179
179
|
} catch (e) {
|
|
180
180
|
loadErrors.push(e);
|
|
@@ -190,7 +190,7 @@ function requireNative() {
|
|
|
190
190
|
}
|
|
191
191
|
try {
|
|
192
192
|
let binding = require("@oxlint/binding-linux-x64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-x64-musl/package.json").version;
|
|
193
|
-
if (bindingPackageVersion !== "1.
|
|
193
|
+
if (bindingPackageVersion !== "1.89.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.89.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
194
194
|
return binding;
|
|
195
195
|
} catch (e) {
|
|
196
196
|
loadErrors.push(e);
|
|
@@ -203,7 +203,7 @@ function requireNative() {
|
|
|
203
203
|
}
|
|
204
204
|
try {
|
|
205
205
|
let binding = require("@oxlint/binding-linux-x64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-x64-gnu/package.json").version;
|
|
206
|
-
if (bindingPackageVersion !== "1.
|
|
206
|
+
if (bindingPackageVersion !== "1.89.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.89.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
207
207
|
return binding;
|
|
208
208
|
} catch (e) {
|
|
209
209
|
loadErrors.push(e);
|
|
@@ -218,7 +218,7 @@ function requireNative() {
|
|
|
218
218
|
}
|
|
219
219
|
try {
|
|
220
220
|
let binding = require("@oxlint/binding-linux-arm64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-arm64-musl/package.json").version;
|
|
221
|
-
if (bindingPackageVersion !== "1.
|
|
221
|
+
if (bindingPackageVersion !== "1.89.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.89.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
222
222
|
return binding;
|
|
223
223
|
} catch (e) {
|
|
224
224
|
loadErrors.push(e);
|
|
@@ -231,7 +231,7 @@ function requireNative() {
|
|
|
231
231
|
}
|
|
232
232
|
try {
|
|
233
233
|
let binding = require("@oxlint/binding-linux-arm64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-arm64-gnu/package.json").version;
|
|
234
|
-
if (bindingPackageVersion !== "1.
|
|
234
|
+
if (bindingPackageVersion !== "1.89.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.89.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
235
235
|
return binding;
|
|
236
236
|
} catch (e) {
|
|
237
237
|
loadErrors.push(e);
|
|
@@ -246,7 +246,7 @@ function requireNative() {
|
|
|
246
246
|
}
|
|
247
247
|
try {
|
|
248
248
|
let binding = require("@oxlint/binding-linux-arm-musleabihf"), bindingPackageVersion = require("@oxlint/binding-linux-arm-musleabihf/package.json").version;
|
|
249
|
-
if (bindingPackageVersion !== "1.
|
|
249
|
+
if (bindingPackageVersion !== "1.89.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.89.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
250
250
|
return binding;
|
|
251
251
|
} catch (e) {
|
|
252
252
|
loadErrors.push(e);
|
|
@@ -259,7 +259,7 @@ function requireNative() {
|
|
|
259
259
|
}
|
|
260
260
|
try {
|
|
261
261
|
let binding = require("@oxlint/binding-linux-arm-gnueabihf"), bindingPackageVersion = require("@oxlint/binding-linux-arm-gnueabihf/package.json").version;
|
|
262
|
-
if (bindingPackageVersion !== "1.
|
|
262
|
+
if (bindingPackageVersion !== "1.89.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.89.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
263
263
|
return binding;
|
|
264
264
|
} catch (e) {
|
|
265
265
|
loadErrors.push(e);
|
|
@@ -274,7 +274,7 @@ function requireNative() {
|
|
|
274
274
|
}
|
|
275
275
|
try {
|
|
276
276
|
let binding = require("@oxlint/binding-linux-loong64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-loong64-musl/package.json").version;
|
|
277
|
-
if (bindingPackageVersion !== "1.
|
|
277
|
+
if (bindingPackageVersion !== "1.89.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.89.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
278
278
|
return binding;
|
|
279
279
|
} catch (e) {
|
|
280
280
|
loadErrors.push(e);
|
|
@@ -287,7 +287,7 @@ function requireNative() {
|
|
|
287
287
|
}
|
|
288
288
|
try {
|
|
289
289
|
let binding = require("@oxlint/binding-linux-loong64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-loong64-gnu/package.json").version;
|
|
290
|
-
if (bindingPackageVersion !== "1.
|
|
290
|
+
if (bindingPackageVersion !== "1.89.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.89.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
291
291
|
return binding;
|
|
292
292
|
} catch (e) {
|
|
293
293
|
loadErrors.push(e);
|
|
@@ -302,7 +302,7 @@ function requireNative() {
|
|
|
302
302
|
}
|
|
303
303
|
try {
|
|
304
304
|
let binding = require("@oxlint/binding-linux-riscv64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-riscv64-musl/package.json").version;
|
|
305
|
-
if (bindingPackageVersion !== "1.
|
|
305
|
+
if (bindingPackageVersion !== "1.89.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.89.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
306
306
|
return binding;
|
|
307
307
|
} catch (e) {
|
|
308
308
|
loadErrors.push(e);
|
|
@@ -315,7 +315,7 @@ function requireNative() {
|
|
|
315
315
|
}
|
|
316
316
|
try {
|
|
317
317
|
let binding = require("@oxlint/binding-linux-riscv64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-riscv64-gnu/package.json").version;
|
|
318
|
-
if (bindingPackageVersion !== "1.
|
|
318
|
+
if (bindingPackageVersion !== "1.89.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.89.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
319
319
|
return binding;
|
|
320
320
|
} catch (e) {
|
|
321
321
|
loadErrors.push(e);
|
|
@@ -329,7 +329,7 @@ function requireNative() {
|
|
|
329
329
|
}
|
|
330
330
|
try {
|
|
331
331
|
let binding = require("@oxlint/binding-linux-ppc64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-ppc64-gnu/package.json").version;
|
|
332
|
-
if (bindingPackageVersion !== "1.
|
|
332
|
+
if (bindingPackageVersion !== "1.89.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.89.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
333
333
|
return binding;
|
|
334
334
|
} catch (e) {
|
|
335
335
|
loadErrors.push(e);
|
|
@@ -342,7 +342,7 @@ function requireNative() {
|
|
|
342
342
|
}
|
|
343
343
|
try {
|
|
344
344
|
let binding = require("@oxlint/binding-linux-s390x-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-s390x-gnu/package.json").version;
|
|
345
|
-
if (bindingPackageVersion !== "1.
|
|
345
|
+
if (bindingPackageVersion !== "1.89.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.89.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
346
346
|
return binding;
|
|
347
347
|
} catch (e) {
|
|
348
348
|
loadErrors.push(e);
|
|
@@ -357,7 +357,7 @@ function requireNative() {
|
|
|
357
357
|
}
|
|
358
358
|
try {
|
|
359
359
|
let binding = require("@oxlint/binding-openharmony-arm64"), bindingPackageVersion = require("@oxlint/binding-openharmony-arm64/package.json").version;
|
|
360
|
-
if (bindingPackageVersion !== "1.
|
|
360
|
+
if (bindingPackageVersion !== "1.89.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.89.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
361
361
|
return binding;
|
|
362
362
|
} catch (e) {
|
|
363
363
|
loadErrors.push(e);
|
|
@@ -370,7 +370,7 @@ function requireNative() {
|
|
|
370
370
|
}
|
|
371
371
|
try {
|
|
372
372
|
let binding = require("@oxlint/binding-openharmony-x64"), bindingPackageVersion = require("@oxlint/binding-openharmony-x64/package.json").version;
|
|
373
|
-
if (bindingPackageVersion !== "1.
|
|
373
|
+
if (bindingPackageVersion !== "1.89.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.89.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
374
374
|
return binding;
|
|
375
375
|
} catch (e) {
|
|
376
376
|
loadErrors.push(e);
|
|
@@ -383,7 +383,7 @@ function requireNative() {
|
|
|
383
383
|
}
|
|
384
384
|
try {
|
|
385
385
|
let binding = require("@oxlint/binding-openharmony-arm"), bindingPackageVersion = require("@oxlint/binding-openharmony-arm/package.json").version;
|
|
386
|
-
if (bindingPackageVersion !== "1.
|
|
386
|
+
if (bindingPackageVersion !== "1.89.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.89.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
387
387
|
return binding;
|
|
388
388
|
} catch (e) {
|
|
389
389
|
loadErrors.push(e);
|
|
@@ -450,7 +450,7 @@ if (forceWasi || (nativeBinding = requireNative()), !nativeBinding || forceWasi)
|
|
|
450
450
|
if (candidateError = __napiWasiResolveCandidate("@oxlint/binding-wasm32-wasi", !0, void 0), candidateFailed = candidateError !== null, !candidateFailed) {
|
|
451
451
|
if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
452
452
|
let bindingPackageVersion = require("@oxlint/binding-wasm32-wasi/package.json").version;
|
|
453
|
-
if (bindingPackageVersion !== "1.
|
|
453
|
+
if (bindingPackageVersion !== "1.89.0") throw Error(`WASI binding package version mismatch, expected 1.89.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
454
454
|
}
|
|
455
455
|
wasiBinding = require("@oxlint/binding-wasm32-wasi"), nativeBinding = wasiBinding, wasiBindingLoaded = !0;
|
|
456
456
|
}
|
package/dist/cli.js
CHANGED
|
@@ -80,6 +80,6 @@ function loadJsConfigsWrapper(paths) {
|
|
|
80
80
|
return resolvedConfigLoader === null ? import("./js_config.js").then(({ loadJsConfigs, loadVitePlusConfigs }) => (resolvedConfigLoader = process.env.VP_VERSION ? loadVitePlusConfigs : loadJsConfigs, resolvedConfigLoader(paths))) : resolvedConfigLoader(paths);
|
|
81
81
|
}
|
|
82
82
|
const args = process.argv.slice(2);
|
|
83
|
-
process.stdout.isTTY || (process.stdin._handle?.setBlocking?.(!0), process.stdout._handle?.setBlocking?.(!0)), args.includes("--lsp") && (process.stdout.write = process.stderr.write.bind(process.stderr)), await lint(args, loadPluginWrapper, setupRuleConfigsWrapper, lintFileWrapper, createWorkspaceWrapper, destroyWorkspaceWrapper, loadJsConfigsWrapper) || (process.exitCode = 1);
|
|
83
|
+
process.stdout.isTTY || (process.stdin._handle?.setBlocking?.(!0), process.stdout._handle?.setBlocking?.(!0)), process.stderr.isTTY || process.stderr._handle?.setBlocking?.(!0), args.includes("--lsp") && (process.stdout.write = process.stderr.write.bind(process.stderr)), await lint(args, loadPluginWrapper, setupRuleConfigsWrapper, lintFileWrapper, createWorkspaceWrapper, destroyWorkspaceWrapper, loadJsConfigsWrapper) || (process.exitCode = 1);
|
|
84
84
|
//#endregion
|
|
85
85
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -547,7 +547,7 @@ interface Oxlintrc$1 {
|
|
|
547
547
|
*
|
|
548
548
|
* TypeScript plugin files are supported in the following environments:
|
|
549
549
|
* - Deno and Bun: TypeScript files are supported natively.
|
|
550
|
-
* - Node.js >=22.18.0
|
|
550
|
+
* - Node.js >=22.18.0: TypeScript files are supported natively with built-in
|
|
551
551
|
* type-stripping enabled by default.
|
|
552
552
|
*
|
|
553
553
|
* For older Node.js versions, TypeScript plugins are not supported. Please use JavaScript plugins or upgrade your Node version.
|
|
@@ -1557,7 +1557,7 @@ interface DummyRuleMap {
|
|
|
1557
1557
|
"unicorn/prefer-object-from-entries"?: RuleNoConfig | [AllowWarnDeny, PreferObjectFromEntriesConfig];
|
|
1558
1558
|
"unicorn/prefer-optional-catch-binding"?: RuleNoConfig;
|
|
1559
1559
|
"unicorn/prefer-prototype-methods"?: RuleNoConfig;
|
|
1560
|
-
"unicorn/prefer-query-selector"?: RuleNoConfig;
|
|
1560
|
+
"unicorn/prefer-query-selector"?: RuleNoConfig | [AllowWarnDeny, PreferQuerySelector];
|
|
1561
1561
|
"unicorn/prefer-reflect-apply"?: RuleNoConfig;
|
|
1562
1562
|
"unicorn/prefer-regexp-test"?: RuleNoConfig;
|
|
1563
1563
|
"unicorn/prefer-response-static-json"?: RuleNoConfig;
|
|
@@ -1707,7 +1707,7 @@ interface DummyRuleMap {
|
|
|
1707
1707
|
"vue/valid-define-props"?: RuleNoConfig;
|
|
1708
1708
|
"vue/valid-next-tick"?: RuleNoConfig;
|
|
1709
1709
|
yoda?: RuleNoConfig | [AllowWarnDeny, AllowYoda] | [AllowWarnDeny, AllowYoda, YodaOptions];
|
|
1710
|
-
[k: string]: DummyRule | RuleNoConfig | [AllowWarnDeny, AccessorPairsConfig] | [AllowWarnDeny, ArrayCallbackReturn] | [AllowWarnDeny, Mode2] | [AllowWarnDeny, Mode2, ArrowBodyStyleConfig] | [AllowWarnDeny, AlwaysNever] | [AllowWarnDeny, AlwaysNever, OptionsJsonEnum] | [AllowWarnDeny, ClassMethodsUseThisConfig] | [AllowWarnDeny, ComplexityConfigEnum] | [AllowWarnDeny, CurlyType] | [AllowWarnDeny, CurlyType, CurlyConsistent] | [AllowWarnDeny, DefaultCaseConfig] | [AllowWarnDeny, CompareType] | [AllowWarnDeny, CompareType, EqeqeqOptions] | [AllowWarnDeny, FuncNameMatchingMode] | [AllowWarnDeny, FuncNameMatchingMode, FuncNameMatchingConfig] | [AllowWarnDeny, FuncNameMatchingMode] | [AllowWarnDeny, FuncNameMatchingConfig] | [AllowWarnDeny, FuncNamesConfigType] | [AllowWarnDeny, FuncNamesConfigType, FuncNamesGeneratorsConfig] | [AllowWarnDeny, Style] | [AllowWarnDeny, Style, FuncStyleConfig] | [AllowWarnDeny, GetterReturn] | [AllowWarnDeny, PairOrder] | [AllowWarnDeny, PairOrder, GroupedAccessorPairsConfig] | [AllowWarnDeny, ...string[]] | [AllowWarnDeny, IdLengthConfig] | [AllowWarnDeny, string] | [AllowWarnDeny, string, IdMatchOptions] | [AllowWarnDeny, Mode] | [AllowWarnDeny, ExtensionRule] | [AllowWarnDeny, ExtensionRule, ImportExtensionsObject] | [AllowWarnDeny, ExtensionRule] | [AllowWarnDeny, ImportExtensionsObject] | [AllowWarnDeny, AbsoluteFirst] | [AllowWarnDeny, MaxDependenciesConfigJson] | [AllowWarnDeny, Namespace] | [AllowWarnDeny, NewlineAfterImport] | [AllowWarnDeny, NoAbsolutePath] | [AllowWarnDeny, NoAnonymousDefaultExport] | [AllowWarnDeny, NoCommonjs] | [AllowWarnDeny, NoCycle] | [AllowWarnDeny, NoDuplicates] | [AllowWarnDeny, NoDynamicRequire] | [AllowWarnDeny, NoNamespaceConfig] | [AllowWarnDeny, NoNodejsModulesConfig] | [AllowWarnDeny, NoUnassignedImportConfig] | [AllowWarnDeny, PreferDefaultExport] | [AllowWarnDeny, AlwaysNever] | [AllowWarnDeny, AlwaysNever, InitDeclarationsConfig] | [AllowWarnDeny, ConsistentTestItConfig] | [AllowWarnDeny, ExpectExpectConfig] | [AllowWarnDeny, MaxExpectsConfig] | [AllowWarnDeny, MaxNestedDescribeConfig] | [AllowWarnDeny, NoDeprecatedFunctionsConfig] | [AllowWarnDeny, NoHooksConfig] | [AllowWarnDeny, NoLargeSnapshotsConfig] | [AllowWarnDeny, NoRestrictedTestMethodsConfig] | [AllowWarnDeny, NoRestrictedMatchersConfig] | [AllowWarnDeny, NoStandaloneExpectConfig] | [AllowWarnDeny, PreferEndingWithAnExpectConfig] | [AllowWarnDeny, PreferExpectAssertionsConfig] | [AllowWarnDeny, PreferImportingJestGlobalsConfig] | [AllowWarnDeny, PreferLowercaseTitleConfig] | [AllowWarnDeny, SnapshotHintMode] | [AllowWarnDeny, RequireHookConfig] | [AllowWarnDeny, RequireTopLevelDescribeConfig] | [AllowWarnDeny, ValidExpectConfig] | [AllowWarnDeny, CheckTagNamesConfig] | [AllowWarnDeny, EmptyTagsConfig] | [AllowWarnDeny, NoBlankBlocks] | [AllowWarnDeny, NoDefaultsConfig] | [AllowWarnDeny, RequireParamConfig] | [AllowWarnDeny, RequireParamDescriptionConfig] | [AllowWarnDeny, RequireParamTypeConfig] | [AllowWarnDeny, RequireReturnsConfig] | [AllowWarnDeny, RequireYieldsConfig] | [AllowWarnDeny, AltTextConfigSchema] | [AllowWarnDeny, AnchorAmbiguousTextConfig] | [AllowWarnDeny, AnchorHasContentConfig] | [AllowWarnDeny, AnchorIsValidConfig] | [AllowWarnDeny, AriaRoleConfig] | [AllowWarnDeny, AutocompleteValidConfig] | [AllowWarnDeny, ControlHasAssociatedLabelConfig] | [AllowWarnDeny, HeadingHasContentConfig] | [AllowWarnDeny, ImgRedundantAltConfig] | [AllowWarnDeny, InteractiveSupportsFocusConfig] | [AllowWarnDeny, LabelHasAssociatedControlConfig] | [AllowWarnDeny, MediaHasCaptionConfig] | [AllowWarnDeny, MouseEventsHaveKeyEventsConfig] | [AllowWarnDeny, NoAutofocus] | [AllowWarnDeny, NoDistractingElementsConfig] | [AllowWarnDeny, NoInteractiveElementToNoninteractiveRoleConfig] | [AllowWarnDeny, NoNoninteractiveElementInteractionsConfig] | [AllowWarnDeny, NoNoninteractiveElementToInteractiveRoleConfig] | [AllowWarnDeny, NoNoninteractiveTabindexConfig] | [AllowWarnDeny, NoRedundantRolesConfig] | [AllowWarnDeny, NoStaticElementInteractionsConfig] | [AllowWarnDeny, AlwaysNever] | [AllowWarnDeny, AlwaysNever, LogicalAssignmentOperatorsConfig] | [AllowWarnDeny, MaxClassesPerFileConfigEnum] | [AllowWarnDeny, MaxDepthConfigEnum] | [AllowWarnDeny, MaxLinesConfigEnum] | [AllowWarnDeny, MaxLinesPerFunctionConfigEnum] | [AllowWarnDeny, MaxNestedCallbacksConfigEnum] | [AllowWarnDeny, MaxParamsConfigEnum] | [AllowWarnDeny, MaxStatementsConfigEnum] | [AllowWarnDeny, NewCapConfig] | [AllowWarnDeny, NoBitwiseConfig] | [AllowWarnDeny, NoCondAssignConfig] | [AllowWarnDeny, NoConsoleConfig] | [AllowWarnDeny, NoConstantBinaryExpressionConfig] | [AllowWarnDeny, NoConstantCondition] | [AllowWarnDeny, NoDuplicateImports] | [AllowWarnDeny, NoElseReturn] | [AllowWarnDeny, NoEmpty] | [AllowWarnDeny, NoEmptyFunctionConfig] | [AllowWarnDeny, NoEmptyPattern] | [AllowWarnDeny, NoEval] | [AllowWarnDeny, NoExtendNativeConfig] | [AllowWarnDeny, NoExtraBooleanCast] | [AllowWarnDeny, NoFallthroughConfig] | [AllowWarnDeny, NoGlobalAssignConfig] | [AllowWarnDeny, NoImplicitCoercionConfig] | [AllowWarnDeny, NoImplicitGlobalsConfig] | [AllowWarnDeny, NoInlineCommentsConfig] | [AllowWarnDeny, NoInnerDeclarationsConfig] | [AllowWarnDeny, NoInnerDeclarationsConfig, NoInnerDeclarationsOptions] | [AllowWarnDeny, NoInvalidRegexpConfig] | [AllowWarnDeny, NoIrregularWhitespaceConfig] | [AllowWarnDeny, NoLabels] | [AllowWarnDeny, NoMagicNumbersConfig] | [AllowWarnDeny, NoMisleadingCharacterClass] | [AllowWarnDeny, NoMultiAssign] | [AllowWarnDeny, NoParamReassignConfig] | [AllowWarnDeny, NoPlusplus] | [AllowWarnDeny, NoPromiseExecutorReturnConfig] | [AllowWarnDeny, NoRedeclare] | [AllowWarnDeny, NoRestrictedExportsConfig] | [AllowWarnDeny, ...NoRestrictedGlobalsConfigEnum[]] | [AllowWarnDeny, ...NoRestrictedImportsConfigEnum[]] | [AllowWarnDeny, ...PropertyDetails[]] | [AllowWarnDeny, NoReturnAssignMode] | [AllowWarnDeny, NoSelfAssign] | [AllowWarnDeny, NoSequences] | [AllowWarnDeny, NoShadowConfig] | [AllowWarnDeny, NoShadowRestrictedNamesConfig] | [AllowWarnDeny, NoUndef] | [AllowWarnDeny, NoUnderscoreDangleConfig] | [AllowWarnDeny, NoUnmodifiedLoopCondition] | [AllowWarnDeny, NoUnneededTernary] | [AllowWarnDeny, NoUnreachableLoopConfig] | [AllowWarnDeny, NoUnsafeNegation] | [AllowWarnDeny, NoUnsafeOptionalChaining] | [AllowWarnDeny, NoUnusedExpressionsConfig] | [AllowWarnDeny, NoUnusedVarsConfig] | [AllowWarnDeny, NoUseBeforeDefineConfigJson] | [AllowWarnDeny, NoUselessComputedKey] | [AllowWarnDeny, NoUselessEscapeConfig] | [AllowWarnDeny, NoUselessRenameConfig] | [AllowWarnDeny, NoVoid] | [AllowWarnDeny, NoWarningCommentsConfig] | [AllowWarnDeny, CallbackReturn] | [AllowWarnDeny, ExportsStyleMode] | [AllowWarnDeny, ExportsStyleMode, ExportsStyleOptions] | [AllowWarnDeny, HandleCallbackErrConfig] | [AllowWarnDeny, NoMixedRequiresConfig] | [AllowWarnDeny, NoProcessEnvConfig] | [AllowWarnDeny, NoSyncConfig] | [AllowWarnDeny, NoTopLevelAwaitConfig] | [AllowWarnDeny, ShorthandType] | [AllowWarnDeny, ShorthandType, ObjectShorthandOptions] | [AllowWarnDeny, OneVar] | [AllowWarnDeny, AlwaysNever] | [AllowWarnDeny, NoAsyncEndpointHandlersConfig] | [AllowWarnDeny, NoBarrelFile] | [AllowWarnDeny, NoMapSpreadConfig] | [AllowWarnDeny, NoOptionalChainingConfig] | [AllowWarnDeny, NoRestSpreadPropertiesOptions] | [AllowWarnDeny, PreferArrowCallbackConfig] | [AllowWarnDeny, PreferConstConfig] | [AllowWarnDeny, PreferDestructuringOption] | [AllowWarnDeny, PreferDestructuringOption, PreferDestructuringEnforcementConfig] | [AllowWarnDeny, PreferPromiseRejectErrors] | [AllowWarnDeny, PreferRegexLiteralsConfig] | [AllowWarnDeny, PreserveCaughtErrorOptions] | [AllowWarnDeny, AlwaysReturnConfig] | [AllowWarnDeny, CatchOrReturnConfig] | [AllowWarnDeny, NoCallbackInPromiseConfig] | [AllowWarnDeny, NoPromiseInCallbackConfig] | [AllowWarnDeny, NoReturnWrap] | [AllowWarnDeny, ParamNamesConfig] | [AllowWarnDeny, PreferAwaitToThenConfig] | [AllowWarnDeny, SpecOnlyConfig] | [AllowWarnDeny, RadixType] | [AllowWarnDeny, ReactPerfConfig] | [AllowWarnDeny, ButtonHasType] | [AllowWarnDeny, CheckedRequiresOnchangeOrReadonly] | [AllowWarnDeny, DisplayNameConfig] | [AllowWarnDeny, ExhaustiveDepsConfig] | [AllowWarnDeny, ForbidComponentPropsConfig] | [AllowWarnDeny, ForbidDomPropsConfig] | [AllowWarnDeny, ForbidElementsConfig] | [AllowWarnDeny, FunctionComponentDefinitionConfig] | [AllowWarnDeny, HookUseStateConfig] | [AllowWarnDeny, EnforceBooleanAttribute] | [AllowWarnDeny, EnforceBooleanAttribute, JsxBooleanValueOptions] | [AllowWarnDeny, JsxCurlyBracePresenceConfig] | [AllowWarnDeny, JsxFilenameExtensionConfig] | [AllowWarnDeny, FragmentMode] | [AllowWarnDeny, JsxHandlerNamesConfig] | [AllowWarnDeny, JsxKeyConfig] | [AllowWarnDeny, JsxMaxDepthConfig] | [AllowWarnDeny, JsxNoLiteralsConfig] | [AllowWarnDeny, JsxNoScriptUrlComponent[]] | [AllowWarnDeny, JsxNoScriptUrlComponent[], JsxNoScriptUrlOptions] | [AllowWarnDeny, JsxNoScriptUrlOptions] | [AllowWarnDeny, JsxNoTargetBlank] | [AllowWarnDeny, JsxNoUselessFragment] | [AllowWarnDeny, JsxPascalCaseConfig] | [AllowWarnDeny, JsxPropsNoSpreadingConfig] | [AllowWarnDeny, AllowedOrDisallowInFunc] | [AllowWarnDeny, NoMultiCompConfig] | [AllowWarnDeny, NoStringRefs] | [AllowWarnDeny, NoUnknownPropertyConfig] | [AllowWarnDeny, NoUnsafeConfig] | [AllowWarnDeny, NoUnstableNestedComponentsConfig] | [AllowWarnDeny, OnlyExportComponentsConfig] | [AllowWarnDeny, PreferFunctionComponent] | [AllowWarnDeny, SelfClosingComp] | [AllowWarnDeny, StylePropObjectConfig] | [AllowWarnDeny, RequireUnicodeRegexpConfig] | [AllowWarnDeny, SortImportsOptions] | [AllowWarnDeny, SortOrder] | [AllowWarnDeny, SortOrder, SortKeysOptions] | [AllowWarnDeny, SortVars] | [AllowWarnDeny, ArrayTypeConfig] | [AllowWarnDeny, BanTsCommentConfig] | [AllowWarnDeny, ClassLiteralPropertyStyleOption] | [AllowWarnDeny, PreferGenericType] | [AllowWarnDeny, ConsistentIndexedObjectStyleConfig] | [AllowWarnDeny, ConsistentReturnConfig] | [AllowWarnDeny, ConsistentTypeAssertionsConfig] | [AllowWarnDeny, ConsistentTypeDefinitionsConfig] | [AllowWarnDeny, ConsistentTypeExportsConfig] | [AllowWarnDeny, ConsistentTypeImportsConfig] | [AllowWarnDeny, DotNotationConfig] | [AllowWarnDeny, ExplicitFunctionReturnTypeConfig] | [AllowWarnDeny, ExplicitMemberAccessibilityConfig] | [AllowWarnDeny, ExplicitModuleBoundaryTypesConfig] | [AllowWarnDeny, MethodSignatureStyleConfig] | [AllowWarnDeny, NoBaseToStringConfig] | [AllowWarnDeny, NoConfusingVoidExpressionConfig] | [AllowWarnDeny, NoDeprecatedConfig] | [AllowWarnDeny, NoDuplicateTypeConstituentsConfig] | [AllowWarnDeny, NoEmptyInterface] | [AllowWarnDeny, NoEmptyObjectTypeConfig] | [AllowWarnDeny, NoExplicitAny] | [AllowWarnDeny, NoExtraneousClass] | [AllowWarnDeny, NoFloatingPromisesConfig] | [AllowWarnDeny, NoInferrableTypes] | [AllowWarnDeny, NoInvalidVoidTypeConfig] | [AllowWarnDeny, NoMeaninglessVoidOperatorConfig] | [AllowWarnDeny, NoMisusedPromisesConfig] | [AllowWarnDeny, NoMisusedSpreadConfig] | [AllowWarnDeny, NoNamespace] | [AllowWarnDeny, NoRequireImportsConfig] | [AllowWarnDeny, NoRestrictedTypesConfig] | [AllowWarnDeny, NoThisAliasConfig] | [AllowWarnDeny, NoUnnecessaryBooleanLiteralCompareConfig] | [AllowWarnDeny, NoUnnecessaryConditionConfig] | [AllowWarnDeny, NoUnnecessaryTypeAssertionConfig] | [AllowWarnDeny, NoUnsafeMemberAccessConfig] | [AllowWarnDeny, OnlyThrowErrorConfig] | [AllowWarnDeny, ParameterPropertiesConfig] | [AllowWarnDeny, PreferLiteralEnumMember] | [AllowWarnDeny, PreferNullishCoalescingConfig] | [AllowWarnDeny, PreferOptionalChainConfig] | [AllowWarnDeny, PreferPromiseRejectErrorsConfig] | [AllowWarnDeny, PreferReadonlyConfig] | [AllowWarnDeny, PreferReadonlyParameterTypesConfig] | [AllowWarnDeny, PreferStringStartsEndsWithConfig] | [AllowWarnDeny, PromiseFunctionAsyncConfig] | [AllowWarnDeny, RequireArraySortCompareConfig] | [AllowWarnDeny, RestrictPlusOperandsConfig] | [AllowWarnDeny, RestrictTemplateExpressionsConfig] | [AllowWarnDeny, ReturnAwaitOption] | [AllowWarnDeny, StrictBooleanExpressionsConfig] | [AllowWarnDeny, StrictVoidReturnConfig] | [AllowWarnDeny, SwitchExhaustivenessCheckConfig] | [AllowWarnDeny, TripleSlashReferenceConfig] | [AllowWarnDeny, UnboundMethodConfig] | [AllowWarnDeny, UnifiedSignaturesOptions] | [AllowWarnDeny, BomOptionType] | [AllowWarnDeny, CatchErrorNameConfig] | [AllowWarnDeny, ConsistentFunctionScoping] | [AllowWarnDeny, ExplicitLengthCheck] | [AllowWarnDeny, ExplicitTimerDelayMode] | [AllowWarnDeny, ImportStyleConfig] | [AllowWarnDeny, MaxNestedCalls] | [AllowWarnDeny, NoArrayReduce] | [AllowWarnDeny, NoArrayReverse] | [AllowWarnDeny, NoArraySort] | [AllowWarnDeny, NoInstanceofBuiltinsConfig] | [AllowWarnDeny, NoNull] | [AllowWarnDeny, NoTypeofUndefined] | [AllowWarnDeny, NoUselessPromiseResolveRejectOptions] | [AllowWarnDeny, NoUselessUndefined] | [AllowWarnDeny, NumericSeparatorsStyleConfig] | [AllowWarnDeny, PreferAtConfig] | [AllowWarnDeny, PreferExportFrom] | [AllowWarnDeny, PreferNumberPropertiesConfig] | [AllowWarnDeny, PreferObjectFromEntriesConfig] | [AllowWarnDeny, PreferSingleCallConfig] | [AllowWarnDeny, PreferStructuredCloneConfig] | [AllowWarnDeny, PreferTernaryOption] | [AllowWarnDeny, RelativeUrlStyleConfig] | [AllowWarnDeny, SwitchCaseBracesConfig] | [AllowWarnDeny, TextEncodingIdentifierCase] | [AllowWarnDeny, UseIsnan] | [AllowWarnDeny, ValidTypeof] | [AllowWarnDeny, ConsistentEachForJson] | [AllowWarnDeny, ConsistentTestFilenameConfig] | [AllowWarnDeny, ConsistentVitestConfig] | [AllowWarnDeny, PreferImportInMockConfig] | [AllowWarnDeny, RequireMockTypeParametersConfig] | [AllowWarnDeny, CaseType] | [AllowWarnDeny, DeclarationStyle] | [AllowWarnDeny, DeclarationStyle2] | [AllowWarnDeny, DefinePropsDestructuring] | [AllowWarnDeny, MaxProps] | [AllowWarnDeny, NextTickOption] | [AllowWarnDeny, NoAsyncInComputedPropertiesConfig] | [AllowWarnDeny, NoDeprecatedModelDefinitionConfig] | [AllowWarnDeny, NoDupeKeysConfig] | [AllowWarnDeny, NoReservedComponentNames] | [AllowWarnDeny, NoReservedKeysConfig] | [AllowWarnDeny, NoReservedPropsConfig] | [AllowWarnDeny, CaseType2] | [AllowWarnDeny, CaseType2, Options] | [AllowWarnDeny, RequireDirectExport] | [AllowWarnDeny, ReturnInComputedPropertyConfig] | [AllowWarnDeny, AllowYoda] | [AllowWarnDeny, AllowYoda, YodaOptions] | undefined;
|
|
1710
|
+
[k: string]: DummyRule | RuleNoConfig | [AllowWarnDeny, AccessorPairsConfig] | [AllowWarnDeny, ArrayCallbackReturn] | [AllowWarnDeny, Mode2] | [AllowWarnDeny, Mode2, ArrowBodyStyleConfig] | [AllowWarnDeny, AlwaysNever] | [AllowWarnDeny, AlwaysNever, OptionsJsonEnum] | [AllowWarnDeny, ClassMethodsUseThisConfig] | [AllowWarnDeny, ComplexityConfigEnum] | [AllowWarnDeny, CurlyType] | [AllowWarnDeny, CurlyType, CurlyConsistent] | [AllowWarnDeny, DefaultCaseConfig] | [AllowWarnDeny, CompareType] | [AllowWarnDeny, CompareType, EqeqeqOptions] | [AllowWarnDeny, FuncNameMatchingMode] | [AllowWarnDeny, FuncNameMatchingMode, FuncNameMatchingConfig] | [AllowWarnDeny, FuncNameMatchingMode] | [AllowWarnDeny, FuncNameMatchingConfig] | [AllowWarnDeny, FuncNamesConfigType] | [AllowWarnDeny, FuncNamesConfigType, FuncNamesGeneratorsConfig] | [AllowWarnDeny, Style] | [AllowWarnDeny, Style, FuncStyleConfig] | [AllowWarnDeny, GetterReturn] | [AllowWarnDeny, PairOrder] | [AllowWarnDeny, PairOrder, GroupedAccessorPairsConfig] | [AllowWarnDeny, ...string[]] | [AllowWarnDeny, IdLengthConfig] | [AllowWarnDeny, string] | [AllowWarnDeny, string, IdMatchOptions] | [AllowWarnDeny, Mode] | [AllowWarnDeny, ExtensionRule] | [AllowWarnDeny, ExtensionRule, ImportExtensionsObject] | [AllowWarnDeny, ExtensionRule] | [AllowWarnDeny, ImportExtensionsObject] | [AllowWarnDeny, AbsoluteFirst] | [AllowWarnDeny, MaxDependenciesConfigJson] | [AllowWarnDeny, Namespace] | [AllowWarnDeny, NewlineAfterImport] | [AllowWarnDeny, NoAbsolutePath] | [AllowWarnDeny, NoAnonymousDefaultExport] | [AllowWarnDeny, NoCommonjs] | [AllowWarnDeny, NoCycle] | [AllowWarnDeny, NoDuplicates] | [AllowWarnDeny, NoDynamicRequire] | [AllowWarnDeny, NoNamespaceConfig] | [AllowWarnDeny, NoNodejsModulesConfig] | [AllowWarnDeny, NoUnassignedImportConfig] | [AllowWarnDeny, PreferDefaultExport] | [AllowWarnDeny, AlwaysNever] | [AllowWarnDeny, AlwaysNever, InitDeclarationsConfig] | [AllowWarnDeny, ConsistentTestItConfig] | [AllowWarnDeny, ExpectExpectConfig] | [AllowWarnDeny, MaxExpectsConfig] | [AllowWarnDeny, MaxNestedDescribeConfig] | [AllowWarnDeny, NoDeprecatedFunctionsConfig] | [AllowWarnDeny, NoHooksConfig] | [AllowWarnDeny, NoLargeSnapshotsConfig] | [AllowWarnDeny, NoRestrictedTestMethodsConfig] | [AllowWarnDeny, NoRestrictedMatchersConfig] | [AllowWarnDeny, NoStandaloneExpectConfig] | [AllowWarnDeny, PreferEndingWithAnExpectConfig] | [AllowWarnDeny, PreferExpectAssertionsConfig] | [AllowWarnDeny, PreferImportingJestGlobalsConfig] | [AllowWarnDeny, PreferLowercaseTitleConfig] | [AllowWarnDeny, SnapshotHintMode] | [AllowWarnDeny, RequireHookConfig] | [AllowWarnDeny, RequireTopLevelDescribeConfig] | [AllowWarnDeny, ValidExpectConfig] | [AllowWarnDeny, CheckTagNamesConfig] | [AllowWarnDeny, EmptyTagsConfig] | [AllowWarnDeny, NoBlankBlocks] | [AllowWarnDeny, NoDefaultsConfig] | [AllowWarnDeny, RequireParamConfig] | [AllowWarnDeny, RequireParamDescriptionConfig] | [AllowWarnDeny, RequireParamTypeConfig] | [AllowWarnDeny, RequireReturnsConfig] | [AllowWarnDeny, RequireYieldsConfig] | [AllowWarnDeny, AltTextConfigSchema] | [AllowWarnDeny, AnchorAmbiguousTextConfig] | [AllowWarnDeny, AnchorHasContentConfig] | [AllowWarnDeny, AnchorIsValidConfig] | [AllowWarnDeny, AriaRoleConfig] | [AllowWarnDeny, AutocompleteValidConfig] | [AllowWarnDeny, ControlHasAssociatedLabelConfig] | [AllowWarnDeny, HeadingHasContentConfig] | [AllowWarnDeny, ImgRedundantAltConfig] | [AllowWarnDeny, InteractiveSupportsFocusConfig] | [AllowWarnDeny, LabelHasAssociatedControlConfig] | [AllowWarnDeny, MediaHasCaptionConfig] | [AllowWarnDeny, MouseEventsHaveKeyEventsConfig] | [AllowWarnDeny, NoAutofocus] | [AllowWarnDeny, NoDistractingElementsConfig] | [AllowWarnDeny, NoInteractiveElementToNoninteractiveRoleConfig] | [AllowWarnDeny, NoNoninteractiveElementInteractionsConfig] | [AllowWarnDeny, NoNoninteractiveElementToInteractiveRoleConfig] | [AllowWarnDeny, NoNoninteractiveTabindexConfig] | [AllowWarnDeny, NoRedundantRolesConfig] | [AllowWarnDeny, NoStaticElementInteractionsConfig] | [AllowWarnDeny, AlwaysNever] | [AllowWarnDeny, AlwaysNever, LogicalAssignmentOperatorsConfig] | [AllowWarnDeny, MaxClassesPerFileConfigEnum] | [AllowWarnDeny, MaxDepthConfigEnum] | [AllowWarnDeny, MaxLinesConfigEnum] | [AllowWarnDeny, MaxLinesPerFunctionConfigEnum] | [AllowWarnDeny, MaxNestedCallbacksConfigEnum] | [AllowWarnDeny, MaxParamsConfigEnum] | [AllowWarnDeny, MaxStatementsConfigEnum] | [AllowWarnDeny, NewCapConfig] | [AllowWarnDeny, NoBitwiseConfig] | [AllowWarnDeny, NoCondAssignConfig] | [AllowWarnDeny, NoConsoleConfig] | [AllowWarnDeny, NoConstantBinaryExpressionConfig] | [AllowWarnDeny, NoConstantCondition] | [AllowWarnDeny, NoDuplicateImports] | [AllowWarnDeny, NoElseReturn] | [AllowWarnDeny, NoEmpty] | [AllowWarnDeny, NoEmptyFunctionConfig] | [AllowWarnDeny, NoEmptyPattern] | [AllowWarnDeny, NoEval] | [AllowWarnDeny, NoExtendNativeConfig] | [AllowWarnDeny, NoExtraBooleanCast] | [AllowWarnDeny, NoFallthroughConfig] | [AllowWarnDeny, NoGlobalAssignConfig] | [AllowWarnDeny, NoImplicitCoercionConfig] | [AllowWarnDeny, NoImplicitGlobalsConfig] | [AllowWarnDeny, NoInlineCommentsConfig] | [AllowWarnDeny, NoInnerDeclarationsConfig] | [AllowWarnDeny, NoInnerDeclarationsConfig, NoInnerDeclarationsOptions] | [AllowWarnDeny, NoInvalidRegexpConfig] | [AllowWarnDeny, NoIrregularWhitespaceConfig] | [AllowWarnDeny, NoLabels] | [AllowWarnDeny, NoMagicNumbersConfig] | [AllowWarnDeny, NoMisleadingCharacterClass] | [AllowWarnDeny, NoMultiAssign] | [AllowWarnDeny, NoParamReassignConfig] | [AllowWarnDeny, NoPlusplus] | [AllowWarnDeny, NoPromiseExecutorReturnConfig] | [AllowWarnDeny, NoRedeclare] | [AllowWarnDeny, NoRestrictedExportsConfig] | [AllowWarnDeny, ...NoRestrictedGlobalsConfigEnum[]] | [AllowWarnDeny, ...NoRestrictedImportsConfigEnum[]] | [AllowWarnDeny, ...PropertyDetails[]] | [AllowWarnDeny, NoReturnAssignMode] | [AllowWarnDeny, NoSelfAssign] | [AllowWarnDeny, NoSequences] | [AllowWarnDeny, NoShadowConfig] | [AllowWarnDeny, NoShadowRestrictedNamesConfig] | [AllowWarnDeny, NoUndef] | [AllowWarnDeny, NoUnderscoreDangleConfig] | [AllowWarnDeny, NoUnmodifiedLoopCondition] | [AllowWarnDeny, NoUnneededTernary] | [AllowWarnDeny, NoUnreachableLoopConfig] | [AllowWarnDeny, NoUnsafeNegation] | [AllowWarnDeny, NoUnsafeOptionalChaining] | [AllowWarnDeny, NoUnusedExpressionsConfig] | [AllowWarnDeny, NoUnusedVarsConfig] | [AllowWarnDeny, NoUseBeforeDefineConfigJson] | [AllowWarnDeny, NoUselessComputedKey] | [AllowWarnDeny, NoUselessEscapeConfig] | [AllowWarnDeny, NoUselessRenameConfig] | [AllowWarnDeny, NoVoid] | [AllowWarnDeny, NoWarningCommentsConfig] | [AllowWarnDeny, CallbackReturn] | [AllowWarnDeny, ExportsStyleMode] | [AllowWarnDeny, ExportsStyleMode, ExportsStyleOptions] | [AllowWarnDeny, HandleCallbackErrConfig] | [AllowWarnDeny, NoMixedRequiresConfig] | [AllowWarnDeny, NoProcessEnvConfig] | [AllowWarnDeny, NoSyncConfig] | [AllowWarnDeny, NoTopLevelAwaitConfig] | [AllowWarnDeny, ShorthandType] | [AllowWarnDeny, ShorthandType, ObjectShorthandOptions] | [AllowWarnDeny, OneVar] | [AllowWarnDeny, AlwaysNever] | [AllowWarnDeny, NoAsyncEndpointHandlersConfig] | [AllowWarnDeny, NoBarrelFile] | [AllowWarnDeny, NoMapSpreadConfig] | [AllowWarnDeny, NoOptionalChainingConfig] | [AllowWarnDeny, NoRestSpreadPropertiesOptions] | [AllowWarnDeny, PreferArrowCallbackConfig] | [AllowWarnDeny, PreferConstConfig] | [AllowWarnDeny, PreferDestructuringOption] | [AllowWarnDeny, PreferDestructuringOption, PreferDestructuringEnforcementConfig] | [AllowWarnDeny, PreferPromiseRejectErrors] | [AllowWarnDeny, PreferRegexLiteralsConfig] | [AllowWarnDeny, PreserveCaughtErrorOptions] | [AllowWarnDeny, AlwaysReturnConfig] | [AllowWarnDeny, CatchOrReturnConfig] | [AllowWarnDeny, NoCallbackInPromiseConfig] | [AllowWarnDeny, NoPromiseInCallbackConfig] | [AllowWarnDeny, NoReturnWrap] | [AllowWarnDeny, ParamNamesConfig] | [AllowWarnDeny, PreferAwaitToThenConfig] | [AllowWarnDeny, SpecOnlyConfig] | [AllowWarnDeny, RadixType] | [AllowWarnDeny, ReactPerfConfig] | [AllowWarnDeny, ButtonHasType] | [AllowWarnDeny, CheckedRequiresOnchangeOrReadonly] | [AllowWarnDeny, DisplayNameConfig] | [AllowWarnDeny, ExhaustiveDepsConfig] | [AllowWarnDeny, ForbidComponentPropsConfig] | [AllowWarnDeny, ForbidDomPropsConfig] | [AllowWarnDeny, ForbidElementsConfig] | [AllowWarnDeny, FunctionComponentDefinitionConfig] | [AllowWarnDeny, HookUseStateConfig] | [AllowWarnDeny, EnforceBooleanAttribute] | [AllowWarnDeny, EnforceBooleanAttribute, JsxBooleanValueOptions] | [AllowWarnDeny, JsxCurlyBracePresenceConfig] | [AllowWarnDeny, JsxFilenameExtensionConfig] | [AllowWarnDeny, FragmentMode] | [AllowWarnDeny, JsxHandlerNamesConfig] | [AllowWarnDeny, JsxKeyConfig] | [AllowWarnDeny, JsxMaxDepthConfig] | [AllowWarnDeny, JsxNoLiteralsConfig] | [AllowWarnDeny, JsxNoScriptUrlComponent[]] | [AllowWarnDeny, JsxNoScriptUrlComponent[], JsxNoScriptUrlOptions] | [AllowWarnDeny, JsxNoScriptUrlOptions] | [AllowWarnDeny, JsxNoTargetBlank] | [AllowWarnDeny, JsxNoUselessFragment] | [AllowWarnDeny, JsxPascalCaseConfig] | [AllowWarnDeny, JsxPropsNoSpreadingConfig] | [AllowWarnDeny, AllowedOrDisallowInFunc] | [AllowWarnDeny, NoMultiCompConfig] | [AllowWarnDeny, NoStringRefs] | [AllowWarnDeny, NoUnknownPropertyConfig] | [AllowWarnDeny, NoUnsafeConfig] | [AllowWarnDeny, NoUnstableNestedComponentsConfig] | [AllowWarnDeny, OnlyExportComponentsConfig] | [AllowWarnDeny, PreferFunctionComponent] | [AllowWarnDeny, SelfClosingComp] | [AllowWarnDeny, StylePropObjectConfig] | [AllowWarnDeny, RequireUnicodeRegexpConfig] | [AllowWarnDeny, SortImportsOptions] | [AllowWarnDeny, SortOrder] | [AllowWarnDeny, SortOrder, SortKeysOptions] | [AllowWarnDeny, SortVars] | [AllowWarnDeny, ArrayTypeConfig] | [AllowWarnDeny, BanTsCommentConfig] | [AllowWarnDeny, ClassLiteralPropertyStyleOption] | [AllowWarnDeny, PreferGenericType] | [AllowWarnDeny, ConsistentIndexedObjectStyleConfig] | [AllowWarnDeny, ConsistentReturnConfig] | [AllowWarnDeny, ConsistentTypeAssertionsConfig] | [AllowWarnDeny, ConsistentTypeDefinitionsConfig] | [AllowWarnDeny, ConsistentTypeExportsConfig] | [AllowWarnDeny, ConsistentTypeImportsConfig] | [AllowWarnDeny, DotNotationConfig] | [AllowWarnDeny, ExplicitFunctionReturnTypeConfig] | [AllowWarnDeny, ExplicitMemberAccessibilityConfig] | [AllowWarnDeny, ExplicitModuleBoundaryTypesConfig] | [AllowWarnDeny, MethodSignatureStyleConfig] | [AllowWarnDeny, NoBaseToStringConfig] | [AllowWarnDeny, NoConfusingVoidExpressionConfig] | [AllowWarnDeny, NoDeprecatedConfig] | [AllowWarnDeny, NoDuplicateTypeConstituentsConfig] | [AllowWarnDeny, NoEmptyInterface] | [AllowWarnDeny, NoEmptyObjectTypeConfig] | [AllowWarnDeny, NoExplicitAny] | [AllowWarnDeny, NoExtraneousClass] | [AllowWarnDeny, NoFloatingPromisesConfig] | [AllowWarnDeny, NoInferrableTypes] | [AllowWarnDeny, NoInvalidVoidTypeConfig] | [AllowWarnDeny, NoMeaninglessVoidOperatorConfig] | [AllowWarnDeny, NoMisusedPromisesConfig] | [AllowWarnDeny, NoMisusedSpreadConfig] | [AllowWarnDeny, NoNamespace] | [AllowWarnDeny, NoRequireImportsConfig] | [AllowWarnDeny, NoRestrictedTypesConfig] | [AllowWarnDeny, NoThisAliasConfig] | [AllowWarnDeny, NoUnnecessaryBooleanLiteralCompareConfig] | [AllowWarnDeny, NoUnnecessaryConditionConfig] | [AllowWarnDeny, NoUnnecessaryTypeAssertionConfig] | [AllowWarnDeny, NoUnsafeMemberAccessConfig] | [AllowWarnDeny, OnlyThrowErrorConfig] | [AllowWarnDeny, ParameterPropertiesConfig] | [AllowWarnDeny, PreferLiteralEnumMember] | [AllowWarnDeny, PreferNullishCoalescingConfig] | [AllowWarnDeny, PreferOptionalChainConfig] | [AllowWarnDeny, PreferPromiseRejectErrorsConfig] | [AllowWarnDeny, PreferReadonlyConfig] | [AllowWarnDeny, PreferReadonlyParameterTypesConfig] | [AllowWarnDeny, PreferStringStartsEndsWithConfig] | [AllowWarnDeny, PromiseFunctionAsyncConfig] | [AllowWarnDeny, RequireArraySortCompareConfig] | [AllowWarnDeny, RestrictPlusOperandsConfig] | [AllowWarnDeny, RestrictTemplateExpressionsConfig] | [AllowWarnDeny, ReturnAwaitOption] | [AllowWarnDeny, StrictBooleanExpressionsConfig] | [AllowWarnDeny, StrictVoidReturnConfig] | [AllowWarnDeny, SwitchExhaustivenessCheckConfig] | [AllowWarnDeny, TripleSlashReferenceConfig] | [AllowWarnDeny, UnboundMethodConfig] | [AllowWarnDeny, UnifiedSignaturesOptions] | [AllowWarnDeny, BomOptionType] | [AllowWarnDeny, CatchErrorNameConfig] | [AllowWarnDeny, ConsistentFunctionScoping] | [AllowWarnDeny, ExplicitLengthCheck] | [AllowWarnDeny, ExplicitTimerDelayMode] | [AllowWarnDeny, ImportStyleConfig] | [AllowWarnDeny, MaxNestedCalls] | [AllowWarnDeny, NoArrayReduce] | [AllowWarnDeny, NoArrayReverse] | [AllowWarnDeny, NoArraySort] | [AllowWarnDeny, NoInstanceofBuiltinsConfig] | [AllowWarnDeny, NoNull] | [AllowWarnDeny, NoTypeofUndefined] | [AllowWarnDeny, NoUselessPromiseResolveRejectOptions] | [AllowWarnDeny, NoUselessUndefined] | [AllowWarnDeny, NumericSeparatorsStyleConfig] | [AllowWarnDeny, PreferAtConfig] | [AllowWarnDeny, PreferExportFrom] | [AllowWarnDeny, PreferNumberPropertiesConfig] | [AllowWarnDeny, PreferObjectFromEntriesConfig] | [AllowWarnDeny, PreferQuerySelector] | [AllowWarnDeny, PreferSingleCallConfig] | [AllowWarnDeny, PreferStructuredCloneConfig] | [AllowWarnDeny, PreferTernaryOption] | [AllowWarnDeny, RelativeUrlStyleConfig] | [AllowWarnDeny, SwitchCaseBracesConfig] | [AllowWarnDeny, TextEncodingIdentifierCase] | [AllowWarnDeny, UseIsnan] | [AllowWarnDeny, ValidTypeof] | [AllowWarnDeny, ConsistentEachForJson] | [AllowWarnDeny, ConsistentTestFilenameConfig] | [AllowWarnDeny, ConsistentVitestConfig] | [AllowWarnDeny, PreferImportInMockConfig] | [AllowWarnDeny, RequireMockTypeParametersConfig] | [AllowWarnDeny, CaseType] | [AllowWarnDeny, DeclarationStyle] | [AllowWarnDeny, DeclarationStyle2] | [AllowWarnDeny, DefinePropsDestructuring] | [AllowWarnDeny, MaxProps] | [AllowWarnDeny, NextTickOption] | [AllowWarnDeny, NoAsyncInComputedPropertiesConfig] | [AllowWarnDeny, NoDeprecatedModelDefinitionConfig] | [AllowWarnDeny, NoDupeKeysConfig] | [AllowWarnDeny, NoReservedComponentNames] | [AllowWarnDeny, NoReservedKeysConfig] | [AllowWarnDeny, NoReservedPropsConfig] | [AllowWarnDeny, CaseType2] | [AllowWarnDeny, CaseType2, Options] | [AllowWarnDeny, RequireDirectExport] | [AllowWarnDeny, ReturnInComputedPropertyConfig] | [AllowWarnDeny, AllowYoda] | [AllowWarnDeny, AllowYoda, YodaOptions] | undefined;
|
|
1711
1711
|
}
|
|
1712
1712
|
interface AccessorPairsConfig {
|
|
1713
1713
|
/**
|
|
@@ -6558,6 +6558,13 @@ interface PreferObjectFromEntriesConfig {
|
|
|
6558
6558
|
*/
|
|
6559
6559
|
functions?: string[];
|
|
6560
6560
|
}
|
|
6561
|
+
interface PreferQuerySelector {
|
|
6562
|
+
/**
|
|
6563
|
+
* When set to `true`, allows using `.getElementById()` and `.getElementsByClassName()` when called with a variable or expression.
|
|
6564
|
+
* This avoids the need to manually compose a CSS selector string, which can be less readable.
|
|
6565
|
+
*/
|
|
6566
|
+
allowWithVariables?: boolean;
|
|
6567
|
+
}
|
|
6561
6568
|
interface PreferSingleCallConfig {
|
|
6562
6569
|
/**
|
|
6563
6570
|
* Methods to ignore.
|
package/dist/js_config.js
CHANGED
|
@@ -33,7 +33,7 @@ function getErrorMessage(err) {
|
|
|
33
33
|
* error is unrelated to TS module loading. Callers should overwrite, not append.
|
|
34
34
|
*/
|
|
35
35
|
function getUnsupportedTypeScriptModuleLoadHintForError(err, specifier, nodeVersion = process.version) {
|
|
36
|
-
return !isTypeScriptModuleSpecifier(specifier) || !isUnknownFileExtensionError(err) ? null : `${getErrorMessage(err)}\n\nTypeScript config files require Node.js
|
|
36
|
+
return !isTypeScriptModuleSpecifier(specifier) || !isUnknownFileExtensionError(err) ? null : `${getErrorMessage(err)}\n\nTypeScript config files require Node.js >=22.18.0.\nDetected Node.js ${nodeVersion}.\nPlease upgrade Node.js or use a JSON config file instead.`;
|
|
37
37
|
}
|
|
38
38
|
//#endregion
|
|
39
39
|
//#region ../shared/src-js/js_config/index.ts
|
package/dist/lint.js
CHANGED
|
@@ -738,7 +738,7 @@ function initCommentsBuffer() {
|
|
|
738
738
|
return;
|
|
739
739
|
}
|
|
740
740
|
let arrayBuffer = buffer.buffer, absolutePos = buffer.byteOffset + commentsPos;
|
|
741
|
-
if (commentsUint8 = new Uint8Array(arrayBuffer, absolutePos, commentsLen *
|
|
741
|
+
if (commentsUint8 = new Uint8Array(arrayBuffer, absolutePos, commentsLen * 24), commentsInt32 = new Int32Array(arrayBuffer, absolutePos, commentsLen * 6), cachedComments.length < commentsLen) {
|
|
742
742
|
do
|
|
743
743
|
cachedComments.push(new Comment());
|
|
744
744
|
while (cachedComments.length < commentsLen);
|
|
@@ -771,10 +771,10 @@ function getComment(index) {
|
|
|
771
771
|
* @returns `Comment` object if newly deserialized, or `null` if already deserialized
|
|
772
772
|
*/
|
|
773
773
|
function deserializeCommentIfNeeded(index) {
|
|
774
|
-
let pos = index
|
|
774
|
+
let pos = index * 24, flagPos = pos + 20;
|
|
775
775
|
if (commentsUint8[flagPos] !== 0) return null;
|
|
776
776
|
commentsUint8[flagPos] = 1;
|
|
777
|
-
let comment = cachedComments[index], kind = commentsUint8[pos +
|
|
777
|
+
let comment = cachedComments[index], kind = commentsUint8[pos + 17], isBlock = kind !== 0 && kind < 3, pos32 = pos >> 2, start = commentsInt32[pos32], end = commentsInt32[pos32 + 1];
|
|
778
778
|
return comment.type = isBlock ? "Block" : "Line", comment.value = sourceText.slice(start + (kind < 3 ? 2 : kind), end - (isBlock << 1)), comment.range[0] = comment.start = start, comment.range[1] = comment.end = end, comment;
|
|
779
779
|
}
|
|
780
780
|
/**
|
|
@@ -1169,7 +1169,7 @@ function deserializeTaggedTemplateExpression(pos) {
|
|
|
1169
1169
|
}
|
|
1170
1170
|
function deserializeTemplateElement(pos) {
|
|
1171
1171
|
let tail = deserializeBool(pos + 12), start = deserializeI32(pos) - 1, end = deserializeI32(pos + 4) + 2 - tail, value = deserializeTemplateElementValue(pos + 16);
|
|
1172
|
-
return
|
|
1172
|
+
return {
|
|
1173
1173
|
__proto__: NodeProto,
|
|
1174
1174
|
type: "TemplateElement",
|
|
1175
1175
|
value,
|
|
@@ -1183,7 +1183,7 @@ function deserializeTemplateElement(pos) {
|
|
|
1183
1183
|
function deserializeTemplateElementValue(pos) {
|
|
1184
1184
|
return {
|
|
1185
1185
|
raw: deserializeStr(pos),
|
|
1186
|
-
cooked:
|
|
1186
|
+
cooked: deserializeOptionJSStr(pos + 16)
|
|
1187
1187
|
};
|
|
1188
1188
|
}
|
|
1189
1189
|
function deserializeComputedMemberExpression(pos) {
|
|
@@ -2966,17 +2966,17 @@ function deserializeNumericLiteral(pos) {
|
|
|
2966
2966
|
};
|
|
2967
2967
|
}
|
|
2968
2968
|
function deserializeStringLiteral(pos) {
|
|
2969
|
-
let start = deserializeI32(pos), end = deserializeI32(pos + 4)
|
|
2969
|
+
let start = deserializeI32(pos), end = deserializeI32(pos + 4);
|
|
2970
|
+
return {
|
|
2970
2971
|
__proto__: NodeProto,
|
|
2971
2972
|
type: "Literal",
|
|
2972
|
-
value:
|
|
2973
|
+
value: deserializeJSStr(pos + 16),
|
|
2973
2974
|
raw: int32[(pos >> 2) + 8] === 0 && int32[(pos >> 2) + 9] === 0 ? null : sourceText$1.slice(start, end),
|
|
2974
2975
|
start,
|
|
2975
2976
|
end,
|
|
2976
2977
|
range: [start, end],
|
|
2977
2978
|
parent
|
|
2978
|
-
}
|
|
2979
|
-
return deserializeBool(pos + 12) && (value = value.replace(/\uFFFD(.{4})/g, (_, hex) => StringFromCodePoint(parseInt(hex, 16)))), node.value = value, parent = previousParent, node;
|
|
2979
|
+
};
|
|
2980
2980
|
}
|
|
2981
2981
|
function deserializeBigIntLiteral(pos) {
|
|
2982
2982
|
let start = deserializeI32(pos), end = deserializeI32(pos + 4), bigint = deserializeStr(pos + 16);
|
|
@@ -4917,8 +4917,19 @@ function deserializeBoxTSTypeParameterInstantiation(pos) {
|
|
|
4917
4917
|
function deserializeOptionBoxTSTypeParameterInstantiation(pos) {
|
|
4918
4918
|
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0 ? null : deserializeBoxTSTypeParameterInstantiation(pos);
|
|
4919
4919
|
}
|
|
4920
|
-
function
|
|
4921
|
-
|
|
4920
|
+
function deserializeJSStr(pos) {
|
|
4921
|
+
if (uint8[pos + 12] === 0) return deserializeStr(pos);
|
|
4922
|
+
let buffer = uint8, pos32 = pos >> 2, len = int32[pos32 + 2];
|
|
4923
|
+
pos = int32[pos32];
|
|
4924
|
+
let end = pos + len, out = "";
|
|
4925
|
+
for (; pos < end;) {
|
|
4926
|
+
let first = buffer[pos++], codePoint;
|
|
4927
|
+
codePoint = first < 128 ? first : first < 224 ? (first & 31) << 6 | buffer[pos++] & 63 : first < 240 ? (first & 15) << 12 | (buffer[pos++] & 63) << 6 | buffer[pos++] & 63 : (first & 7) << 18 | (buffer[pos++] & 63) << 12 | (buffer[pos++] & 63) << 6 | buffer[pos++] & 63, out += StringFromCodePoint(codePoint);
|
|
4928
|
+
}
|
|
4929
|
+
return out;
|
|
4930
|
+
}
|
|
4931
|
+
function deserializeOptionJSStr(pos) {
|
|
4932
|
+
return uint8[pos + 12] === 2 ? null : deserializeJSStr(pos);
|
|
4922
4933
|
}
|
|
4923
4934
|
function deserializeBoxComputedMemberExpression(pos) {
|
|
4924
4935
|
return deserializeComputedMemberExpression(int32[pos >> 2]);
|
|
@@ -5557,12 +5568,12 @@ let tokensAndComments = null, previousTokensAndComments = [], tokensAndCommentsI
|
|
|
5557
5568
|
*
|
|
5558
5569
|
* Creates a buffer containing tokens and comments interleaved in ascending order of `start`.
|
|
5559
5570
|
*
|
|
5560
|
-
*
|
|
5571
|
+
* Tokens and comments use their own strides, with `start` as the first `u32`.
|
|
5561
5572
|
*
|
|
5562
5573
|
* `tokensAndCommentsInt32` contains 16-byte entries with the layout:
|
|
5563
5574
|
* `{ start: u32, index: u32, type: u32, 4 bytes padding }`.
|
|
5564
5575
|
*
|
|
5565
|
-
* `index` is the index of the token/comment within its original buffer
|
|
5576
|
+
* `index` is the index of the token/comment within its original buffer.
|
|
5566
5577
|
*/
|
|
5567
5578
|
function initTokensAndCommentsBuffer() {
|
|
5568
5579
|
tokensInt32 === null && initTokensBuffer(), commentsInt32 === null && initCommentsBuffer(), tokensAndCommentsLen = tokensLen + commentsLen;
|
|
@@ -5583,7 +5594,7 @@ function mergeTokensAndComments(tokensInt32, commentsInt32) {
|
|
|
5583
5594
|
fillMergedEntries(0, tokensInt32, mergedPos32, tokenIndex, tokensLen);
|
|
5584
5595
|
return;
|
|
5585
5596
|
}
|
|
5586
|
-
commentStart = commentsInt32[commentIndex
|
|
5597
|
+
commentStart = commentsInt32[commentIndex * 6];
|
|
5587
5598
|
}
|
|
5588
5599
|
for (;;) {
|
|
5589
5600
|
do {
|
|
@@ -5598,7 +5609,7 @@ function mergeTokensAndComments(tokensInt32, commentsInt32) {
|
|
|
5598
5609
|
fillMergedEntries(0, tokensInt32, mergedPos32, tokenIndex, tokensLen);
|
|
5599
5610
|
return;
|
|
5600
5611
|
}
|
|
5601
|
-
commentStart = commentsInt32[commentIndex
|
|
5612
|
+
commentStart = commentsInt32[commentIndex * 6];
|
|
5602
5613
|
} while (commentStart < tokenStart);
|
|
5603
5614
|
}
|
|
5604
5615
|
}
|
|
@@ -5613,8 +5624,8 @@ function writeMergedEntry(type, mergedPos32, originalIndex, start) {
|
|
|
5613
5624
|
* Used for fast paths and for appending remaining items after the merge loop.
|
|
5614
5625
|
*/
|
|
5615
5626
|
function fillMergedEntries(type, srcInt32, mergedPos32, srcIndex, srcLen) {
|
|
5616
|
-
let srcPos32 = srcIndex
|
|
5617
|
-
for (; srcIndex < srcLen; srcIndex++) tokensAndCommentsInt32[mergedPos32] = srcInt32[srcPos32], tokensAndCommentsInt32[mergedPos32 + 1] = srcIndex, tokensAndCommentsInt32[mergedPos32 + 2] = type, mergedPos32 += 4, srcPos32 +=
|
|
5627
|
+
let srcSize32 = type === 0 ? 4 : 6, srcPos32 = srcIndex * srcSize32;
|
|
5628
|
+
for (; srcIndex < srcLen; srcIndex++) tokensAndCommentsInt32[mergedPos32] = srcInt32[srcPos32], tokensAndCommentsInt32[mergedPos32 + 1] = srcIndex, tokensAndCommentsInt32[mergedPos32 + 2] = type, mergedPos32 += 4, srcPos32 += srcSize32;
|
|
5618
5629
|
}
|
|
5619
5630
|
/**
|
|
5620
5631
|
* Get token or comment from the merged buffer at `index`.
|
|
@@ -5635,8 +5646,8 @@ function getTokenOrComment(index) {
|
|
|
5635
5646
|
* @returns The `end` offset of the token/comment in source text
|
|
5636
5647
|
*/
|
|
5637
5648
|
function getTokenOrCommentEnd(entryIndex) {
|
|
5638
|
-
let pos32 = entryIndex << 2,
|
|
5639
|
-
return tokensAndCommentsInt32[pos32 + 2] === 0 ? tokensInt32[
|
|
5649
|
+
let pos32 = entryIndex << 2, originalIndex = tokensAndCommentsInt32[pos32 + 1];
|
|
5650
|
+
return tokensAndCommentsInt32[pos32 + 2] === 0 ? tokensInt32[(originalIndex << 2) + 1] : commentsInt32[originalIndex * 6 + 1];
|
|
5640
5651
|
}
|
|
5641
5652
|
/**
|
|
5642
5653
|
* Get all tokens and comments in source order.
|
|
@@ -5747,12 +5758,12 @@ function getCommentsInside(node) {
|
|
|
5747
5758
|
let { range } = node, rangeStart = range[0], rangeEnd = range[1], sliceStart = 0;
|
|
5748
5759
|
for (let endIndex = commentsLen; sliceStart < endIndex;) {
|
|
5749
5760
|
let mid = sliceStart + endIndex >> 1;
|
|
5750
|
-
commentsInt32[mid
|
|
5761
|
+
commentsInt32[mid * 6] < rangeStart ? sliceStart = mid + 1 : endIndex = mid;
|
|
5751
5762
|
}
|
|
5752
5763
|
let sliceEnd = sliceStart;
|
|
5753
5764
|
for (let endIndex = commentsLen; sliceEnd < endIndex;) {
|
|
5754
5765
|
let mid = sliceEnd + endIndex >> 1;
|
|
5755
|
-
commentsInt32[mid
|
|
5766
|
+
commentsInt32[mid * 6] < rangeEnd ? sliceEnd = mid + 1 : endIndex = mid;
|
|
5756
5767
|
}
|
|
5757
5768
|
for (let i = sliceStart; i < sliceEnd; i++) getComment(i);
|
|
5758
5769
|
return cachedComments.slice(sliceStart, sliceEnd);
|
|
@@ -5768,9 +5779,9 @@ function commentsExistBetween(nodeOrToken1, nodeOrToken2) {
|
|
|
5768
5779
|
let betweenRangeStart = nodeOrToken1.range[1], firstCommentBetween = 0;
|
|
5769
5780
|
for (let endIndex = commentsLen; firstCommentBetween < endIndex;) {
|
|
5770
5781
|
let mid = firstCommentBetween + endIndex >> 1;
|
|
5771
|
-
commentsInt32[mid
|
|
5782
|
+
commentsInt32[mid * 6] < betweenRangeStart ? firstCommentBetween = mid + 1 : endIndex = mid;
|
|
5772
5783
|
}
|
|
5773
|
-
return firstCommentBetween < commentsLen && commentsInt32[
|
|
5784
|
+
return firstCommentBetween < commentsLen && commentsInt32[firstCommentBetween * 6 + 1] <= nodeOrToken2.range[0];
|
|
5774
5785
|
}
|
|
5775
5786
|
/**
|
|
5776
5787
|
* Retrieve the JSDoc comment for a given node.
|
|
@@ -6022,8 +6033,8 @@ var require_eslint_visitor_keys = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6022
6033
|
exports.KEYS = KEYS, exports.getKeys = getKeys, exports.unionWith = unionWith;
|
|
6023
6034
|
})), require_get_keys = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6024
6035
|
Object.defineProperty(exports, "__esModule", { value: !0 }), exports.getKeys = void 0, exports.getKeys = require_eslint_visitor_keys().getKeys;
|
|
6025
|
-
})), require_visitor_keys = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6026
|
-
var __createBinding =
|
|
6036
|
+
})), require_visitor_keys = /* @__PURE__ */ __commonJSMin(((exports, module, this$8) => {
|
|
6037
|
+
var __createBinding = this$8 && this$8.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
6027
6038
|
k2 === void 0 && (k2 = k);
|
|
6028
6039
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6029
6040
|
(!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) && (desc = {
|
|
@@ -6034,14 +6045,14 @@ var require_eslint_visitor_keys = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6034
6045
|
}), Object.defineProperty(o, k2, desc);
|
|
6035
6046
|
}) : (function(o, m, k, k2) {
|
|
6036
6047
|
k2 === void 0 && (k2 = k), o[k2] = m[k];
|
|
6037
|
-
})), __setModuleDefault =
|
|
6048
|
+
})), __setModuleDefault = this$8 && this$8.__setModuleDefault || (Object.create ? (function(o, v) {
|
|
6038
6049
|
Object.defineProperty(o, "default", {
|
|
6039
6050
|
enumerable: !0,
|
|
6040
6051
|
value: v
|
|
6041
6052
|
});
|
|
6042
6053
|
}) : function(o, v) {
|
|
6043
6054
|
o.default = v;
|
|
6044
|
-
}), __importStar =
|
|
6055
|
+
}), __importStar = this$8 && this$8.__importStar || (function() {
|
|
6045
6056
|
var ownKeys = function(o) {
|
|
6046
6057
|
return ownKeys = Object.getOwnPropertyNames || function(o) {
|
|
6047
6058
|
var ar = [];
|
|
@@ -6310,8 +6321,8 @@ var require_eslint_visitor_keys = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6310
6321
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
6311
6322
|
})), require_parser_options = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6312
6323
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
6313
|
-
})), require_ts_estree = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6314
|
-
var __createBinding =
|
|
6324
|
+
})), require_ts_estree = /* @__PURE__ */ __commonJSMin(((exports, module, this$7) => {
|
|
6325
|
+
var __createBinding = this$7 && this$7.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
6315
6326
|
k2 === void 0 && (k2 = k);
|
|
6316
6327
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6317
6328
|
(!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) && (desc = {
|
|
@@ -6322,14 +6333,14 @@ var require_eslint_visitor_keys = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6322
6333
|
}), Object.defineProperty(o, k2, desc);
|
|
6323
6334
|
}) : (function(o, m, k, k2) {
|
|
6324
6335
|
k2 === void 0 && (k2 = k), o[k2] = m[k];
|
|
6325
|
-
})), __setModuleDefault =
|
|
6336
|
+
})), __setModuleDefault = this$7 && this$7.__setModuleDefault || (Object.create ? (function(o, v) {
|
|
6326
6337
|
Object.defineProperty(o, "default", {
|
|
6327
6338
|
enumerable: !0,
|
|
6328
6339
|
value: v
|
|
6329
6340
|
});
|
|
6330
6341
|
}) : function(o, v) {
|
|
6331
6342
|
o.default = v;
|
|
6332
|
-
}), __importStar =
|
|
6343
|
+
}), __importStar = this$7 && this$7.__importStar || (function() {
|
|
6333
6344
|
var ownKeys = function(o) {
|
|
6334
6345
|
return ownKeys = Object.getOwnPropertyNames || function(o) {
|
|
6335
6346
|
var ar = [];
|
|
@@ -6345,8 +6356,8 @@ var require_eslint_visitor_keys = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6345
6356
|
};
|
|
6346
6357
|
})();
|
|
6347
6358
|
Object.defineProperty(exports, "__esModule", { value: !0 }), exports.TSESTree = void 0, exports.TSESTree = __importStar(require_ast_spec());
|
|
6348
|
-
})), require_dist$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6349
|
-
var __createBinding =
|
|
6359
|
+
})), require_dist$1 = /* @__PURE__ */ __commonJSMin(((exports, module, this$6) => {
|
|
6360
|
+
var __createBinding = this$6 && this$6.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
6350
6361
|
k2 === void 0 && (k2 = k);
|
|
6351
6362
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6352
6363
|
(!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) && (desc = {
|
|
@@ -6357,8 +6368,8 @@ var require_eslint_visitor_keys = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6357
6368
|
}), Object.defineProperty(o, k2, desc);
|
|
6358
6369
|
}) : (function(o, m, k, k2) {
|
|
6359
6370
|
k2 === void 0 && (k2 = k), o[k2] = m[k];
|
|
6360
|
-
})), __exportStar =
|
|
6361
|
-
for (var p in m) p !== "default" && !Object.prototype.hasOwnProperty.call(exports
|
|
6371
|
+
})), __exportStar = this$6 && this$6.__exportStar || function(m, exports) {
|
|
6372
|
+
for (var p in m) p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p) && __createBinding(exports, m, p);
|
|
6362
6373
|
};
|
|
6363
6374
|
Object.defineProperty(exports, "__esModule", { value: !0 }), exports.AST_TOKEN_TYPES = exports.AST_NODE_TYPES = void 0;
|
|
6364
6375
|
var ast_spec_1 = require_ast_spec();
|
|
@@ -6553,8 +6564,8 @@ var require_eslint_visitor_keys = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6553
6564
|
}
|
|
6554
6565
|
};
|
|
6555
6566
|
exports.VariableDefinition = VariableDefinition;
|
|
6556
|
-
})), require_definition = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6557
|
-
var __createBinding =
|
|
6567
|
+
})), require_definition = /* @__PURE__ */ __commonJSMin(((exports, module, this$5) => {
|
|
6568
|
+
var __createBinding = this$5 && this$5.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
6558
6569
|
k2 === void 0 && (k2 = k);
|
|
6559
6570
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6560
6571
|
(!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) && (desc = {
|
|
@@ -6565,8 +6576,8 @@ var require_eslint_visitor_keys = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6565
6576
|
}), Object.defineProperty(o, k2, desc);
|
|
6566
6577
|
}) : (function(o, m, k, k2) {
|
|
6567
6578
|
k2 === void 0 && (k2 = k), o[k2] = m[k];
|
|
6568
|
-
})), __exportStar =
|
|
6569
|
-
for (var p in m) p !== "default" && !Object.prototype.hasOwnProperty.call(exports
|
|
6579
|
+
})), __exportStar = this$5 && this$5.__exportStar || function(m, exports) {
|
|
6580
|
+
for (var p in m) p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p) && __createBinding(exports, m, p);
|
|
6570
6581
|
};
|
|
6571
6582
|
Object.defineProperty(exports, "__esModule", { value: !0 }), __exportStar(require_CatchClauseDefinition(), exports), __exportStar(require_ClassNameDefinition(), exports), __exportStar(require_Definition(), exports), __exportStar(require_DefinitionType(), exports), __exportStar(require_FunctionNameDefinition(), exports), __exportStar(require_ImplicitGlobalVariableDefinition(), exports), __exportStar(require_ImportBindingDefinition(), exports), __exportStar(require_ParameterDefinition(), exports), __exportStar(require_TSEnumMemberDefinition(), exports), __exportStar(require_TSEnumNameDefinition(), exports), __exportStar(require_TSModuleNameDefinition(), exports), __exportStar(require_TypeDefinition(), exports), __exportStar(require_VariableDefinition(), exports);
|
|
6572
6583
|
})), require_base_config = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -11359,8 +11370,8 @@ var require_eslint_visitor_keys = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
11359
11370
|
}
|
|
11360
11371
|
};
|
|
11361
11372
|
exports.WithScope = WithScope;
|
|
11362
|
-
})), require_scope = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
11363
|
-
var __createBinding =
|
|
11373
|
+
})), require_scope = /* @__PURE__ */ __commonJSMin(((exports, module, this$4) => {
|
|
11374
|
+
var __createBinding = this$4 && this$4.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
11364
11375
|
k2 === void 0 && (k2 = k);
|
|
11365
11376
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
11366
11377
|
(!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) && (desc = {
|
|
@@ -11371,8 +11382,8 @@ var require_eslint_visitor_keys = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
11371
11382
|
}), Object.defineProperty(o, k2, desc);
|
|
11372
11383
|
}) : (function(o, m, k, k2) {
|
|
11373
11384
|
k2 === void 0 && (k2 = k), o[k2] = m[k];
|
|
11374
|
-
})), __exportStar =
|
|
11375
|
-
for (var p in m) p !== "default" && !Object.prototype.hasOwnProperty.call(exports
|
|
11385
|
+
})), __exportStar = this$4 && this$4.__exportStar || function(m, exports) {
|
|
11386
|
+
for (var p in m) p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p) && __createBinding(exports, m, p);
|
|
11376
11387
|
};
|
|
11377
11388
|
Object.defineProperty(exports, "__esModule", { value: !0 }), __exportStar(require_BlockScope(), exports), __exportStar(require_CatchScope(), exports), __exportStar(require_ClassFieldInitializerScope(), exports), __exportStar(require_ClassScope(), exports), __exportStar(require_ClassStaticBlockScope(), exports), __exportStar(require_ConditionalTypeScope(), exports), __exportStar(require_ForScope(), exports), __exportStar(require_FunctionExpressionNameScope(), exports), __exportStar(require_FunctionScope(), exports), __exportStar(require_FunctionTypeScope(), exports), __exportStar(require_GlobalScope(), exports), __exportStar(require_MappedTypeScope(), exports), __exportStar(require_ModuleScope(), exports), __exportStar(require_Scope(), exports), __exportStar(require_ScopeType(), exports), __exportStar(require_SwitchScope(), exports), __exportStar(require_TSEnumScope(), exports), __exportStar(require_TSModuleScope(), exports), __exportStar(require_TypeScope(), exports), __exportStar(require_WithScope(), exports);
|
|
11378
11389
|
})), require_VisitorBase = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -11550,11 +11561,8 @@ var require_eslint_visitor_keys = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
11550
11561
|
let typeParameter = node.typeParameter, scope = this.#referencer.currentScope();
|
|
11551
11562
|
if (scope.type === scope_1.ScopeType.functionType || scope.type === scope_1.ScopeType.mappedType) {
|
|
11552
11563
|
let currentScope = scope.upper;
|
|
11553
|
-
for (; currentScope;)
|
|
11554
|
-
|
|
11555
|
-
currentScope = currentScope.upper;
|
|
11556
|
-
continue;
|
|
11557
|
-
}
|
|
11564
|
+
for (; currentScope;) if (currentScope.type === scope_1.ScopeType.functionType || currentScope.type === scope_1.ScopeType.mappedType) currentScope = currentScope.upper;
|
|
11565
|
+
else {
|
|
11558
11566
|
if (currentScope.type === scope_1.ScopeType.conditionalType) {
|
|
11559
11567
|
scope = currentScope;
|
|
11560
11568
|
break;
|
|
@@ -11806,11 +11814,8 @@ var require_eslint_visitor_keys = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
11806
11814
|
let scope = this.scopeManager.currentScope;
|
|
11807
11815
|
for (; scope;) {
|
|
11808
11816
|
let variable = scope.set.get(name);
|
|
11809
|
-
if (!variable)
|
|
11810
|
-
|
|
11811
|
-
continue;
|
|
11812
|
-
}
|
|
11813
|
-
return scope.referenceValue(variable.identifiers[0]), !0;
|
|
11817
|
+
if (!variable) scope = scope.upper;
|
|
11818
|
+
else return scope.referenceValue(variable.identifiers[0]), !0;
|
|
11814
11819
|
}
|
|
11815
11820
|
return !1;
|
|
11816
11821
|
}
|
|
@@ -12229,8 +12234,8 @@ var require_eslint_visitor_keys = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12229
12234
|
let scopeManager = new ScopeManager_1.ScopeManager(options);
|
|
12230
12235
|
return new referencer_1.Referencer(options, scopeManager).visit(tree), scopeManager;
|
|
12231
12236
|
}
|
|
12232
|
-
})), import_dist = (/* @__PURE__ */ __commonJSMin(((exports) => {
|
|
12233
|
-
var __createBinding =
|
|
12237
|
+
})), import_dist = (/* @__PURE__ */ __commonJSMin(((exports, module, this$3) => {
|
|
12238
|
+
var __createBinding = this$3 && this$3.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
12234
12239
|
k2 === void 0 && (k2 = k);
|
|
12235
12240
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12236
12241
|
(!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) && (desc = {
|
|
@@ -12241,8 +12246,8 @@ var require_eslint_visitor_keys = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12241
12246
|
}), Object.defineProperty(o, k2, desc);
|
|
12242
12247
|
}) : (function(o, m, k, k2) {
|
|
12243
12248
|
k2 === void 0 && (k2 = k), o[k2] = m[k];
|
|
12244
|
-
})), __exportStar =
|
|
12245
|
-
for (var p in m) p !== "default" && !Object.prototype.hasOwnProperty.call(exports
|
|
12249
|
+
})), __exportStar = this$3 && this$3.__exportStar || function(m, exports) {
|
|
12250
|
+
for (var p in m) p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p) && __createBinding(exports, m, p);
|
|
12246
12251
|
};
|
|
12247
12252
|
Object.defineProperty(exports, "__esModule", { value: !0 }), exports.ScopeManager = exports.Visitor = exports.Reference = exports.PatternVisitor = exports.analyze = void 0;
|
|
12248
12253
|
var analyze_1 = require_analyze();
|
|
@@ -14282,7 +14287,7 @@ function resetSettings() {
|
|
|
14282
14287
|
}
|
|
14283
14288
|
//#endregion
|
|
14284
14289
|
//#region package.json
|
|
14285
|
-
var version = "1.
|
|
14290
|
+
var version = "1.89.0";
|
|
14286
14291
|
//#endregion
|
|
14287
14292
|
//#region src-js/plugins/context.ts
|
|
14288
14293
|
const ObjectFreeze$1 = Object.freeze, ObjectCreate = Object.create, ObjectAssign = Object.assign, ObjectPreventExtensions = Object.preventExtensions;
|
|
@@ -14578,11 +14583,11 @@ function createContext(ruleDetails) {
|
|
|
14578
14583
|
}
|
|
14579
14584
|
//#endregion
|
|
14580
14585
|
//#region ../../node_modules/.pnpm/uri-js@4.4.1/node_modules/uri-js/dist/es5/uri.all.js
|
|
14581
|
-
var require_uri_all = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
14586
|
+
var require_uri_all = /* @__PURE__ */ __commonJSMin(((exports, module, this$2) => {
|
|
14582
14587
|
/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
|
|
14583
14588
|
(function(global, factory) {
|
|
14584
14589
|
typeof exports == "object" && module !== void 0 ? factory(exports) : typeof define == "function" && define.amd ? define(["exports"], factory) : factory(global.URI = global.URI || {});
|
|
14585
|
-
})(
|
|
14590
|
+
})(this$2, (function(exports) {
|
|
14586
14591
|
function merge() {
|
|
14587
14592
|
var sets = [...arguments];
|
|
14588
14593
|
if (sets.length > 1) {
|
|
@@ -15129,7 +15134,7 @@ var require_uri_all = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
15129
15134
|
return urnComponents.nss = (uuidComponents.uuid || "").toLowerCase(), urnComponents;
|
|
15130
15135
|
}
|
|
15131
15136
|
};
|
|
15132
|
-
SCHEMES[handler.scheme] = handler, SCHEMES[handler$1.scheme] = handler$1, SCHEMES[handler$2.scheme] = handler$2, SCHEMES[handler$3.scheme] = handler$3, SCHEMES[handler$4.scheme] = handler$4, SCHEMES[handler$5.scheme] = handler$5, SCHEMES[handler$6.scheme] = handler$6, exports
|
|
15137
|
+
SCHEMES[handler.scheme] = handler, SCHEMES[handler$1.scheme] = handler$1, SCHEMES[handler$2.scheme] = handler$2, SCHEMES[handler$3.scheme] = handler$3, SCHEMES[handler$4.scheme] = handler$4, SCHEMES[handler$5.scheme] = handler$5, SCHEMES[handler$6.scheme] = handler$6, exports.SCHEMES = SCHEMES, exports.pctEncChar = pctEncChar, exports.pctDecChars = pctDecChars, exports.parse = parse, exports.removeDotSegments = removeDotSegments, exports.serialize = serialize, exports.resolveComponents = resolveComponents, exports.resolve = resolve, exports.normalize = normalize, exports.equal = equal, exports.escapeComponent = escapeComponent, exports.unescapeComponent = unescapeComponent, Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
15133
15138
|
}));
|
|
15134
15139
|
})), require_fast_deep_equal = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
15135
15140
|
module.exports = function equal(a, b) {
|
|
@@ -17197,7 +17202,7 @@ var require_uri_all = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
17197
17202
|
} },
|
|
17198
17203
|
additionalProperties: !1
|
|
17199
17204
|
};
|
|
17200
|
-
})),
|
|
17205
|
+
})), require_ajv = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
17201
17206
|
var compileSchema = require_compile(), resolve = require_resolve(), Cache = require_cache(), SchemaObject = require_schema_obj(), stableStringify = require_fast_json_stable_stringify(), formats = require_formats(), rules = require_rules(), $dataMetaSchema = require_data$1(), util = require_util();
|
|
17202
17207
|
module.exports = Ajv, Ajv.prototype.validate = validate, Ajv.prototype.compile = compile, Ajv.prototype.addSchema = addSchema, Ajv.prototype.addMetaSchema = addMetaSchema, Ajv.prototype.validateSchema = validateSchema, Ajv.prototype.getSchema = getSchema, Ajv.prototype.removeSchema = removeSchema, Ajv.prototype.addFormat = addFormat, Ajv.prototype.errorsText = errorsText, Ajv.prototype._addSchema = _addSchema, Ajv.prototype._compile = _compile, Ajv.prototype.compileAsync = require_async();
|
|
17203
17208
|
var customKeyword = require_keyword();
|
|
@@ -17490,7 +17495,7 @@ var require_uri_all = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
17490
17495
|
}
|
|
17491
17496
|
}
|
|
17492
17497
|
function noop() {}
|
|
17493
|
-
}))
|
|
17498
|
+
})), json_schema_draft_04_default = {
|
|
17494
17499
|
id: "http://json-schema.org/draft-04/schema#",
|
|
17495
17500
|
$schema: "http://json-schema.org/draft-04/schema#",
|
|
17496
17501
|
description: "Core schema meta-schema",
|
|
@@ -17611,9 +17616,7 @@ var require_uri_all = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
17611
17616
|
exclusiveMinimum: ["minimum"]
|
|
17612
17617
|
},
|
|
17613
17618
|
default: {}
|
|
17614
|
-
};
|
|
17615
|
-
//#endregion
|
|
17616
|
-
//#region src-js/plugins/workspace.ts
|
|
17619
|
+
}, import_ajv = /* @__PURE__ */ __toESM(require_ajv(), 1);
|
|
17617
17620
|
function switchWorkspace(workspaceUri) {
|
|
17618
17621
|
if (currentWorkspaceUri === workspaceUri) return;
|
|
17619
17622
|
let workspace = workspaces.get(workspaceUri);
|
|
@@ -17987,7 +17990,7 @@ function conformHookFn(hookFn, hookName) {
|
|
|
17987
17990
|
return hookFn;
|
|
17988
17991
|
}
|
|
17989
17992
|
//#endregion
|
|
17990
|
-
//#region ../../node_modules/.pnpm/eslint@10.
|
|
17993
|
+
//#region ../../node_modules/.pnpm/eslint@10.12.0/node_modules/eslint/lib/shared/assert.js
|
|
17991
17994
|
/**
|
|
17992
17995
|
* @fileoverview Assertion utilities equivalent to the Node.js node:asserts module.
|
|
17993
17996
|
* @author Josh Goldberg
|
|
@@ -20030,11 +20033,7 @@ var require_assert = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
20030
20033
|
}
|
|
20031
20034
|
for (; stack.length > 0;) {
|
|
20032
20035
|
if (record = stack.at(-1), segment = record[0], index = record[1], index === 0) {
|
|
20033
|
-
if (visited.has(segment)) {
|
|
20034
|
-
stack.pop();
|
|
20035
|
-
continue;
|
|
20036
|
-
}
|
|
20037
|
-
if (segment !== startSegment && segment.prevSegments.length > 0 && !segment.prevSegments.every(isVisited)) {
|
|
20036
|
+
if (visited.has(segment) || segment !== startSegment && segment.prevSegments.length > 0 && !segment.prevSegments.every(isVisited)) {
|
|
20038
20037
|
stack.pop();
|
|
20039
20038
|
continue;
|
|
20040
20039
|
}
|
|
@@ -22173,10 +22172,10 @@ function wrapTimedFunction(fn, timing) {
|
|
|
22173
22172
|
}
|
|
22174
22173
|
};
|
|
22175
22174
|
}
|
|
22176
|
-
const { matches: esqueryMatches, parse: esqueryParse } = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
22175
|
+
const { matches: esqueryMatches, parse: esqueryParse } = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module, this$1) => {
|
|
22177
22176
|
(function(e, t) {
|
|
22178
22177
|
typeof exports == "object" && module !== void 0 ? module.exports = t() : typeof define == "function" && define.amd ? define(t) : (e ||= self).esquery = t();
|
|
22179
|
-
})(
|
|
22178
|
+
})(this$1, (function() {
|
|
22180
22179
|
function e(e, t) {
|
|
22181
22180
|
(t == null || t > e.length) && (t = e.length);
|
|
22182
22181
|
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
|
@@ -23651,24 +23650,23 @@ function addVisitorToCompiled(visitor, timing) {
|
|
|
23651
23650
|
let visitProp = visitPropsCache[visitPropsCacheNextIndex++];
|
|
23652
23651
|
visitProp.fn = timing === void 0 ? visitFn : wrapTimedFunction(visitFn, timing), visitProp.specificity = specificity, visitProp.selectorStr = name;
|
|
23653
23652
|
let typeId = NODE_TYPE_IDS_MAP.get(name);
|
|
23654
|
-
if (typeId !== void 0)
|
|
23655
|
-
|
|
23656
|
-
|
|
23657
|
-
|
|
23658
|
-
|
|
23659
|
-
|
|
23660
|
-
|
|
23661
|
-
|
|
23662
|
-
|
|
23663
|
-
|
|
23664
|
-
|
|
23665
|
-
|
|
23653
|
+
if (typeId !== void 0) visitProp.specificity |= 1, typeId < 27 ? addLeafVisitFn(typeId, visitProp) : typeId < 165 ? addNonLeafVisitFn(typeId, visitProp, isExit) : addCfgVisitFn(typeId, visitProp, isExit);
|
|
23654
|
+
else {
|
|
23655
|
+
if (name !== "*") {
|
|
23656
|
+
let selector = parseSelector(name);
|
|
23657
|
+
visitProp.specificity |= selector.specificity, selector.isComplex && (visitProp.fn = wrapVisitFnWithSelectorMatch(visitFn, selector.esquerySelector), timing !== void 0 && (visitProp.fn = wrapTimedFunction(visitProp.fn, timing)));
|
|
23658
|
+
let { typeIds } = selector;
|
|
23659
|
+
if (typeIds !== null) {
|
|
23660
|
+
for (let i = 0, len = typeIds.length; i < len; i++) {
|
|
23661
|
+
let typeId = typeIds[i];
|
|
23662
|
+
typeId < 27 ? addLeafVisitFn(typeId, visitProp) : addNonLeafVisitFn(typeId, visitProp, isExit);
|
|
23663
|
+
}
|
|
23664
|
+
continue;
|
|
23666
23665
|
}
|
|
23667
|
-
continue;
|
|
23668
23666
|
}
|
|
23667
|
+
for (typeId = 0; typeId < 27; typeId++) addLeafVisitFn(typeId, visitProp);
|
|
23668
|
+
for (; typeId < 165; typeId++) addNonLeafVisitFn(typeId, visitProp, isExit);
|
|
23669
23669
|
}
|
|
23670
|
-
for (typeId = 0; typeId < 27; typeId++) addLeafVisitFn(typeId, visitProp);
|
|
23671
|
-
for (; typeId < 165; typeId++) addNonLeafVisitFn(typeId, visitProp, isExit);
|
|
23672
23670
|
}
|
|
23673
23671
|
}
|
|
23674
23672
|
/**
|
package/dist/plugins-dev.d.ts
CHANGED
|
@@ -3434,7 +3434,10 @@ declare function isSpaceBetweenTokens(first: NodeOrToken, second: NodeOrToken):
|
|
|
3434
3434
|
* Note: Source text is limited to 1 GiB max, so number of tokens cannot exceed 2^30.
|
|
3435
3435
|
* This makes it safe to use `>> 1` for division by 2 below (which is faster than `>>> 1`).
|
|
3436
3436
|
*
|
|
3437
|
-
*
|
|
3437
|
+
* This function is inlined into call sites by `inline_search` TSDown plugin.
|
|
3438
|
+
* All call sites must have `TOKEN_SIZE32_SHIFT` const in scope.
|
|
3439
|
+
*
|
|
3440
|
+
* @param int32 - `Int32Array` buffer (tokens or tokensAndComments)
|
|
3438
3441
|
* @param offset - Source offset to search for
|
|
3439
3442
|
* @param startIndex - Starting entry index for the search
|
|
3440
3443
|
* @param length - Total number of entries in the buffer
|
|
@@ -4307,4 +4310,5 @@ export declare namespace RuleTester {
|
|
|
4307
4310
|
type Error = _Error;
|
|
4308
4311
|
type ErrorSuggestion = _ErrorSuggestion;
|
|
4309
4312
|
}
|
|
4310
|
-
//#endregion
|
|
4313
|
+
//#endregion
|
|
4314
|
+
export {};
|
package/dist/plugins-dev.js
CHANGED
|
@@ -401,11 +401,7 @@ function runFixes(diagnostics, code) {
|
|
|
401
401
|
* @throws {AssertionError} If `message` / `messageId` is not correct
|
|
402
402
|
*/
|
|
403
403
|
function assertInvalidTestCaseMessageIsCorrect(diagnostic, error, messages) {
|
|
404
|
-
|
|
405
|
-
assert(!ObjectHasOwn(error, "messageId"), "Error should not specify both `message` and a `messageId`"), assert(!ObjectHasOwn(error, "data"), "Error should not specify both `data` and `message`"), assertMessageMatches(diagnostic.message, error.message);
|
|
406
|
-
return;
|
|
407
|
-
}
|
|
408
|
-
assert(ObjectHasOwn(error, "messageId"), "Test error must specify either a `messageId` or `message`"), assertMessageIdIsCorrect(diagnostic.messageId, diagnostic.message, error.messageId, error.data, messages, "");
|
|
404
|
+
ObjectHasOwn(error, "message") ? (assert(!ObjectHasOwn(error, "messageId"), "Error should not specify both `message` and a `messageId`"), assert(!ObjectHasOwn(error, "data"), "Error should not specify both `data` and `message`"), assertMessageMatches(diagnostic.message, error.message)) : (assert(ObjectHasOwn(error, "messageId"), "Test error must specify either a `messageId` or `message`"), assertMessageIdIsCorrect(diagnostic.messageId, diagnostic.message, error.messageId, error.data, messages, ""));
|
|
409
405
|
}
|
|
410
406
|
/**
|
|
411
407
|
* Assert that a `messageId` used by the rule under test is correct, and validate `data` (if provided).
|
|
@@ -471,15 +467,7 @@ function assertSuggestionsAreCorrect(diagnostic, error, messages, test) {
|
|
|
471
467
|
* @throws {AssertionError} If suggestion message does not match
|
|
472
468
|
*/
|
|
473
469
|
function assertSuggestionMessageIsCorrect(actual, expected, messages, prefix) {
|
|
474
|
-
|
|
475
|
-
assert(!ObjectHasOwn(expected, "messageId"), `${prefix}: Test should not specify both \`desc\` and \`messageId\``), assert(!ObjectHasOwn(expected, "data"), `${prefix}: Test should not specify both \`desc\` and \`data\``), assert.strictEqual(actual.message, expected.desc, `${prefix}: \`desc\` should be "${expected.desc}" but got "${actual.message}" instead`);
|
|
476
|
-
return;
|
|
477
|
-
}
|
|
478
|
-
if (ObjectHasOwn(expected, "messageId")) {
|
|
479
|
-
assertMessageIdIsCorrect(actual.messageId, actual.message, expected.messageId, expected.data, messages, `${prefix}: `);
|
|
480
|
-
return;
|
|
481
|
-
}
|
|
482
|
-
ObjectHasOwn(expected, "data") && assert.fail(`${prefix}: Test must specify \`messageId\` if \`data\` is used`), assert.fail(`${prefix}: Test must specify either \`messageId\` or \`desc\``);
|
|
470
|
+
ObjectHasOwn(expected, "desc") ? (assert(!ObjectHasOwn(expected, "messageId"), `${prefix}: Test should not specify both \`desc\` and \`messageId\``), assert(!ObjectHasOwn(expected, "data"), `${prefix}: Test should not specify both \`desc\` and \`data\``), assert.strictEqual(actual.message, expected.desc, `${prefix}: \`desc\` should be "${expected.desc}" but got "${actual.message}" instead`)) : ObjectHasOwn(expected, "messageId") ? assertMessageIdIsCorrect(actual.messageId, actual.message, expected.messageId, expected.data, messages, `${prefix}: `) : (ObjectHasOwn(expected, "data") && assert.fail(`${prefix}: Test must specify \`messageId\` if \`data\` is used`), assert.fail(`${prefix}: Test must specify either \`messageId\` or \`desc\``));
|
|
483
471
|
}
|
|
484
472
|
/**
|
|
485
473
|
* Assert that the number of errors reported for test case is as expected.
|
package/dist/rolldown-runtime.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
2
|
//#region \0rolldown/runtime.js
|
|
3
|
-
var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports), __exportAll = (all, no_symbols) => {
|
|
3
|
+
var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod, mod.exports), cb = null), mod.exports), __exportAll = (all, no_symbols) => {
|
|
4
4
|
let target = {};
|
|
5
5
|
for (var name in all) __defProp(target, name, {
|
|
6
6
|
get: all[name],
|
package/dist/workspace.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { createWorkspace, currentWorkspace, currentWorkspaceUri, destroyWorkspace, setCurrentWorkspace, workspaces };
|
|
1
|
+
export { t as createWorkspace, n as currentWorkspace, r as currentWorkspaceUri, i as destroyWorkspace, a as setCurrentWorkspace, o as workspaces } from "./workspace2.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oxlint",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.89.0",
|
|
4
4
|
"description": "Linter for the JavaScript Oxidation Compiler",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -87,24 +87,24 @@
|
|
|
87
87
|
},
|
|
88
88
|
"preferUnplugged": true,
|
|
89
89
|
"optionalDependencies": {
|
|
90
|
-
"@oxlint/binding-darwin-arm64": "1.
|
|
91
|
-
"@oxlint/binding-android-arm64": "1.
|
|
92
|
-
"@oxlint/binding-win32-arm64-msvc": "1.
|
|
93
|
-
"@oxlint/binding-linux-arm64-gnu": "1.
|
|
94
|
-
"@oxlint/binding-linux-arm64-musl": "1.
|
|
95
|
-
"@oxlint/binding-openharmony-arm64": "1.
|
|
96
|
-
"@oxlint/binding-android-arm-eabi": "1.
|
|
97
|
-
"@oxlint/binding-linux-arm-gnueabihf": "1.
|
|
98
|
-
"@oxlint/binding-linux-arm-musleabihf": "1.
|
|
99
|
-
"@oxlint/binding-win32-ia32-msvc": "1.
|
|
100
|
-
"@oxlint/binding-linux-ppc64-gnu": "1.
|
|
101
|
-
"@oxlint/binding-linux-riscv64-gnu": "1.
|
|
102
|
-
"@oxlint/binding-linux-riscv64-musl": "1.
|
|
103
|
-
"@oxlint/binding-linux-s390x-gnu": "1.
|
|
104
|
-
"@oxlint/binding-darwin-x64": "1.
|
|
105
|
-
"@oxlint/binding-win32-x64-msvc": "1.
|
|
106
|
-
"@oxlint/binding-freebsd-x64": "1.
|
|
107
|
-
"@oxlint/binding-linux-x64-gnu": "1.
|
|
108
|
-
"@oxlint/binding-linux-x64-musl": "1.
|
|
90
|
+
"@oxlint/binding-darwin-arm64": "1.89.0",
|
|
91
|
+
"@oxlint/binding-android-arm64": "1.89.0",
|
|
92
|
+
"@oxlint/binding-win32-arm64-msvc": "1.89.0",
|
|
93
|
+
"@oxlint/binding-linux-arm64-gnu": "1.89.0",
|
|
94
|
+
"@oxlint/binding-linux-arm64-musl": "1.89.0",
|
|
95
|
+
"@oxlint/binding-openharmony-arm64": "1.89.0",
|
|
96
|
+
"@oxlint/binding-android-arm-eabi": "1.89.0",
|
|
97
|
+
"@oxlint/binding-linux-arm-gnueabihf": "1.89.0",
|
|
98
|
+
"@oxlint/binding-linux-arm-musleabihf": "1.89.0",
|
|
99
|
+
"@oxlint/binding-win32-ia32-msvc": "1.89.0",
|
|
100
|
+
"@oxlint/binding-linux-ppc64-gnu": "1.89.0",
|
|
101
|
+
"@oxlint/binding-linux-riscv64-gnu": "1.89.0",
|
|
102
|
+
"@oxlint/binding-linux-riscv64-musl": "1.89.0",
|
|
103
|
+
"@oxlint/binding-linux-s390x-gnu": "1.89.0",
|
|
104
|
+
"@oxlint/binding-darwin-x64": "1.89.0",
|
|
105
|
+
"@oxlint/binding-win32-x64-msvc": "1.89.0",
|
|
106
|
+
"@oxlint/binding-freebsd-x64": "1.89.0",
|
|
107
|
+
"@oxlint/binding-linux-x64-gnu": "1.89.0",
|
|
108
|
+
"@oxlint/binding-linux-x64-musl": "1.89.0"
|
|
109
109
|
}
|
|
110
110
|
}
|