oxlint 1.91.0 → 1.92.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 +6 -0
- package/dist/bindings.js +27 -27
- package/dist/index.d.ts +5 -0
- package/dist/js_config.js +8 -4
- package/dist/lint.js +1 -1
- package/package.json +20 -20
|
@@ -15349,6 +15349,12 @@
|
|
|
15349
15349
|
"default": true,
|
|
15350
15350
|
"type": "boolean",
|
|
15351
15351
|
"markdownDescription": "When set `true`, it flags redeclaring built-in globals (e.g., `let Object = 1;`)."
|
|
15352
|
+
},
|
|
15353
|
+
"ignoreDeclarationMerge": {
|
|
15354
|
+
"description": "When `true`, automatically merged declarations like namespace, class, etc. will be\nignored when checking for redeclarations.",
|
|
15355
|
+
"default": true,
|
|
15356
|
+
"type": "boolean",
|
|
15357
|
+
"markdownDescription": "When `true`, automatically merged declarations like namespace, class, etc. will be\nignored when checking for redeclarations."
|
|
15352
15358
|
}
|
|
15353
15359
|
},
|
|
15354
15360
|
"additionalProperties": false
|
package/dist/bindings.js
CHANGED
|
@@ -37,7 +37,7 @@ function requireNative() {
|
|
|
37
37
|
}
|
|
38
38
|
try {
|
|
39
39
|
let binding = require("@oxlint/binding-android-arm64"), bindingPackageVersion = require("@oxlint/binding-android-arm64/package.json").version;
|
|
40
|
-
if (bindingPackageVersion !== "1.
|
|
40
|
+
if (bindingPackageVersion !== "1.92.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.92.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
41
41
|
return binding;
|
|
42
42
|
} catch (e) {
|
|
43
43
|
loadErrors.push(e);
|
|
@@ -50,7 +50,7 @@ function requireNative() {
|
|
|
50
50
|
}
|
|
51
51
|
try {
|
|
52
52
|
let binding = require("@oxlint/binding-android-arm-eabi"), bindingPackageVersion = require("@oxlint/binding-android-arm-eabi/package.json").version;
|
|
53
|
-
if (bindingPackageVersion !== "1.
|
|
53
|
+
if (bindingPackageVersion !== "1.92.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.92.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
54
54
|
return binding;
|
|
55
55
|
} catch (e) {
|
|
56
56
|
loadErrors.push(e);
|
|
@@ -66,7 +66,7 @@ function requireNative() {
|
|
|
66
66
|
}
|
|
67
67
|
try {
|
|
68
68
|
let binding = require("@oxlint/binding-win32-x64-gnu"), bindingPackageVersion = require("@oxlint/binding-win32-x64-gnu/package.json").version;
|
|
69
|
-
if (bindingPackageVersion !== "1.
|
|
69
|
+
if (bindingPackageVersion !== "1.92.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.92.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
70
70
|
return binding;
|
|
71
71
|
} catch (e) {
|
|
72
72
|
loadErrors.push(e);
|
|
@@ -79,7 +79,7 @@ function requireNative() {
|
|
|
79
79
|
}
|
|
80
80
|
try {
|
|
81
81
|
let binding = require("@oxlint/binding-win32-x64-msvc"), bindingPackageVersion = require("@oxlint/binding-win32-x64-msvc/package.json").version;
|
|
82
|
-
if (bindingPackageVersion !== "1.
|
|
82
|
+
if (bindingPackageVersion !== "1.92.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.92.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
83
83
|
return binding;
|
|
84
84
|
} catch (e) {
|
|
85
85
|
loadErrors.push(e);
|
|
@@ -93,7 +93,7 @@ function requireNative() {
|
|
|
93
93
|
}
|
|
94
94
|
try {
|
|
95
95
|
let binding = require("@oxlint/binding-win32-ia32-msvc"), bindingPackageVersion = require("@oxlint/binding-win32-ia32-msvc/package.json").version;
|
|
96
|
-
if (bindingPackageVersion !== "1.
|
|
96
|
+
if (bindingPackageVersion !== "1.92.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.92.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
97
97
|
return binding;
|
|
98
98
|
} catch (e) {
|
|
99
99
|
loadErrors.push(e);
|
|
@@ -106,7 +106,7 @@ function requireNative() {
|
|
|
106
106
|
}
|
|
107
107
|
try {
|
|
108
108
|
let binding = require("@oxlint/binding-win32-arm64-msvc"), bindingPackageVersion = require("@oxlint/binding-win32-arm64-msvc/package.json").version;
|
|
109
|
-
if (bindingPackageVersion !== "1.
|
|
109
|
+
if (bindingPackageVersion !== "1.92.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.92.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
110
110
|
return binding;
|
|
111
111
|
} catch (e) {
|
|
112
112
|
loadErrors.push(e);
|
|
@@ -120,7 +120,7 @@ function requireNative() {
|
|
|
120
120
|
}
|
|
121
121
|
try {
|
|
122
122
|
let binding = require("@oxlint/binding-darwin-universal"), bindingPackageVersion = require("@oxlint/binding-darwin-universal/package.json").version;
|
|
123
|
-
if (bindingPackageVersion !== "1.
|
|
123
|
+
if (bindingPackageVersion !== "1.92.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.92.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
124
124
|
return binding;
|
|
125
125
|
} catch (e) {
|
|
126
126
|
loadErrors.push(e);
|
|
@@ -133,7 +133,7 @@ function requireNative() {
|
|
|
133
133
|
}
|
|
134
134
|
try {
|
|
135
135
|
let binding = require("@oxlint/binding-darwin-x64"), bindingPackageVersion = require("@oxlint/binding-darwin-x64/package.json").version;
|
|
136
|
-
if (bindingPackageVersion !== "1.
|
|
136
|
+
if (bindingPackageVersion !== "1.92.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.92.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
137
137
|
return binding;
|
|
138
138
|
} catch (e) {
|
|
139
139
|
loadErrors.push(e);
|
|
@@ -146,7 +146,7 @@ function requireNative() {
|
|
|
146
146
|
}
|
|
147
147
|
try {
|
|
148
148
|
let binding = require("@oxlint/binding-darwin-arm64"), bindingPackageVersion = require("@oxlint/binding-darwin-arm64/package.json").version;
|
|
149
|
-
if (bindingPackageVersion !== "1.
|
|
149
|
+
if (bindingPackageVersion !== "1.92.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.92.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
150
150
|
return binding;
|
|
151
151
|
} catch (e) {
|
|
152
152
|
loadErrors.push(e);
|
|
@@ -161,7 +161,7 @@ function requireNative() {
|
|
|
161
161
|
}
|
|
162
162
|
try {
|
|
163
163
|
let binding = require("@oxlint/binding-freebsd-x64"), bindingPackageVersion = require("@oxlint/binding-freebsd-x64/package.json").version;
|
|
164
|
-
if (bindingPackageVersion !== "1.
|
|
164
|
+
if (bindingPackageVersion !== "1.92.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.92.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
165
165
|
return binding;
|
|
166
166
|
} catch (e) {
|
|
167
167
|
loadErrors.push(e);
|
|
@@ -174,7 +174,7 @@ function requireNative() {
|
|
|
174
174
|
}
|
|
175
175
|
try {
|
|
176
176
|
let binding = require("@oxlint/binding-freebsd-arm64"), bindingPackageVersion = require("@oxlint/binding-freebsd-arm64/package.json").version;
|
|
177
|
-
if (bindingPackageVersion !== "1.
|
|
177
|
+
if (bindingPackageVersion !== "1.92.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.92.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
178
178
|
return binding;
|
|
179
179
|
} catch (e) {
|
|
180
180
|
loadErrors.push(e);
|
|
@@ -190,7 +190,7 @@ function requireNative() {
|
|
|
190
190
|
}
|
|
191
191
|
try {
|
|
192
192
|
let binding = require("@oxlint/binding-linux-x64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-x64-musl/package.json").version;
|
|
193
|
-
if (bindingPackageVersion !== "1.
|
|
193
|
+
if (bindingPackageVersion !== "1.92.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.92.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
194
194
|
return binding;
|
|
195
195
|
} catch (e) {
|
|
196
196
|
loadErrors.push(e);
|
|
@@ -203,7 +203,7 @@ function requireNative() {
|
|
|
203
203
|
}
|
|
204
204
|
try {
|
|
205
205
|
let binding = require("@oxlint/binding-linux-x64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-x64-gnu/package.json").version;
|
|
206
|
-
if (bindingPackageVersion !== "1.
|
|
206
|
+
if (bindingPackageVersion !== "1.92.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.92.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
207
207
|
return binding;
|
|
208
208
|
} catch (e) {
|
|
209
209
|
loadErrors.push(e);
|
|
@@ -218,7 +218,7 @@ function requireNative() {
|
|
|
218
218
|
}
|
|
219
219
|
try {
|
|
220
220
|
let binding = require("@oxlint/binding-linux-arm64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-arm64-musl/package.json").version;
|
|
221
|
-
if (bindingPackageVersion !== "1.
|
|
221
|
+
if (bindingPackageVersion !== "1.92.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.92.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
222
222
|
return binding;
|
|
223
223
|
} catch (e) {
|
|
224
224
|
loadErrors.push(e);
|
|
@@ -231,7 +231,7 @@ function requireNative() {
|
|
|
231
231
|
}
|
|
232
232
|
try {
|
|
233
233
|
let binding = require("@oxlint/binding-linux-arm64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-arm64-gnu/package.json").version;
|
|
234
|
-
if (bindingPackageVersion !== "1.
|
|
234
|
+
if (bindingPackageVersion !== "1.92.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.92.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
235
235
|
return binding;
|
|
236
236
|
} catch (e) {
|
|
237
237
|
loadErrors.push(e);
|
|
@@ -246,7 +246,7 @@ function requireNative() {
|
|
|
246
246
|
}
|
|
247
247
|
try {
|
|
248
248
|
let binding = require("@oxlint/binding-linux-arm-musleabihf"), bindingPackageVersion = require("@oxlint/binding-linux-arm-musleabihf/package.json").version;
|
|
249
|
-
if (bindingPackageVersion !== "1.
|
|
249
|
+
if (bindingPackageVersion !== "1.92.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.92.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
250
250
|
return binding;
|
|
251
251
|
} catch (e) {
|
|
252
252
|
loadErrors.push(e);
|
|
@@ -259,7 +259,7 @@ function requireNative() {
|
|
|
259
259
|
}
|
|
260
260
|
try {
|
|
261
261
|
let binding = require("@oxlint/binding-linux-arm-gnueabihf"), bindingPackageVersion = require("@oxlint/binding-linux-arm-gnueabihf/package.json").version;
|
|
262
|
-
if (bindingPackageVersion !== "1.
|
|
262
|
+
if (bindingPackageVersion !== "1.92.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.92.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
263
263
|
return binding;
|
|
264
264
|
} catch (e) {
|
|
265
265
|
loadErrors.push(e);
|
|
@@ -274,7 +274,7 @@ function requireNative() {
|
|
|
274
274
|
}
|
|
275
275
|
try {
|
|
276
276
|
let binding = require("@oxlint/binding-linux-loong64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-loong64-musl/package.json").version;
|
|
277
|
-
if (bindingPackageVersion !== "1.
|
|
277
|
+
if (bindingPackageVersion !== "1.92.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.92.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
278
278
|
return binding;
|
|
279
279
|
} catch (e) {
|
|
280
280
|
loadErrors.push(e);
|
|
@@ -287,7 +287,7 @@ function requireNative() {
|
|
|
287
287
|
}
|
|
288
288
|
try {
|
|
289
289
|
let binding = require("@oxlint/binding-linux-loong64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-loong64-gnu/package.json").version;
|
|
290
|
-
if (bindingPackageVersion !== "1.
|
|
290
|
+
if (bindingPackageVersion !== "1.92.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.92.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
291
291
|
return binding;
|
|
292
292
|
} catch (e) {
|
|
293
293
|
loadErrors.push(e);
|
|
@@ -302,7 +302,7 @@ function requireNative() {
|
|
|
302
302
|
}
|
|
303
303
|
try {
|
|
304
304
|
let binding = require("@oxlint/binding-linux-riscv64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-riscv64-musl/package.json").version;
|
|
305
|
-
if (bindingPackageVersion !== "1.
|
|
305
|
+
if (bindingPackageVersion !== "1.92.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.92.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
306
306
|
return binding;
|
|
307
307
|
} catch (e) {
|
|
308
308
|
loadErrors.push(e);
|
|
@@ -315,7 +315,7 @@ function requireNative() {
|
|
|
315
315
|
}
|
|
316
316
|
try {
|
|
317
317
|
let binding = require("@oxlint/binding-linux-riscv64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-riscv64-gnu/package.json").version;
|
|
318
|
-
if (bindingPackageVersion !== "1.
|
|
318
|
+
if (bindingPackageVersion !== "1.92.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.92.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
319
319
|
return binding;
|
|
320
320
|
} catch (e) {
|
|
321
321
|
loadErrors.push(e);
|
|
@@ -329,7 +329,7 @@ function requireNative() {
|
|
|
329
329
|
}
|
|
330
330
|
try {
|
|
331
331
|
let binding = require("@oxlint/binding-linux-ppc64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-ppc64-gnu/package.json").version;
|
|
332
|
-
if (bindingPackageVersion !== "1.
|
|
332
|
+
if (bindingPackageVersion !== "1.92.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.92.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
333
333
|
return binding;
|
|
334
334
|
} catch (e) {
|
|
335
335
|
loadErrors.push(e);
|
|
@@ -342,7 +342,7 @@ function requireNative() {
|
|
|
342
342
|
}
|
|
343
343
|
try {
|
|
344
344
|
let binding = require("@oxlint/binding-linux-s390x-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-s390x-gnu/package.json").version;
|
|
345
|
-
if (bindingPackageVersion !== "1.
|
|
345
|
+
if (bindingPackageVersion !== "1.92.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.92.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
346
346
|
return binding;
|
|
347
347
|
} catch (e) {
|
|
348
348
|
loadErrors.push(e);
|
|
@@ -357,7 +357,7 @@ function requireNative() {
|
|
|
357
357
|
}
|
|
358
358
|
try {
|
|
359
359
|
let binding = require("@oxlint/binding-openharmony-arm64"), bindingPackageVersion = require("@oxlint/binding-openharmony-arm64/package.json").version;
|
|
360
|
-
if (bindingPackageVersion !== "1.
|
|
360
|
+
if (bindingPackageVersion !== "1.92.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.92.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
361
361
|
return binding;
|
|
362
362
|
} catch (e) {
|
|
363
363
|
loadErrors.push(e);
|
|
@@ -370,7 +370,7 @@ function requireNative() {
|
|
|
370
370
|
}
|
|
371
371
|
try {
|
|
372
372
|
let binding = require("@oxlint/binding-openharmony-x64"), bindingPackageVersion = require("@oxlint/binding-openharmony-x64/package.json").version;
|
|
373
|
-
if (bindingPackageVersion !== "1.
|
|
373
|
+
if (bindingPackageVersion !== "1.92.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.92.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
374
374
|
return binding;
|
|
375
375
|
} catch (e) {
|
|
376
376
|
loadErrors.push(e);
|
|
@@ -383,7 +383,7 @@ function requireNative() {
|
|
|
383
383
|
}
|
|
384
384
|
try {
|
|
385
385
|
let binding = require("@oxlint/binding-openharmony-arm"), bindingPackageVersion = require("@oxlint/binding-openharmony-arm/package.json").version;
|
|
386
|
-
if (bindingPackageVersion !== "1.
|
|
386
|
+
if (bindingPackageVersion !== "1.92.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.92.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
387
387
|
return binding;
|
|
388
388
|
} catch (e) {
|
|
389
389
|
loadErrors.push(e);
|
|
@@ -450,7 +450,7 @@ if (forceWasi || (nativeBinding = requireNative()), !nativeBinding || forceWasi)
|
|
|
450
450
|
if (candidateError = __napiWasiResolveCandidate("@oxlint/binding-wasm32-wasi", !0, void 0), candidateFailed = candidateError !== null, !candidateFailed) {
|
|
451
451
|
if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
452
452
|
let bindingPackageVersion = require("@oxlint/binding-wasm32-wasi/package.json").version;
|
|
453
|
-
if (bindingPackageVersion !== "1.
|
|
453
|
+
if (bindingPackageVersion !== "1.92.0") throw Error(`WASI binding package version mismatch, expected 1.92.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
454
454
|
}
|
|
455
455
|
wasiBinding = require("@oxlint/binding-wasm32-wasi"), nativeBinding = wasiBinding, wasiBindingLoaded = !0;
|
|
456
456
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -3430,6 +3430,11 @@ interface NoRedeclare {
|
|
|
3430
3430
|
* When set `true`, it flags redeclaring built-in globals (e.g., `let Object = 1;`).
|
|
3431
3431
|
*/
|
|
3432
3432
|
builtinGlobals?: boolean;
|
|
3433
|
+
/**
|
|
3434
|
+
* When `true`, automatically merged declarations like namespace, class, etc. will be
|
|
3435
|
+
* ignored when checking for redeclarations.
|
|
3436
|
+
*/
|
|
3437
|
+
ignoreDeclarationMerge?: boolean;
|
|
3433
3438
|
}
|
|
3434
3439
|
interface NoRestrictedExportsConfig {
|
|
3435
3440
|
/**
|
package/dist/js_config.js
CHANGED
|
@@ -68,11 +68,15 @@ async function importJsConfig(path, cacheKey) {
|
|
|
68
68
|
//#region ../shared/src-js/vite_plus_config.ts
|
|
69
69
|
let vitePlusCache = null;
|
|
70
70
|
/**
|
|
71
|
-
* Resolve a Vite+ config via `vite-plus`
|
|
71
|
+
* Resolve a Vite+ config via `vite-plus` and extract the given field.
|
|
72
72
|
*
|
|
73
73
|
* `vite-plus` is loaded lazily and memoized for the process.
|
|
74
|
-
* Consumers declare it as an optional peer dependency;
|
|
75
|
-
* so the user-installed copy is used at runtime.
|
|
74
|
+
* Consumers declare it as an optional peer dependency;
|
|
75
|
+
* tsdown leaves the specifier external, so the user-installed copy is used at runtime.
|
|
76
|
+
*
|
|
77
|
+
* `resolveConfigFromFile` resolves an unset or relative `root` from the config file's directory,
|
|
78
|
+
* so plugins see the same `root` regardless of `process.cwd()`.
|
|
79
|
+
* (e.g. The LSP's cwd can be another folder of a multi-root workspace.)
|
|
76
80
|
*
|
|
77
81
|
* @param path - Absolute path to the Vite config file
|
|
78
82
|
* @param fieldName - Field name to extract from the resolved config (e.g. `"fmt"`, `"lint"`)
|
|
@@ -81,7 +85,7 @@ let vitePlusCache = null;
|
|
|
81
85
|
*/
|
|
82
86
|
async function loadViteConfigField(path, fieldName) {
|
|
83
87
|
vitePlusCache ??= import("vite-plus");
|
|
84
|
-
let {
|
|
88
|
+
let { resolveConfigFromFile } = await vitePlusCache, config = await resolveConfigFromFile(path);
|
|
85
89
|
if (!(fieldName in config)) return null;
|
|
86
90
|
let fieldValue = config[fieldName];
|
|
87
91
|
if (!isObject$1(fieldValue)) throw Error(`The \`${fieldName}\` field in the default export must be an object.`);
|
package/dist/lint.js
CHANGED
|
@@ -12297,7 +12297,7 @@ function resetSettings() {
|
|
|
12297
12297
|
}
|
|
12298
12298
|
//#endregion
|
|
12299
12299
|
//#region package.json
|
|
12300
|
-
var version = "1.
|
|
12300
|
+
var version = "1.92.0";
|
|
12301
12301
|
//#endregion
|
|
12302
12302
|
//#region src-js/plugins/context.ts
|
|
12303
12303
|
const ObjectFreeze$1 = Object.freeze, ObjectCreate = Object.create, ObjectAssign = Object.assign, ObjectPreventExtensions = Object.preventExtensions;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oxlint",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.92.0",
|
|
4
4
|
"description": "Linter for the JavaScript Oxidation Compiler",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -87,24 +87,24 @@
|
|
|
87
87
|
},
|
|
88
88
|
"preferUnplugged": true,
|
|
89
89
|
"optionalDependencies": {
|
|
90
|
-
"@oxlint/binding-darwin-arm64": "1.
|
|
91
|
-
"@oxlint/binding-android-arm64": "1.
|
|
92
|
-
"@oxlint/binding-win32-arm64-msvc": "1.
|
|
93
|
-
"@oxlint/binding-linux-arm64-gnu": "1.
|
|
94
|
-
"@oxlint/binding-linux-arm64-musl": "1.
|
|
95
|
-
"@oxlint/binding-openharmony-arm64": "1.
|
|
96
|
-
"@oxlint/binding-android-arm-eabi": "1.
|
|
97
|
-
"@oxlint/binding-linux-arm-gnueabihf": "1.
|
|
98
|
-
"@oxlint/binding-linux-arm-musleabihf": "1.
|
|
99
|
-
"@oxlint/binding-win32-ia32-msvc": "1.
|
|
100
|
-
"@oxlint/binding-linux-ppc64-gnu": "1.
|
|
101
|
-
"@oxlint/binding-linux-riscv64-gnu": "1.
|
|
102
|
-
"@oxlint/binding-linux-riscv64-musl": "1.
|
|
103
|
-
"@oxlint/binding-linux-s390x-gnu": "1.
|
|
104
|
-
"@oxlint/binding-darwin-x64": "1.
|
|
105
|
-
"@oxlint/binding-win32-x64-msvc": "1.
|
|
106
|
-
"@oxlint/binding-freebsd-x64": "1.
|
|
107
|
-
"@oxlint/binding-linux-x64-gnu": "1.
|
|
108
|
-
"@oxlint/binding-linux-x64-musl": "1.
|
|
90
|
+
"@oxlint/binding-darwin-arm64": "1.92.0",
|
|
91
|
+
"@oxlint/binding-android-arm64": "1.92.0",
|
|
92
|
+
"@oxlint/binding-win32-arm64-msvc": "1.92.0",
|
|
93
|
+
"@oxlint/binding-linux-arm64-gnu": "1.92.0",
|
|
94
|
+
"@oxlint/binding-linux-arm64-musl": "1.92.0",
|
|
95
|
+
"@oxlint/binding-openharmony-arm64": "1.92.0",
|
|
96
|
+
"@oxlint/binding-android-arm-eabi": "1.92.0",
|
|
97
|
+
"@oxlint/binding-linux-arm-gnueabihf": "1.92.0",
|
|
98
|
+
"@oxlint/binding-linux-arm-musleabihf": "1.92.0",
|
|
99
|
+
"@oxlint/binding-win32-ia32-msvc": "1.92.0",
|
|
100
|
+
"@oxlint/binding-linux-ppc64-gnu": "1.92.0",
|
|
101
|
+
"@oxlint/binding-linux-riscv64-gnu": "1.92.0",
|
|
102
|
+
"@oxlint/binding-linux-riscv64-musl": "1.92.0",
|
|
103
|
+
"@oxlint/binding-linux-s390x-gnu": "1.92.0",
|
|
104
|
+
"@oxlint/binding-darwin-x64": "1.92.0",
|
|
105
|
+
"@oxlint/binding-win32-x64-msvc": "1.92.0",
|
|
106
|
+
"@oxlint/binding-freebsd-x64": "1.92.0",
|
|
107
|
+
"@oxlint/binding-linux-x64-gnu": "1.92.0",
|
|
108
|
+
"@oxlint/binding-linux-x64-musl": "1.92.0"
|
|
109
109
|
}
|
|
110
110
|
}
|