oxlint 1.62.0 → 1.64.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 +4 -4
- package/dist/bindings.js +26 -26
- package/dist/index.d.ts +3 -1
- package/dist/lint.js +76 -85
- package/dist/plugins-dev.d.ts +2234 -2190
- package/dist/plugins-dev.js +16 -11
- package/package.json +21 -21
|
@@ -277,12 +277,12 @@
|
|
|
277
277
|
]
|
|
278
278
|
},
|
|
279
279
|
"GlobSet": {
|
|
280
|
-
"description": "A set of glob patterns.",
|
|
280
|
+
"description": "A set of glob patterns.\nPatterns are matched against paths relative to the configuration file's directory.",
|
|
281
281
|
"type": "array",
|
|
282
282
|
"items": {
|
|
283
283
|
"type": "string"
|
|
284
284
|
},
|
|
285
|
-
"markdownDescription": "A set of glob patterns."
|
|
285
|
+
"markdownDescription": "A set of glob patterns.\nPatterns are matched against paths relative to the configuration file's directory."
|
|
286
286
|
},
|
|
287
287
|
"GlobalValue": {
|
|
288
288
|
"type": "string",
|
|
@@ -384,14 +384,14 @@
|
|
|
384
384
|
"type": "object",
|
|
385
385
|
"properties": {
|
|
386
386
|
"version": {
|
|
387
|
-
"description": "Jest version — accepts a number (`29`) or a semver string (`\"29.1.0\"` or `\"v29.1.0\"`),\nstoring only the major version.\n::: warning\nUsing this config will override the `no-deprecated-functions`
|
|
387
|
+
"description": "Jest version — accepts a number (`29`) or a semver string (`\"29.1.0\"` or `\"v29.1.0\"`),\nstoring only the major version.\n::: warning\nUsing this config will override the `no-deprecated-functions` config set.\n:::",
|
|
388
388
|
"default": null,
|
|
389
389
|
"allOf": [
|
|
390
390
|
{
|
|
391
391
|
"$ref": "#/definitions/JestVersionSchema"
|
|
392
392
|
}
|
|
393
393
|
],
|
|
394
|
-
"markdownDescription": "Jest version — accepts a number (`29`) or a semver string (`\"29.1.0\"` or `\"v29.1.0\"`),\nstoring only the major version.\n::: warning\nUsing this config will override the `no-deprecated-functions`
|
|
394
|
+
"markdownDescription": "Jest version — accepts a number (`29`) or a semver string (`\"29.1.0\"` or `\"v29.1.0\"`),\nstoring only the major version.\n::: warning\nUsing this config will override the `no-deprecated-functions` config set.\n:::"
|
|
395
395
|
}
|
|
396
396
|
},
|
|
397
397
|
"markdownDescription": "Configure Jest plugin rules.\n\nSee [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest)'s\nconfiguration for a full reference."
|
package/dist/bindings.js
CHANGED
|
@@ -38,7 +38,7 @@ function requireNative() {
|
|
|
38
38
|
}
|
|
39
39
|
try {
|
|
40
40
|
let binding = require("@oxlint/binding-android-arm64"), bindingPackageVersion = require("@oxlint/binding-android-arm64/package.json").version;
|
|
41
|
-
if (bindingPackageVersion !== "1.
|
|
41
|
+
if (bindingPackageVersion !== "1.64.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.64.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
42
42
|
return binding;
|
|
43
43
|
} catch (e) {
|
|
44
44
|
loadErrors.push(e);
|
|
@@ -51,7 +51,7 @@ function requireNative() {
|
|
|
51
51
|
}
|
|
52
52
|
try {
|
|
53
53
|
let binding = require("@oxlint/binding-android-arm-eabi"), bindingPackageVersion = require("@oxlint/binding-android-arm-eabi/package.json").version;
|
|
54
|
-
if (bindingPackageVersion !== "1.
|
|
54
|
+
if (bindingPackageVersion !== "1.64.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.64.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
55
55
|
return binding;
|
|
56
56
|
} catch (e) {
|
|
57
57
|
loadErrors.push(e);
|
|
@@ -65,7 +65,7 @@ function requireNative() {
|
|
|
65
65
|
}
|
|
66
66
|
try {
|
|
67
67
|
let binding = require("@oxlint/binding-win32-x64-gnu"), bindingPackageVersion = require("@oxlint/binding-win32-x64-gnu/package.json").version;
|
|
68
|
-
if (bindingPackageVersion !== "1.
|
|
68
|
+
if (bindingPackageVersion !== "1.64.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.64.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
69
69
|
return binding;
|
|
70
70
|
} catch (e) {
|
|
71
71
|
loadErrors.push(e);
|
|
@@ -78,7 +78,7 @@ function requireNative() {
|
|
|
78
78
|
}
|
|
79
79
|
try {
|
|
80
80
|
let binding = require("@oxlint/binding-win32-x64-msvc"), bindingPackageVersion = require("@oxlint/binding-win32-x64-msvc/package.json").version;
|
|
81
|
-
if (bindingPackageVersion !== "1.
|
|
81
|
+
if (bindingPackageVersion !== "1.64.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.64.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
82
82
|
return binding;
|
|
83
83
|
} catch (e) {
|
|
84
84
|
loadErrors.push(e);
|
|
@@ -92,7 +92,7 @@ function requireNative() {
|
|
|
92
92
|
}
|
|
93
93
|
try {
|
|
94
94
|
let binding = require("@oxlint/binding-win32-ia32-msvc"), bindingPackageVersion = require("@oxlint/binding-win32-ia32-msvc/package.json").version;
|
|
95
|
-
if (bindingPackageVersion !== "1.
|
|
95
|
+
if (bindingPackageVersion !== "1.64.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.64.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
96
96
|
return binding;
|
|
97
97
|
} catch (e) {
|
|
98
98
|
loadErrors.push(e);
|
|
@@ -105,7 +105,7 @@ function requireNative() {
|
|
|
105
105
|
}
|
|
106
106
|
try {
|
|
107
107
|
let binding = require("@oxlint/binding-win32-arm64-msvc"), bindingPackageVersion = require("@oxlint/binding-win32-arm64-msvc/package.json").version;
|
|
108
|
-
if (bindingPackageVersion !== "1.
|
|
108
|
+
if (bindingPackageVersion !== "1.64.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.64.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
109
109
|
return binding;
|
|
110
110
|
} catch (e) {
|
|
111
111
|
loadErrors.push(e);
|
|
@@ -119,7 +119,7 @@ function requireNative() {
|
|
|
119
119
|
}
|
|
120
120
|
try {
|
|
121
121
|
let binding = require("@oxlint/binding-darwin-universal"), bindingPackageVersion = require("@oxlint/binding-darwin-universal/package.json").version;
|
|
122
|
-
if (bindingPackageVersion !== "1.
|
|
122
|
+
if (bindingPackageVersion !== "1.64.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.64.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
123
123
|
return binding;
|
|
124
124
|
} catch (e) {
|
|
125
125
|
loadErrors.push(e);
|
|
@@ -132,7 +132,7 @@ function requireNative() {
|
|
|
132
132
|
}
|
|
133
133
|
try {
|
|
134
134
|
let binding = require("@oxlint/binding-darwin-x64"), bindingPackageVersion = require("@oxlint/binding-darwin-x64/package.json").version;
|
|
135
|
-
if (bindingPackageVersion !== "1.
|
|
135
|
+
if (bindingPackageVersion !== "1.64.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.64.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
136
136
|
return binding;
|
|
137
137
|
} catch (e) {
|
|
138
138
|
loadErrors.push(e);
|
|
@@ -145,7 +145,7 @@ function requireNative() {
|
|
|
145
145
|
}
|
|
146
146
|
try {
|
|
147
147
|
let binding = require("@oxlint/binding-darwin-arm64"), bindingPackageVersion = require("@oxlint/binding-darwin-arm64/package.json").version;
|
|
148
|
-
if (bindingPackageVersion !== "1.
|
|
148
|
+
if (bindingPackageVersion !== "1.64.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.64.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
149
149
|
return binding;
|
|
150
150
|
} catch (e) {
|
|
151
151
|
loadErrors.push(e);
|
|
@@ -159,7 +159,7 @@ function requireNative() {
|
|
|
159
159
|
}
|
|
160
160
|
try {
|
|
161
161
|
let binding = require("@oxlint/binding-freebsd-x64"), bindingPackageVersion = require("@oxlint/binding-freebsd-x64/package.json").version;
|
|
162
|
-
if (bindingPackageVersion !== "1.
|
|
162
|
+
if (bindingPackageVersion !== "1.64.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.64.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
163
163
|
return binding;
|
|
164
164
|
} catch (e) {
|
|
165
165
|
loadErrors.push(e);
|
|
@@ -172,7 +172,7 @@ function requireNative() {
|
|
|
172
172
|
}
|
|
173
173
|
try {
|
|
174
174
|
let binding = require("@oxlint/binding-freebsd-arm64"), bindingPackageVersion = require("@oxlint/binding-freebsd-arm64/package.json").version;
|
|
175
|
-
if (bindingPackageVersion !== "1.
|
|
175
|
+
if (bindingPackageVersion !== "1.64.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.64.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
176
176
|
return binding;
|
|
177
177
|
} catch (e) {
|
|
178
178
|
loadErrors.push(e);
|
|
@@ -186,7 +186,7 @@ function requireNative() {
|
|
|
186
186
|
}
|
|
187
187
|
try {
|
|
188
188
|
let binding = require("@oxlint/binding-linux-x64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-x64-musl/package.json").version;
|
|
189
|
-
if (bindingPackageVersion !== "1.
|
|
189
|
+
if (bindingPackageVersion !== "1.64.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.64.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
190
190
|
return binding;
|
|
191
191
|
} catch (e) {
|
|
192
192
|
loadErrors.push(e);
|
|
@@ -199,7 +199,7 @@ function requireNative() {
|
|
|
199
199
|
}
|
|
200
200
|
try {
|
|
201
201
|
let binding = require("@oxlint/binding-linux-x64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-x64-gnu/package.json").version;
|
|
202
|
-
if (bindingPackageVersion !== "1.
|
|
202
|
+
if (bindingPackageVersion !== "1.64.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.64.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
203
203
|
return binding;
|
|
204
204
|
} catch (e) {
|
|
205
205
|
loadErrors.push(e);
|
|
@@ -213,7 +213,7 @@ function requireNative() {
|
|
|
213
213
|
}
|
|
214
214
|
try {
|
|
215
215
|
let binding = require("@oxlint/binding-linux-arm64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-arm64-musl/package.json").version;
|
|
216
|
-
if (bindingPackageVersion !== "1.
|
|
216
|
+
if (bindingPackageVersion !== "1.64.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.64.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
217
217
|
return binding;
|
|
218
218
|
} catch (e) {
|
|
219
219
|
loadErrors.push(e);
|
|
@@ -226,7 +226,7 @@ function requireNative() {
|
|
|
226
226
|
}
|
|
227
227
|
try {
|
|
228
228
|
let binding = require("@oxlint/binding-linux-arm64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-arm64-gnu/package.json").version;
|
|
229
|
-
if (bindingPackageVersion !== "1.
|
|
229
|
+
if (bindingPackageVersion !== "1.64.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.64.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
230
230
|
return binding;
|
|
231
231
|
} catch (e) {
|
|
232
232
|
loadErrors.push(e);
|
|
@@ -240,7 +240,7 @@ function requireNative() {
|
|
|
240
240
|
}
|
|
241
241
|
try {
|
|
242
242
|
let binding = require("@oxlint/binding-linux-arm-musleabihf"), bindingPackageVersion = require("@oxlint/binding-linux-arm-musleabihf/package.json").version;
|
|
243
|
-
if (bindingPackageVersion !== "1.
|
|
243
|
+
if (bindingPackageVersion !== "1.64.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.64.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
244
244
|
return binding;
|
|
245
245
|
} catch (e) {
|
|
246
246
|
loadErrors.push(e);
|
|
@@ -253,7 +253,7 @@ function requireNative() {
|
|
|
253
253
|
}
|
|
254
254
|
try {
|
|
255
255
|
let binding = require("@oxlint/binding-linux-arm-gnueabihf"), bindingPackageVersion = require("@oxlint/binding-linux-arm-gnueabihf/package.json").version;
|
|
256
|
-
if (bindingPackageVersion !== "1.
|
|
256
|
+
if (bindingPackageVersion !== "1.64.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.64.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
257
257
|
return binding;
|
|
258
258
|
} catch (e) {
|
|
259
259
|
loadErrors.push(e);
|
|
@@ -267,7 +267,7 @@ function requireNative() {
|
|
|
267
267
|
}
|
|
268
268
|
try {
|
|
269
269
|
let binding = require("@oxlint/binding-linux-loong64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-loong64-musl/package.json").version;
|
|
270
|
-
if (bindingPackageVersion !== "1.
|
|
270
|
+
if (bindingPackageVersion !== "1.64.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.64.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
271
271
|
return binding;
|
|
272
272
|
} catch (e) {
|
|
273
273
|
loadErrors.push(e);
|
|
@@ -280,7 +280,7 @@ function requireNative() {
|
|
|
280
280
|
}
|
|
281
281
|
try {
|
|
282
282
|
let binding = require("@oxlint/binding-linux-loong64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-loong64-gnu/package.json").version;
|
|
283
|
-
if (bindingPackageVersion !== "1.
|
|
283
|
+
if (bindingPackageVersion !== "1.64.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.64.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
284
284
|
return binding;
|
|
285
285
|
} catch (e) {
|
|
286
286
|
loadErrors.push(e);
|
|
@@ -294,7 +294,7 @@ function requireNative() {
|
|
|
294
294
|
}
|
|
295
295
|
try {
|
|
296
296
|
let binding = require("@oxlint/binding-linux-riscv64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-riscv64-musl/package.json").version;
|
|
297
|
-
if (bindingPackageVersion !== "1.
|
|
297
|
+
if (bindingPackageVersion !== "1.64.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.64.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
298
298
|
return binding;
|
|
299
299
|
} catch (e) {
|
|
300
300
|
loadErrors.push(e);
|
|
@@ -307,7 +307,7 @@ function requireNative() {
|
|
|
307
307
|
}
|
|
308
308
|
try {
|
|
309
309
|
let binding = require("@oxlint/binding-linux-riscv64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-riscv64-gnu/package.json").version;
|
|
310
|
-
if (bindingPackageVersion !== "1.
|
|
310
|
+
if (bindingPackageVersion !== "1.64.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.64.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
311
311
|
return binding;
|
|
312
312
|
} catch (e) {
|
|
313
313
|
loadErrors.push(e);
|
|
@@ -321,7 +321,7 @@ function requireNative() {
|
|
|
321
321
|
}
|
|
322
322
|
try {
|
|
323
323
|
let binding = require("@oxlint/binding-linux-ppc64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-ppc64-gnu/package.json").version;
|
|
324
|
-
if (bindingPackageVersion !== "1.
|
|
324
|
+
if (bindingPackageVersion !== "1.64.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.64.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
325
325
|
return binding;
|
|
326
326
|
} catch (e) {
|
|
327
327
|
loadErrors.push(e);
|
|
@@ -334,7 +334,7 @@ function requireNative() {
|
|
|
334
334
|
}
|
|
335
335
|
try {
|
|
336
336
|
let binding = require("@oxlint/binding-linux-s390x-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-s390x-gnu/package.json").version;
|
|
337
|
-
if (bindingPackageVersion !== "1.
|
|
337
|
+
if (bindingPackageVersion !== "1.64.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.64.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
338
338
|
return binding;
|
|
339
339
|
} catch (e) {
|
|
340
340
|
loadErrors.push(e);
|
|
@@ -348,7 +348,7 @@ function requireNative() {
|
|
|
348
348
|
}
|
|
349
349
|
try {
|
|
350
350
|
let binding = require("@oxlint/binding-openharmony-arm64"), bindingPackageVersion = require("@oxlint/binding-openharmony-arm64/package.json").version;
|
|
351
|
-
if (bindingPackageVersion !== "1.
|
|
351
|
+
if (bindingPackageVersion !== "1.64.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.64.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
352
352
|
return binding;
|
|
353
353
|
} catch (e) {
|
|
354
354
|
loadErrors.push(e);
|
|
@@ -361,7 +361,7 @@ function requireNative() {
|
|
|
361
361
|
}
|
|
362
362
|
try {
|
|
363
363
|
let binding = require("@oxlint/binding-openharmony-x64"), bindingPackageVersion = require("@oxlint/binding-openharmony-x64/package.json").version;
|
|
364
|
-
if (bindingPackageVersion !== "1.
|
|
364
|
+
if (bindingPackageVersion !== "1.64.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.64.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
365
365
|
return binding;
|
|
366
366
|
} catch (e) {
|
|
367
367
|
loadErrors.push(e);
|
|
@@ -374,7 +374,7 @@ function requireNative() {
|
|
|
374
374
|
}
|
|
375
375
|
try {
|
|
376
376
|
let binding = require("@oxlint/binding-openharmony-arm"), bindingPackageVersion = require("@oxlint/binding-openharmony-arm/package.json").version;
|
|
377
|
-
if (bindingPackageVersion !== "1.
|
|
377
|
+
if (bindingPackageVersion !== "1.64.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.64.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
378
378
|
return binding;
|
|
379
379
|
} catch (e) {
|
|
380
380
|
loadErrors.push(e);
|
package/dist/index.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ type ExternalPluginEntry = string | {
|
|
|
32
32
|
};
|
|
33
33
|
/**
|
|
34
34
|
* A set of glob patterns.
|
|
35
|
+
* Patterns are matched against paths relative to the configuration file's directory.
|
|
35
36
|
*/
|
|
36
37
|
type GlobSet = string[];
|
|
37
38
|
type LintPluginOptionsSchema = "eslint" | "react" | "unicorn" | "typescript" | "oxc" | "import" | "jsdoc" | "jest" | "vitest" | "jsx-a11y" | "nextjs" | "react-perf" | "promise" | "node" | "vue";
|
|
@@ -531,7 +532,8 @@ interface JestPluginSettings {
|
|
|
531
532
|
* Jest version — accepts a number (`29`) or a semver string (`"29.1.0"` or `"v29.1.0"`),
|
|
532
533
|
* storing only the major version.
|
|
533
534
|
* ::: warning
|
|
534
|
-
* Using this config will override the `no-deprecated-functions`
|
|
535
|
+
* Using this config will override the `no-deprecated-functions` config set.
|
|
536
|
+
* :::
|
|
535
537
|
*/
|
|
536
538
|
version?: JestVersionSchema;
|
|
537
539
|
[k: string]: unknown;
|
package/dist/lint.js
CHANGED
|
@@ -17,9 +17,9 @@ var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDes
|
|
|
17
17
|
//#endregion
|
|
18
18
|
//#region src-js/generated/constants.ts
|
|
19
19
|
/**
|
|
20
|
-
* Total size of the
|
|
20
|
+
* Total size of the allocator block (including metadata and allocator `ChunkFooter`).
|
|
21
21
|
*/
|
|
22
|
-
const
|
|
22
|
+
const BLOCK_SIZE = 2147483632, BLOCK_ALIGN = 4294967296, BUFFER_SIZE = 2147483576, ACTIVE_SIZE = 2147483560, DATA_POINTER_POS_32 = 536870890, { freeze } = Object, $EMPTY = freeze([]), DECORATORS__KEY__TYPE_ANNOTATION__VALUE = freeze([
|
|
23
23
|
"decorators",
|
|
24
24
|
"key",
|
|
25
25
|
"typeAnnotation",
|
|
@@ -583,8 +583,8 @@ function deserializeTokens() {
|
|
|
583
583
|
*/
|
|
584
584
|
function initTokensBuffer() {
|
|
585
585
|
sourceText === null && initSourceText();
|
|
586
|
-
let { int32 } = buffer, tokensPos = int32[
|
|
587
|
-
tokensLen = int32[
|
|
586
|
+
let { int32 } = buffer, tokensPos = int32[536870891];
|
|
587
|
+
tokensLen = int32[536870892];
|
|
588
588
|
let arrayBuffer = buffer.buffer, absolutePos = buffer.byteOffset + tokensPos;
|
|
589
589
|
if (tokensUint8 = new Uint8Array(arrayBuffer, absolutePos, tokensLen << 4), tokensInt32 = new Int32Array(arrayBuffer, absolutePos, tokensLen << 2), cachedTokens.length < tokensLen) {
|
|
590
590
|
do
|
|
@@ -831,7 +831,7 @@ function deserializeWith(buffer, sourceTextInput, sourceByteLen, deserialize) {
|
|
|
831
831
|
for (; i < sourceEndPos && uint8[i] < 128; i++);
|
|
832
832
|
firstNonAsciiPos = i, sourceTextLatin = latin1Slice.call(uint8, sourceStartPos$1, sourceEndPos);
|
|
833
833
|
}
|
|
834
|
-
let data = deserialize(int32[
|
|
834
|
+
let data = deserialize(int32[536870890]);
|
|
835
835
|
return resetBuffer(), data;
|
|
836
836
|
}
|
|
837
837
|
function resetBuffer() {
|
|
@@ -5616,6 +5616,38 @@ function getJSDocComment(node) {
|
|
|
5616
5616
|
throw Error("`sourceCode.getJSDocComment` is not supported at present (and deprecated)");
|
|
5617
5617
|
}
|
|
5618
5618
|
//#endregion
|
|
5619
|
+
//#region src-js/plugins/directives.ts
|
|
5620
|
+
const LABEL_PATTERN = /^\s*(?<label>(?:eslint|oxlint)-(?:disable(?:(?:-next)?-line)?|enable))(?:\s|$)/u, LINE_DIRECTIVE_PATTERN = /^(?:eslint|oxlint)-disable-(?:-next)?-line$/u, JUSTIFICATION_SEP_PATTERN = /\s-{2,}\s/u;
|
|
5621
|
+
function getDisableDirectives() {
|
|
5622
|
+
let problems = [], directives = [];
|
|
5623
|
+
return getAllComments().forEach((comment) => {
|
|
5624
|
+
if (comment.type === "Shebang") return;
|
|
5625
|
+
let match = LABEL_PATTERN.exec(comment.value);
|
|
5626
|
+
if (!match?.groups?.label || comment.type === "Line" && LINE_DIRECTIVE_PATTERN.test(match.groups.label)) return;
|
|
5627
|
+
let { label } = match.groups;
|
|
5628
|
+
if ((label === "eslint-disable-line" || label === "oxlint-disable-line") && comment.loc.start.line !== comment.loc.end.line) {
|
|
5629
|
+
problems.push({
|
|
5630
|
+
ruleId: null,
|
|
5631
|
+
message: `${label} comment should not span multiple lines.`,
|
|
5632
|
+
loc: comment.loc
|
|
5633
|
+
});
|
|
5634
|
+
return;
|
|
5635
|
+
}
|
|
5636
|
+
let rest = comment.value.slice(match[0].length).trim();
|
|
5637
|
+
match = JUSTIFICATION_SEP_PATTERN.exec(rest);
|
|
5638
|
+
let [value, justification] = match ? [rest.slice(0, match.index).trim(), rest.slice(match.index + match[0].length).trim()] : [rest, ""];
|
|
5639
|
+
directives.push({
|
|
5640
|
+
type: label.slice(7),
|
|
5641
|
+
node: comment,
|
|
5642
|
+
value,
|
|
5643
|
+
justification
|
|
5644
|
+
});
|
|
5645
|
+
}), {
|
|
5646
|
+
problems,
|
|
5647
|
+
directives
|
|
5648
|
+
};
|
|
5649
|
+
}
|
|
5650
|
+
//#endregion
|
|
5619
5651
|
//#region ../../node_modules/.pnpm/eslint-visitor-keys@5.0.1/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs
|
|
5620
5652
|
var require_eslint_visitor_keys = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5621
5653
|
/**
|
|
@@ -13535,7 +13567,7 @@ function resetSourceAndAst() {
|
|
|
13535
13567
|
* @returns `true` if file is JSX, `false` if not
|
|
13536
13568
|
*/
|
|
13537
13569
|
function fileIsJsx() {
|
|
13538
|
-
return buffer[
|
|
13570
|
+
return buffer[2147483573] === 1;
|
|
13539
13571
|
}
|
|
13540
13572
|
const SOURCE_CODE = ObjectFreeze({
|
|
13541
13573
|
/**
|
|
@@ -13659,7 +13691,8 @@ const SOURCE_CODE = ObjectFreeze({
|
|
|
13659
13691
|
getLastTokensBetween,
|
|
13660
13692
|
getTokenByRangeStart,
|
|
13661
13693
|
isSpaceBetween,
|
|
13662
|
-
isSpaceBetweenTokens
|
|
13694
|
+
isSpaceBetweenTokens,
|
|
13695
|
+
getDisableDirectives
|
|
13663
13696
|
}), FIXER = ObjectFreeze({
|
|
13664
13697
|
insertTextBefore(nodeOrToken, text) {
|
|
13665
13698
|
let start = nodeOrToken.range[0];
|
|
@@ -14066,7 +14099,7 @@ function resetSettings() {
|
|
|
14066
14099
|
}
|
|
14067
14100
|
//#endregion
|
|
14068
14101
|
//#region package.json
|
|
14069
|
-
var version = "1.
|
|
14102
|
+
var version = "1.64.0";
|
|
14070
14103
|
//#endregion
|
|
14071
14104
|
//#region src-js/plugins/context.ts
|
|
14072
14105
|
let filePath = null, cwd = null;
|
|
@@ -17673,7 +17706,7 @@ function conformHookFn(hookFn, hookName) {
|
|
|
17673
17706
|
return hookFn;
|
|
17674
17707
|
}
|
|
17675
17708
|
//#endregion
|
|
17676
|
-
//#region ../../node_modules/.pnpm/eslint@
|
|
17709
|
+
//#region ../../node_modules/.pnpm/eslint@10.3.0/node_modules/eslint/lib/shared/assert.js
|
|
17677
17710
|
/**
|
|
17678
17711
|
* @fileoverview Assertion utilities equivalent to the Node.js node:asserts module.
|
|
17679
17712
|
* @author Josh Goldberg
|
|
@@ -18040,60 +18073,6 @@ var require_assert = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
18040
18073
|
return "[UnexpectedJSONParseError]: " + error.message;
|
|
18041
18074
|
}
|
|
18042
18075
|
};
|
|
18043
|
-
})), require_has_flag = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
18044
|
-
module.exports = (flag, argv = process.argv) => {
|
|
18045
|
-
let prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--", position = argv.indexOf(prefix + flag), terminatorPosition = argv.indexOf("--");
|
|
18046
|
-
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
18047
|
-
};
|
|
18048
|
-
})), require_supports_color = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
18049
|
-
let os = __require("os"), tty$1 = __require("tty"), hasFlag = require_has_flag(), { env } = process, forceColor;
|
|
18050
|
-
hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never") ? forceColor = 0 : (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) && (forceColor = 1), "FORCE_COLOR" in env && (forceColor = env.FORCE_COLOR === "true" ? 1 : env.FORCE_COLOR === "false" ? 0 : env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3));
|
|
18051
|
-
function translateLevel(level) {
|
|
18052
|
-
return level === 0 ? !1 : {
|
|
18053
|
-
level,
|
|
18054
|
-
hasBasic: !0,
|
|
18055
|
-
has256: level >= 2,
|
|
18056
|
-
has16m: level >= 3
|
|
18057
|
-
};
|
|
18058
|
-
}
|
|
18059
|
-
function supportsColor(haveStream, streamIsTTY) {
|
|
18060
|
-
if (forceColor === 0) return 0;
|
|
18061
|
-
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) return 3;
|
|
18062
|
-
if (hasFlag("color=256")) return 2;
|
|
18063
|
-
if (haveStream && !streamIsTTY && forceColor === void 0) return 0;
|
|
18064
|
-
let min = forceColor || 0;
|
|
18065
|
-
if (env.TERM === "dumb") return min;
|
|
18066
|
-
if (process.platform === "win32") {
|
|
18067
|
-
let osRelease = os.release().split(".");
|
|
18068
|
-
return Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586 ? Number(osRelease[2]) >= 14931 ? 3 : 2 : 1;
|
|
18069
|
-
}
|
|
18070
|
-
if ("CI" in env) return [
|
|
18071
|
-
"TRAVIS",
|
|
18072
|
-
"CIRCLECI",
|
|
18073
|
-
"APPVEYOR",
|
|
18074
|
-
"GITLAB_CI",
|
|
18075
|
-
"GITHUB_ACTIONS",
|
|
18076
|
-
"BUILDKITE"
|
|
18077
|
-
].some((sign) => sign in env) || env.CI_NAME === "codeship" ? 1 : min;
|
|
18078
|
-
if ("TEAMCITY_VERSION" in env) return +!!/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION);
|
|
18079
|
-
if (env.COLORTERM === "truecolor") return 3;
|
|
18080
|
-
if ("TERM_PROGRAM" in env) {
|
|
18081
|
-
let version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
18082
|
-
switch (env.TERM_PROGRAM) {
|
|
18083
|
-
case "iTerm.app": return version >= 3 ? 3 : 2;
|
|
18084
|
-
case "Apple_Terminal": return 2;
|
|
18085
|
-
}
|
|
18086
|
-
}
|
|
18087
|
-
return /-256(color)?$/i.test(env.TERM) ? 2 : /^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM) || "COLORTERM" in env ? 1 : min;
|
|
18088
|
-
}
|
|
18089
|
-
function getSupportLevel(stream) {
|
|
18090
|
-
return translateLevel(supportsColor(stream, stream && stream.isTTY));
|
|
18091
|
-
}
|
|
18092
|
-
module.exports = {
|
|
18093
|
-
supportsColor: getSupportLevel,
|
|
18094
|
-
stdout: translateLevel(supportsColor(!0, tty$1.isatty(1))),
|
|
18095
|
-
stderr: translateLevel(supportsColor(!0, tty$1.isatty(2)))
|
|
18096
|
-
};
|
|
18097
18076
|
})), require_node = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
18098
18077
|
/**
|
|
18099
18078
|
* Module dependencies.
|
|
@@ -18111,7 +18090,7 @@ var require_assert = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
18111
18090
|
1
|
|
18112
18091
|
];
|
|
18113
18092
|
try {
|
|
18114
|
-
let supportsColor =
|
|
18093
|
+
let supportsColor = __require("supports-color");
|
|
18115
18094
|
supportsColor && (supportsColor.stderr || supportsColor).level >= 2 && (exports.colors = [
|
|
18116
18095
|
20,
|
|
18117
18096
|
21,
|
|
@@ -19344,6 +19323,15 @@ var require_assert = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
19344
19323
|
this.pushForkContext(!0), this.forkContext.add(segments);
|
|
19345
19324
|
}
|
|
19346
19325
|
/**
|
|
19326
|
+
* Records abrupt resumption paths from a suspended `yield` expression,
|
|
19327
|
+
* then splits normal post-`yield` continuation into a fresh segment.
|
|
19328
|
+
* @returns {void}
|
|
19329
|
+
*/
|
|
19330
|
+
makeYield() {
|
|
19331
|
+
let forkContext = this.forkContext, leavingSegments = forkContext.head;
|
|
19332
|
+
forkContext.reachable && (getReturnContext(this).returnedForkContext.add(leavingSegments), getThrowContext(this).thrownForkContext.add(leavingSegments), forkContext.replaceHead(forkContext.makeNext(-1, -1)));
|
|
19333
|
+
}
|
|
19334
|
+
/**
|
|
19347
19335
|
* Makes a code path segment from the first throwable node to the `catch`
|
|
19348
19336
|
* block or the `finally` block.
|
|
19349
19337
|
* @returns {void}
|
|
@@ -19669,9 +19657,10 @@ var require_assert = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
19669
19657
|
* Final code path segments that represent normal completion of the code path.
|
|
19670
19658
|
* For functions, this means both explicit `return` statements and implicit returns,
|
|
19671
19659
|
* such as the last reachable segment in a function that does not have an
|
|
19672
|
-
* explicit `return` as this implicitly returns `undefined
|
|
19673
|
-
*
|
|
19674
|
-
*
|
|
19660
|
+
* explicit `return` as this implicitly returns `undefined`, as well as
|
|
19661
|
+
* return-like exits from suspended `yield` expressions. For scripts, modules,
|
|
19662
|
+
* class field initializers, and class static blocks, this means all lines of
|
|
19663
|
+
* code have been executed.
|
|
19675
19664
|
* These segments are also present in `finalSegments`.
|
|
19676
19665
|
* This is a passthrough to the underlying `CodePathState`.
|
|
19677
19666
|
* @type {CodePathSegment[]}
|
|
@@ -19680,7 +19669,8 @@ var require_assert = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
19680
19669
|
return this.internal.returnedForkContext;
|
|
19681
19670
|
}
|
|
19682
19671
|
/**
|
|
19683
|
-
* Final code path segments that represent `throw` statements
|
|
19672
|
+
* Final code path segments that represent `throw` statements and throw-like
|
|
19673
|
+
* exits from suspended `yield` expressions.
|
|
19684
19674
|
* This is a passthrough to the underlying `CodePathState`.
|
|
19685
19675
|
* These segments are also present in `finalSegments`.
|
|
19686
19676
|
* @type {CodePathSegment[]}
|
|
@@ -19776,7 +19766,7 @@ var require_assert = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
19776
19766
|
}
|
|
19777
19767
|
/**
|
|
19778
19768
|
* Checks if a given node appears as the value of a PropertyDefinition node.
|
|
19779
|
-
* @param {ASTNode} node
|
|
19769
|
+
* @param {ASTNode} node The node to check.
|
|
19780
19770
|
* @returns {boolean} `true` if the node is a PropertyDefinition value,
|
|
19781
19771
|
* false if not.
|
|
19782
19772
|
*/
|
|
@@ -19812,8 +19802,8 @@ var require_assert = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
19812
19802
|
return node.parent.type === "LabeledStatement" ? node.parent.label.name : null;
|
|
19813
19803
|
}
|
|
19814
19804
|
/**
|
|
19815
|
-
* Checks whether
|
|
19816
|
-
*
|
|
19805
|
+
* Checks whether a given logical expression node takes different paths for the
|
|
19806
|
+
* `true` and `false` cases.
|
|
19817
19807
|
* @param {ASTNode} node A node to check.
|
|
19818
19808
|
* @returns {boolean} `true` if the node is a test of a choice statement.
|
|
19819
19809
|
*/
|
|
@@ -19833,8 +19823,8 @@ var require_assert = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
19833
19823
|
/**
|
|
19834
19824
|
* Gets the boolean value of a given literal node.
|
|
19835
19825
|
*
|
|
19836
|
-
* This is used to detect
|
|
19837
|
-
* Statements preceded by an
|
|
19826
|
+
* This is used to detect infinite loops (e.g. `while (true) {}`).
|
|
19827
|
+
* Statements preceded by an infinite loop are unreachable if the loop didn't
|
|
19838
19828
|
* have any `break` statement.
|
|
19839
19829
|
* @param {ASTNode} node A node to get.
|
|
19840
19830
|
* @returns {boolean|undefined} a boolean value if the node is a Literal node,
|
|
@@ -19899,8 +19889,8 @@ var require_assert = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
19899
19889
|
}
|
|
19900
19890
|
}
|
|
19901
19891
|
/**
|
|
19902
|
-
* Updates the current segment with empty.
|
|
19903
|
-
* This is called
|
|
19892
|
+
* Updates the current segment with an empty array.
|
|
19893
|
+
* This is called when a code path ends.
|
|
19904
19894
|
* @param {CodePathAnalyzer} analyzer The instance.
|
|
19905
19895
|
* @param {ASTNode} node The current AST node.
|
|
19906
19896
|
* @returns {void}
|
|
@@ -20093,9 +20083,11 @@ var require_assert = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
20093
20083
|
case "ImportExpression":
|
|
20094
20084
|
case "MemberExpression":
|
|
20095
20085
|
case "NewExpression":
|
|
20096
|
-
case "YieldExpression":
|
|
20097
20086
|
state.makeFirstThrowablePathInTryBlock();
|
|
20098
20087
|
break;
|
|
20088
|
+
case "YieldExpression":
|
|
20089
|
+
state.makeYield();
|
|
20090
|
+
break;
|
|
20099
20091
|
case "WhileStatement":
|
|
20100
20092
|
case "DoWhileStatement":
|
|
20101
20093
|
case "ForStatement":
|
|
@@ -21707,9 +21699,10 @@ function walkProgramWithCfg(ast, visitors) {
|
|
|
21707
21699
|
for (let i = 0; i < stepsLen; i++) {
|
|
21708
21700
|
let typeId = stepTypeIds[i];
|
|
21709
21701
|
if (typeId < 165) {
|
|
21710
|
-
let
|
|
21711
|
-
if (typeId < 27) visit !== null && visit(
|
|
21702
|
+
let visit = visitors[typeId];
|
|
21703
|
+
if (typeId < 27) visit !== null && visit(stepData[i]);
|
|
21712
21704
|
else {
|
|
21705
|
+
let node = stepData[i];
|
|
21713
21706
|
if (visit !== null) {
|
|
21714
21707
|
let { enter } = visit;
|
|
21715
21708
|
enter !== null && enter(node);
|
|
@@ -21717,13 +21710,11 @@ function walkProgramWithCfg(ast, visitors) {
|
|
|
21717
21710
|
ancestors.unshift(node);
|
|
21718
21711
|
}
|
|
21719
21712
|
} else if (typeId >= 256) {
|
|
21720
|
-
typeId -= 256;
|
|
21721
|
-
let node = stepData[i];
|
|
21722
|
-
ancestors.shift();
|
|
21713
|
+
typeId -= 256, ancestors.shift();
|
|
21723
21714
|
let enterExit = visitors[typeId];
|
|
21724
21715
|
if (enterExit !== null) {
|
|
21725
21716
|
let { exit } = enterExit;
|
|
21726
|
-
exit !== null && exit(
|
|
21717
|
+
exit !== null && exit(stepData[i]);
|
|
21727
21718
|
}
|
|
21728
21719
|
} else {
|
|
21729
21720
|
let visit = visitors[typeId];
|
|
@@ -21744,7 +21735,7 @@ function prepareSteps(ast) {
|
|
|
21744
21735
|
},
|
|
21745
21736
|
leaveNode(node) {
|
|
21746
21737
|
let typeId = NODE_TYPE_IDS_MAP.get(node.type);
|
|
21747
|
-
typeId >= 27 && (stepTypeIds.push(typeId
|
|
21738
|
+
typeId >= 27 && (stepTypeIds.push(typeId | 256), stepData.push(node));
|
|
21748
21739
|
},
|
|
21749
21740
|
emit(eventName, args) {
|
|
21750
21741
|
let typeId = NODE_TYPE_IDS_MAP.get(eventName);
|
|
@@ -23616,7 +23607,7 @@ function lintFileImpl(filePath, bufferId, buffer, ruleIds, optionsIds, settingsJ
|
|
|
23616
23607
|
buffers[bufferId] = buffer;
|
|
23617
23608
|
}
|
|
23618
23609
|
workspaceUri !== null && switchWorkspace(workspaceUri), setupFileContext(filePath);
|
|
23619
|
-
let hasBOM = buffer[
|
|
23610
|
+
let hasBOM = buffer[2147483574] === 1;
|
|
23620
23611
|
setupSourceForFile(buffer, hasBOM), setSettingsForFile(settingsJSON), setGlobalsForFile(globalsJSON);
|
|
23621
23612
|
for (let i = 0, len = ruleIds.length; i < len; i++) {
|
|
23622
23613
|
let ruleDetails = registeredRules[ruleIds[i]];
|
|
@@ -23677,4 +23668,4 @@ function resetStateAfterError() {
|
|
|
23677
23668
|
runAfterHooks(!1), finalizeCompiledVisitor(), resetCompiledVisitor(), diagnostics.length = 0, ancestors.length = 0, resetFile(), resetCfgWalk();
|
|
23678
23669
|
}
|
|
23679
23670
|
//#endregion
|
|
23680
|
-
export {
|
|
23671
|
+
export { BLOCK_SIZE as _, loadPlugin as a, __commonJSMin as b, allOptions as c, diagnostics as d, replacePlaceholders as f, BLOCK_ALIGN as g, ACTIVE_SIZE as h, resetStateAfterError as i, setOptions as l, getNodeByRangeIndex as m, lintFile as n, registerPlugin as o, getLineColumnFromOffset as p, lintFileImpl as r, registeredRules as s, buffers as t, PLACEHOLDER_REGEX as u, BUFFER_SIZE as v, __toESM as x, DATA_POINTER_POS_32 as y };
|