oxlint 1.62.0 → 1.63.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 +3 -3
- package/dist/bindings.js +26 -26
- package/dist/index.d.ts +2 -1
- package/dist/lint.js +70 -79
- package/dist/plugins-dev.d.ts +24 -6
- package/dist/plugins-dev.js +16 -11
- package/package.json +21 -21
|
@@ -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."
|
|
@@ -814,4 +814,4 @@
|
|
|
814
814
|
}
|
|
815
815
|
},
|
|
816
816
|
"markdownDescription": "Oxlint Configuration File\n\nThis configuration is aligned with ESLint v8's configuration schema (`eslintrc.json`).\n\nUsage: `oxlint -c oxlintrc.json`\n\nExample\n\n`.oxlintrc.json`\n\n```json\n{\n\"$schema\": \"./node_modules/oxlint/configuration_schema.json\",\n\"plugins\": [\"import\", \"typescript\", \"unicorn\"],\n\"env\": {\n\"browser\": true\n},\n\"globals\": {\n\"foo\": \"readonly\"\n},\n\"settings\": {\n\"react\": {\n\"version\": \"18.2.0\"\n},\n\"custom\": { \"option\": true }\n},\n\"rules\": {\n\"eqeqeq\": \"warn\",\n\"import/no-cycle\": \"error\",\n\"react/self-closing-comp\": [\"error\", { \"html\": false }]\n},\n\"overrides\": [\n{\n\"files\": [\"*.test.ts\", \"*.spec.ts\"],\n\"rules\": {\n\"@typescript-eslint/no-explicit-any\": \"off\"\n}\n}\n]\n}\n```\n\n`oxlint.config.ts`\n\n```ts\nimport { defineConfig } from \"oxlint\";\n\nexport default defineConfig({\nplugins: [\"import\", \"typescript\", \"unicorn\"],\nenv: {\n\"browser\": true\n},\nglobals: {\n\"foo\": \"readonly\"\n},\nsettings: {\nreact: {\nversion: \"18.2.0\"\n},\ncustom: { option: true }\n},\nrules: {\n\"eqeqeq\": \"warn\",\n\"import/no-cycle\": \"error\",\n\"react/self-closing-comp\": [\"error\", { \"html\": false }]\n},\noverrides: [\n{\nfiles: [\"*.test.ts\", \"*.spec.ts\"],\nrules: {\n\"@typescript-eslint/no-explicit-any\": \"off\"\n}\n}\n]\n});\n```"
|
|
817
|
-
}
|
|
817
|
+
}
|
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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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.63.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
|
@@ -531,7 +531,8 @@ interface JestPluginSettings {
|
|
|
531
531
|
* Jest version — accepts a number (`29`) or a semver string (`"29.1.0"` or `"v29.1.0"`),
|
|
532
532
|
* storing only the major version.
|
|
533
533
|
* ::: warning
|
|
534
|
-
* Using this config will override the `no-deprecated-functions`
|
|
534
|
+
* Using this config will override the `no-deprecated-functions` config set.
|
|
535
|
+
* :::
|
|
535
536
|
*/
|
|
536
537
|
version?: JestVersionSchema;
|
|
537
538
|
[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.63.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.2.1_jiti@2.6.1/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
|
*/
|
|
@@ -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 };
|
package/dist/plugins-dev.d.ts
CHANGED
|
@@ -1134,7 +1134,7 @@ interface CommentType extends Span {
|
|
|
1134
1134
|
//#region src-js/generated/types.d.ts
|
|
1135
1135
|
interface Program extends Span {
|
|
1136
1136
|
type: "Program";
|
|
1137
|
-
body: Array<Directive | Statement>;
|
|
1137
|
+
body: Array<Directive$1 | Statement>;
|
|
1138
1138
|
sourceType: ModuleKind;
|
|
1139
1139
|
comments: CommentType[];
|
|
1140
1140
|
tokens: TokenType[];
|
|
@@ -1413,7 +1413,7 @@ interface ParenthesizedExpression extends Span {
|
|
|
1413
1413
|
parent: Node$1;
|
|
1414
1414
|
}
|
|
1415
1415
|
type Statement = BlockStatement | BreakStatement | ContinueStatement | DebuggerStatement | DoWhileStatement | EmptyStatement | ExpressionStatement | ForInStatement | ForOfStatement | ForStatement | IfStatement | LabeledStatement | ReturnStatement | SwitchStatement | ThrowStatement | TryStatement | WhileStatement | WithStatement | Declaration | ModuleDeclaration;
|
|
1416
|
-
interface Directive extends Span {
|
|
1416
|
+
interface Directive$1 extends Span {
|
|
1417
1417
|
type: "ExpressionStatement";
|
|
1418
1418
|
expression: StringLiteral;
|
|
1419
1419
|
directive: string;
|
|
@@ -1645,7 +1645,7 @@ interface TSParameterProperty extends Span {
|
|
|
1645
1645
|
}
|
|
1646
1646
|
interface FunctionBody extends Span {
|
|
1647
1647
|
type: "BlockStatement";
|
|
1648
|
-
body: Array<Directive | Statement>;
|
|
1648
|
+
body: Array<Directive$1 | Statement>;
|
|
1649
1649
|
parent: Node$1;
|
|
1650
1650
|
}
|
|
1651
1651
|
interface ArrowFunctionExpression extends Span {
|
|
@@ -2275,7 +2275,7 @@ interface TSGlobalDeclaration extends Span {
|
|
|
2275
2275
|
}
|
|
2276
2276
|
interface TSModuleBlock extends Span {
|
|
2277
2277
|
type: "TSModuleBlock";
|
|
2278
|
-
body: Array<Directive | Statement>;
|
|
2278
|
+
body: Array<Directive$1 | Statement>;
|
|
2279
2279
|
parent: Node$1;
|
|
2280
2280
|
}
|
|
2281
2281
|
interface TSTypeLiteral extends Span {
|
|
@@ -2422,7 +2422,7 @@ type BinaryOperator = "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "+
|
|
|
2422
2422
|
type LogicalOperator = "||" | "&&" | "??";
|
|
2423
2423
|
type UnaryOperator = "+" | "-" | "!" | "~" | "typeof" | "void" | "delete";
|
|
2424
2424
|
type UpdateOperator = "++" | "--";
|
|
2425
|
-
type Node$1 = Program | IdentifierName | IdentifierReference | BindingIdentifier | LabelIdentifier | ThisExpression | ArrayExpression | ObjectExpression | ObjectProperty | TemplateLiteral | TaggedTemplateExpression | TemplateElement | ComputedMemberExpression | StaticMemberExpression | PrivateFieldExpression | CallExpression | NewExpression | MetaProperty | SpreadElement | UpdateExpression | UnaryExpression | BinaryExpression | PrivateInExpression | LogicalExpression | ConditionalExpression | AssignmentExpression | ArrayAssignmentTarget | ObjectAssignmentTarget | AssignmentTargetRest | AssignmentTargetWithDefault | AssignmentTargetPropertyIdentifier | AssignmentTargetPropertyProperty | SequenceExpression | Super | AwaitExpression | ChainExpression | ParenthesizedExpression | Directive | Hashbang | BlockStatement | VariableDeclaration | VariableDeclarator | EmptyStatement | ExpressionStatement | IfStatement | DoWhileStatement | WhileStatement | ForStatement | ForInStatement | ForOfStatement | ContinueStatement | BreakStatement | ReturnStatement | WithStatement | SwitchStatement | SwitchCase | LabeledStatement | ThrowStatement | TryStatement | CatchClause | DebuggerStatement | AssignmentPattern | ObjectPattern | BindingProperty | ArrayPattern | BindingRestElement | Function$1 | FunctionBody | ArrowFunctionExpression | YieldExpression | Class | ClassBody | MethodDefinition | PropertyDefinition | PrivateIdentifier | StaticBlock | AccessorProperty | ImportExpression | ImportDeclaration | ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportAttribute | ExportNamedDeclaration | ExportDefaultDeclaration | ExportAllDeclaration | ExportSpecifier | V8IntrinsicExpression | BooleanLiteral | NullLiteral | NumericLiteral | StringLiteral | BigIntLiteral | RegExpLiteral | JSXElement | JSXOpeningElement | JSXClosingElement | JSXFragment | JSXOpeningFragment | JSXClosingFragment | JSXNamespacedName | JSXMemberExpression | JSXExpressionContainer | JSXEmptyExpression | JSXAttribute | JSXSpreadAttribute | JSXIdentifier | JSXSpreadChild | JSXText | TSThisParameter | TSEnumDeclaration | TSEnumBody | TSEnumMember | TSTypeAnnotation | TSLiteralType | TSConditionalType | TSUnionType | TSIntersectionType | TSParenthesizedType | TSTypeOperator | TSArrayType | TSIndexedAccessType | TSTupleType | TSNamedTupleMember | TSOptionalType | TSRestType | TSAnyKeyword | TSStringKeyword | TSBooleanKeyword | TSNumberKeyword | TSNeverKeyword | TSIntrinsicKeyword | TSUnknownKeyword | TSNullKeyword | TSUndefinedKeyword | TSVoidKeyword | TSSymbolKeyword | TSThisType | TSObjectKeyword | TSBigIntKeyword | TSTypeReference | TSQualifiedName | TSTypeParameterInstantiation | TSTypeParameter | TSTypeParameterDeclaration | TSTypeAliasDeclaration | TSClassImplements | TSInterfaceDeclaration | TSInterfaceBody | TSPropertySignature | TSIndexSignature | TSCallSignatureDeclaration | TSMethodSignature | TSConstructSignatureDeclaration | TSIndexSignatureName | TSInterfaceHeritage | TSTypePredicate | TSModuleDeclaration | TSGlobalDeclaration | TSModuleBlock | TSTypeLiteral | TSInferType | TSTypeQuery | TSImportType | TSImportTypeQualifiedName | TSFunctionType | TSConstructorType | TSMappedType | TSTemplateLiteralType | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSImportEqualsDeclaration | TSExternalModuleReference | TSNonNullExpression | Decorator | TSExportAssignment | TSNamespaceExportDeclaration | TSInstantiationExpression | JSDocNullableType | JSDocNonNullableType | JSDocUnknownType | ParamPattern;
|
|
2425
|
+
type Node$1 = Program | IdentifierName | IdentifierReference | BindingIdentifier | LabelIdentifier | ThisExpression | ArrayExpression | ObjectExpression | ObjectProperty | TemplateLiteral | TaggedTemplateExpression | TemplateElement | ComputedMemberExpression | StaticMemberExpression | PrivateFieldExpression | CallExpression | NewExpression | MetaProperty | SpreadElement | UpdateExpression | UnaryExpression | BinaryExpression | PrivateInExpression | LogicalExpression | ConditionalExpression | AssignmentExpression | ArrayAssignmentTarget | ObjectAssignmentTarget | AssignmentTargetRest | AssignmentTargetWithDefault | AssignmentTargetPropertyIdentifier | AssignmentTargetPropertyProperty | SequenceExpression | Super | AwaitExpression | ChainExpression | ParenthesizedExpression | Directive$1 | Hashbang | BlockStatement | VariableDeclaration | VariableDeclarator | EmptyStatement | ExpressionStatement | IfStatement | DoWhileStatement | WhileStatement | ForStatement | ForInStatement | ForOfStatement | ContinueStatement | BreakStatement | ReturnStatement | WithStatement | SwitchStatement | SwitchCase | LabeledStatement | ThrowStatement | TryStatement | CatchClause | DebuggerStatement | AssignmentPattern | ObjectPattern | BindingProperty | ArrayPattern | BindingRestElement | Function$1 | FunctionBody | ArrowFunctionExpression | YieldExpression | Class | ClassBody | MethodDefinition | PropertyDefinition | PrivateIdentifier | StaticBlock | AccessorProperty | ImportExpression | ImportDeclaration | ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportAttribute | ExportNamedDeclaration | ExportDefaultDeclaration | ExportAllDeclaration | ExportSpecifier | V8IntrinsicExpression | BooleanLiteral | NullLiteral | NumericLiteral | StringLiteral | BigIntLiteral | RegExpLiteral | JSXElement | JSXOpeningElement | JSXClosingElement | JSXFragment | JSXOpeningFragment | JSXClosingFragment | JSXNamespacedName | JSXMemberExpression | JSXExpressionContainer | JSXEmptyExpression | JSXAttribute | JSXSpreadAttribute | JSXIdentifier | JSXSpreadChild | JSXText | TSThisParameter | TSEnumDeclaration | TSEnumBody | TSEnumMember | TSTypeAnnotation | TSLiteralType | TSConditionalType | TSUnionType | TSIntersectionType | TSParenthesizedType | TSTypeOperator | TSArrayType | TSIndexedAccessType | TSTupleType | TSNamedTupleMember | TSOptionalType | TSRestType | TSAnyKeyword | TSStringKeyword | TSBooleanKeyword | TSNumberKeyword | TSNeverKeyword | TSIntrinsicKeyword | TSUnknownKeyword | TSNullKeyword | TSUndefinedKeyword | TSVoidKeyword | TSSymbolKeyword | TSThisType | TSObjectKeyword | TSBigIntKeyword | TSTypeReference | TSQualifiedName | TSTypeParameterInstantiation | TSTypeParameter | TSTypeParameterDeclaration | TSTypeAliasDeclaration | TSClassImplements | TSInterfaceDeclaration | TSInterfaceBody | TSPropertySignature | TSIndexSignature | TSCallSignatureDeclaration | TSMethodSignature | TSConstructSignatureDeclaration | TSIndexSignatureName | TSInterfaceHeritage | TSTypePredicate | TSModuleDeclaration | TSGlobalDeclaration | TSModuleBlock | TSTypeLiteral | TSInferType | TSTypeQuery | TSImportType | TSImportTypeQualifiedName | TSFunctionType | TSConstructorType | TSMappedType | TSTemplateLiteralType | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSImportEqualsDeclaration | TSExternalModuleReference | TSNonNullExpression | Decorator | TSExportAssignment | TSNamespaceExportDeclaration | TSInstantiationExpression | JSDocNullableType | JSDocNonNullableType | JSDocUnknownType | ParamPattern;
|
|
2426
2426
|
//#endregion
|
|
2427
2427
|
//#region src-js/generated/visitor.d.ts
|
|
2428
2428
|
// To understand why we need the "Bivariance hack", see: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/20219
|
|
@@ -2986,6 +2986,24 @@ declare function commentsExistBetween(nodeOrToken1: NodeOrToken, nodeOrToken2: N
|
|
|
2986
2986
|
*/
|
|
2987
2987
|
declare function getJSDocComment(node: Node): CommentType | null;
|
|
2988
2988
|
//#endregion
|
|
2989
|
+
//#region src-js/plugins/directives.d.ts
|
|
2990
|
+
interface Problem {
|
|
2991
|
+
ruleId: string | null;
|
|
2992
|
+
message: string;
|
|
2993
|
+
loc: Location;
|
|
2994
|
+
}
|
|
2995
|
+
type DirectiveType = "disable" | "enable" | "disable-line" | "disable-next-line";
|
|
2996
|
+
interface Directive {
|
|
2997
|
+
type: DirectiveType;
|
|
2998
|
+
node: CommentType;
|
|
2999
|
+
value: string;
|
|
3000
|
+
justification?: string;
|
|
3001
|
+
}
|
|
3002
|
+
declare function getDisableDirectives(): {
|
|
3003
|
+
problems: Problem[];
|
|
3004
|
+
directives: Directive[];
|
|
3005
|
+
};
|
|
3006
|
+
//#endregion
|
|
2989
3007
|
//#region src-js/plugins/scope.d.ts
|
|
2990
3008
|
interface Scope {
|
|
2991
3009
|
type: ScopeType;
|
|
@@ -3448,6 +3466,7 @@ declare const SOURCE_CODE: Readonly<{
|
|
|
3448
3466
|
getTokenByRangeStart: typeof getTokenByRangeStart;
|
|
3449
3467
|
isSpaceBetween: typeof isSpaceBetween;
|
|
3450
3468
|
isSpaceBetweenTokens: typeof isSpaceBetweenTokens;
|
|
3469
|
+
getDisableDirectives: typeof getDisableDirectives;
|
|
3451
3470
|
}>;
|
|
3452
3471
|
type SourceCode = typeof SOURCE_CODE;
|
|
3453
3472
|
//#endregion
|
|
@@ -3987,7 +4006,6 @@ interface Config {
|
|
|
3987
4006
|
*
|
|
3988
4007
|
* If `true`:
|
|
3989
4008
|
* - Column offsets in diagnostics are incremented by 1.
|
|
3990
|
-
* - Fixes which are adjacent to each other are considered overlapping, and only the first fix is applied.
|
|
3991
4009
|
* - Defaults `sourceType` to "module" if not provided (otherwise default is "unambiguous").
|
|
3992
4010
|
* - Disallows `sourceType: "unambiguous"`.
|
|
3993
4011
|
* - Allows `null` as property value for `globals`.
|
package/dist/plugins-dev.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as BLOCK_SIZE, b as __commonJSMin, c as allOptions, d as diagnostics, f as replacePlaceholders, g as BLOCK_ALIGN, h as ACTIVE_SIZE, i as resetStateAfterError, l as setOptions, m as getNodeByRangeIndex, o as registerPlugin, p as getLineColumnFromOffset, r as lintFileImpl, s as registeredRules, t as buffers, u as PLACEHOLDER_REGEX, v as BUFFER_SIZE, x as __toESM } from "./lint.js";
|
|
2
2
|
import { _ as ObjectValues, a as JSONStringify, d as ObjectEntries, m as ObjectKeys, n as ArrayIsArray, p as ObjectHasOwn, t as ArrayFrom, u as ObjectDefineProperty } from "./globals.js";
|
|
3
3
|
import { a as rawTransferSupported$1, i as parseRawSync, n as getBufferOffset, t as applyFixes } from "./bindings.js";
|
|
4
4
|
import assert, { AssertionError } from "node:assert";
|
|
@@ -63,8 +63,8 @@ var import_json_stable_stringify_without_jsonify = /* @__PURE__ */ __toESM((/* @
|
|
|
63
63
|
return keys;
|
|
64
64
|
};
|
|
65
65
|
})))(), 1);
|
|
66
|
-
const ARRAY_BUFFER_SIZE =
|
|
67
|
-
let buffer = null, rawTransferIsSupported = null;
|
|
66
|
+
const ARRAY_BUFFER_SIZE = BLOCK_SIZE + BLOCK_ALIGN, textEncoder = new TextEncoder();
|
|
67
|
+
let buffer = null, blockBuffer = null, rawTransferIsSupported = null;
|
|
68
68
|
/**
|
|
69
69
|
* Parser source text into buffer.
|
|
70
70
|
* @param path - Path of file to parse
|
|
@@ -79,7 +79,7 @@ function parse(path, sourceText, options) {
|
|
|
79
79
|
if (maxSourceByteLen > 1073741824) throw Error("Source text is too long");
|
|
80
80
|
let sourceStartPos = ACTIVE_SIZE - maxSourceByteLen, sourceBuffer = new Uint8Array(buffer.buffer, buffer.byteOffset + sourceStartPos, maxSourceByteLen), { read, written: sourceByteLen } = textEncoder.encodeInto(sourceText, sourceBuffer);
|
|
81
81
|
if (read !== sourceText.length) throw Error("Failed to write source text into buffer");
|
|
82
|
-
if (parseRawSync(path,
|
|
82
|
+
if (parseRawSync(path, blockBuffer, sourceStartPos, sourceByteLen, options), buffer.int32[536870890] === 0) throw Error("Parsing failed");
|
|
83
83
|
}
|
|
84
84
|
/**
|
|
85
85
|
* Create a `Uint8Array` which is 2 GiB in size, with its start aligned on 4 GiB.
|
|
@@ -92,13 +92,19 @@ function parse(path, sourceText, options) {
|
|
|
92
92
|
* It's always possible to obtain a 2 GiB slice aligned on 4 GiB within a 6 GiB buffer,
|
|
93
93
|
* no matter how the 6 GiB buffer is aligned.
|
|
94
94
|
*
|
|
95
|
+
* `buffer` itself, and `int32` and `float64` views of `buffer`, are `BUFFER_SIZE` bytes,
|
|
96
|
+
* which excludes `FixedSizeAllocatorMetadata` and `ChunkFooter`.
|
|
97
|
+
* This ensures this critical data cannot be accidentally overwritten on JS side.
|
|
98
|
+
* `blockBuffer` is `BLOCK_SIZE` bytes, which includes `FixedSizeAllocatorMetadata` and `ChunkFooter`.
|
|
99
|
+
* `blockBuffer` is what we pass to Rust, which needs to write them.
|
|
100
|
+
*
|
|
95
101
|
* Note: On systems with virtual memory, this only consumes 6 GiB of *virtual* memory.
|
|
96
102
|
* It does not consume physical memory until data is actually written to the `Uint8Array`.
|
|
97
103
|
* Physical memory consumed corresponds to the quantity of data actually written.
|
|
98
104
|
*/
|
|
99
105
|
function initBuffer() {
|
|
100
106
|
let arrayBuffer = new ArrayBuffer(ARRAY_BUFFER_SIZE), offset = getBufferOffset(new Uint8Array(arrayBuffer));
|
|
101
|
-
buffer = new Uint8Array(arrayBuffer, offset, BUFFER_SIZE), buffer.int32 = new Int32Array(arrayBuffer, offset, BUFFER_SIZE / 4), buffer.float64 = new Float64Array(arrayBuffer, offset, BUFFER_SIZE / 8), buffers.push(buffer);
|
|
107
|
+
buffer = new Uint8Array(arrayBuffer, offset, BUFFER_SIZE), buffer.int32 = new Int32Array(arrayBuffer, offset, BUFFER_SIZE / 4), buffer.float64 = new Float64Array(arrayBuffer, offset, BUFFER_SIZE / 8), blockBuffer = new Uint8Array(arrayBuffer, offset, BLOCK_SIZE), buffers.push(buffer);
|
|
102
108
|
}
|
|
103
109
|
/**
|
|
104
110
|
* Returns `true` if raw transfer is supported.
|
|
@@ -353,14 +359,14 @@ function assertInvalidTestCasePasses(test, plugin, config) {
|
|
|
353
359
|
typeof error == "string" || error instanceof RegExp ? (assertMessageMatches(diagnostic.message, error), assert(diagnostic.suggestions === null, `Error at index ${errorIndex} has suggestions. Please convert the test error into an object and specify \`suggestions\` property on it to test suggestions`)) : (assertInvalidTestCaseMessageIsCorrect(diagnostic, error, messages), assertInvalidTestCaseLocationIsCorrect(diagnostic, error, test), ObjectHasOwn(error, "suggestions") && (error.suggestions == null ? assert(diagnostic.suggestions === null, "Rule produced suggestions") : assertSuggestionsAreCorrect(diagnostic, error, messages, test)));
|
|
354
360
|
}
|
|
355
361
|
}
|
|
356
|
-
let { code } = test,
|
|
362
|
+
let { code } = test, fixedCode = runFixes(diagnostics, code);
|
|
357
363
|
fixedCode === null && (fixedCode = code);
|
|
358
364
|
let { recursive } = test, extraPassCount = typeof recursive == "number" ? recursive : recursive === !0 ? 10 : 0;
|
|
359
365
|
if (extraPassCount > 0 && fixedCode !== code) for (let pass = 0; pass < extraPassCount; pass++) {
|
|
360
366
|
let newFixedCode = runFixes(lint({
|
|
361
367
|
...test,
|
|
362
368
|
code: fixedCode
|
|
363
|
-
}, plugin), fixedCode
|
|
369
|
+
}, plugin), fixedCode);
|
|
364
370
|
if (newFixedCode === null) break;
|
|
365
371
|
fixedCode = newFixedCode;
|
|
366
372
|
}
|
|
@@ -378,11 +384,11 @@ function assertInvalidTestCasePasses(test, plugin, config) {
|
|
|
378
384
|
* @returns Fixed code, or `null` if no fixes to apply
|
|
379
385
|
* @throws {Error} If error when applying fixes
|
|
380
386
|
*/
|
|
381
|
-
function runFixes(diagnostics, code
|
|
387
|
+
function runFixes(diagnostics, code) {
|
|
382
388
|
let fixGroups = [];
|
|
383
389
|
for (let diagnostic of diagnostics) diagnostic.fixes !== null && fixGroups.push(diagnostic.fixes);
|
|
384
390
|
if (fixGroups.length === 0) return null;
|
|
385
|
-
let fixedCode = applyFixes(code, JSONStringify(fixGroups)
|
|
391
|
+
let fixedCode = applyFixes(code, JSONStringify(fixGroups));
|
|
386
392
|
if (fixedCode === null) throw Error("Failed to apply fixes");
|
|
387
393
|
return fixedCode;
|
|
388
394
|
}
|
|
@@ -448,11 +454,10 @@ function assertInvalidTestCaseLocationIsCorrect(diagnostic, error, test) {
|
|
|
448
454
|
function assertSuggestionsAreCorrect(diagnostic, error, messages, test) {
|
|
449
455
|
let actualSuggestions = diagnostic.suggestions ?? [], expectedSuggestions = error.suggestions;
|
|
450
456
|
assert.strictEqual(actualSuggestions.length, expectedSuggestions.length, `Error should have ${expectedSuggestions.length} suggestion${expectedSuggestions.length > 1 ? "s" : ""}. Instead found ${actualSuggestions.length} suggestion${actualSuggestions.length > 1 ? "s" : ""}.`);
|
|
451
|
-
let eslintCompat = test.eslintCompat === !0;
|
|
452
457
|
for (let i = 0; i < expectedSuggestions.length; i++) {
|
|
453
458
|
let actual = actualSuggestions[i], expected = expectedSuggestions[i], prefix = `Suggestion at index ${i}`;
|
|
454
459
|
assertSuggestionMessageIsCorrect(actual, expected, messages, prefix), assert(ObjectHasOwn(expected, "output"), `${prefix}: \`output\` property is required`);
|
|
455
|
-
let suggestedCode = applyFixes(test.code, JSONStringify([actual.fixes])
|
|
460
|
+
let suggestedCode = applyFixes(test.code, JSONStringify([actual.fixes]));
|
|
456
461
|
assert(suggestedCode !== null, `${prefix}: Failed to apply suggestion fix`), assert.strictEqual(suggestedCode, expected.output, `${prefix}: Expected the applied suggestion fix to match the test suggestion output`), assert.notStrictEqual(expected.output, test.code, `${prefix}: The output of a suggestion should differ from the original source code`);
|
|
457
462
|
}
|
|
458
463
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oxlint",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.63.0",
|
|
4
4
|
"description": "Linter for the JavaScript Oxidation Compiler",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"./package.json": "./package.json"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"oxlint-tsgolint": ">=0.
|
|
49
|
+
"oxlint-tsgolint": ">=0.22.1"
|
|
50
50
|
},
|
|
51
51
|
"peerDependenciesMeta": {
|
|
52
52
|
"oxlint-tsgolint": {
|
|
@@ -83,24 +83,24 @@
|
|
|
83
83
|
},
|
|
84
84
|
"preferUnplugged": true,
|
|
85
85
|
"optionalDependencies": {
|
|
86
|
-
"@oxlint/binding-darwin-arm64": "1.
|
|
87
|
-
"@oxlint/binding-android-arm64": "1.
|
|
88
|
-
"@oxlint/binding-win32-arm64-msvc": "1.
|
|
89
|
-
"@oxlint/binding-linux-arm64-gnu": "1.
|
|
90
|
-
"@oxlint/binding-linux-arm64-musl": "1.
|
|
91
|
-
"@oxlint/binding-openharmony-arm64": "1.
|
|
92
|
-
"@oxlint/binding-android-arm-eabi": "1.
|
|
93
|
-
"@oxlint/binding-linux-arm-gnueabihf": "1.
|
|
94
|
-
"@oxlint/binding-linux-arm-musleabihf": "1.
|
|
95
|
-
"@oxlint/binding-win32-ia32-msvc": "1.
|
|
96
|
-
"@oxlint/binding-linux-ppc64-gnu": "1.
|
|
97
|
-
"@oxlint/binding-linux-riscv64-gnu": "1.
|
|
98
|
-
"@oxlint/binding-linux-riscv64-musl": "1.
|
|
99
|
-
"@oxlint/binding-linux-s390x-gnu": "1.
|
|
100
|
-
"@oxlint/binding-darwin-x64": "1.
|
|
101
|
-
"@oxlint/binding-win32-x64-msvc": "1.
|
|
102
|
-
"@oxlint/binding-freebsd-x64": "1.
|
|
103
|
-
"@oxlint/binding-linux-x64-gnu": "1.
|
|
104
|
-
"@oxlint/binding-linux-x64-musl": "1.
|
|
86
|
+
"@oxlint/binding-darwin-arm64": "1.63.0",
|
|
87
|
+
"@oxlint/binding-android-arm64": "1.63.0",
|
|
88
|
+
"@oxlint/binding-win32-arm64-msvc": "1.63.0",
|
|
89
|
+
"@oxlint/binding-linux-arm64-gnu": "1.63.0",
|
|
90
|
+
"@oxlint/binding-linux-arm64-musl": "1.63.0",
|
|
91
|
+
"@oxlint/binding-openharmony-arm64": "1.63.0",
|
|
92
|
+
"@oxlint/binding-android-arm-eabi": "1.63.0",
|
|
93
|
+
"@oxlint/binding-linux-arm-gnueabihf": "1.63.0",
|
|
94
|
+
"@oxlint/binding-linux-arm-musleabihf": "1.63.0",
|
|
95
|
+
"@oxlint/binding-win32-ia32-msvc": "1.63.0",
|
|
96
|
+
"@oxlint/binding-linux-ppc64-gnu": "1.63.0",
|
|
97
|
+
"@oxlint/binding-linux-riscv64-gnu": "1.63.0",
|
|
98
|
+
"@oxlint/binding-linux-riscv64-musl": "1.63.0",
|
|
99
|
+
"@oxlint/binding-linux-s390x-gnu": "1.63.0",
|
|
100
|
+
"@oxlint/binding-darwin-x64": "1.63.0",
|
|
101
|
+
"@oxlint/binding-win32-x64-msvc": "1.63.0",
|
|
102
|
+
"@oxlint/binding-freebsd-x64": "1.63.0",
|
|
103
|
+
"@oxlint/binding-linux-x64-gnu": "1.63.0",
|
|
104
|
+
"@oxlint/binding-linux-x64-musl": "1.63.0"
|
|
105
105
|
}
|
|
106
106
|
}
|