oxlint 1.68.0 → 1.69.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/configuration_schema.json +12280 -2014
- package/dist/bindings.js +27 -28
- package/dist/index.d.ts +4306 -730
- package/dist/js_config.js +2 -3
- package/dist/lint.js +143 -135
- package/dist/plugins-dev.d.ts +45 -16
- package/dist/plugins-dev.js +1 -1
- package/package.json +20 -20
- package/dist/globals.js +0 -13
package/dist/bindings.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { n as ArrayIsArray } from "./globals.js";
|
|
2
1
|
import { createRequire } from "node:module";
|
|
3
2
|
//#region src-js/bindings.js
|
|
4
|
-
const require = createRequire(import.meta.url);
|
|
3
|
+
const ArrayIsArray = Array.isArray, require = createRequire(import.meta.url);
|
|
5
4
|
new URL(".", import.meta.url).pathname;
|
|
6
5
|
const { readFileSync } = require("node:fs");
|
|
7
6
|
let nativeBinding = null;
|
|
@@ -38,7 +37,7 @@ function requireNative() {
|
|
|
38
37
|
}
|
|
39
38
|
try {
|
|
40
39
|
let binding = require("@oxlint/binding-android-arm64"), bindingPackageVersion = require("@oxlint/binding-android-arm64/package.json").version;
|
|
41
|
-
if (bindingPackageVersion !== "1.
|
|
40
|
+
if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
42
41
|
return binding;
|
|
43
42
|
} catch (e) {
|
|
44
43
|
loadErrors.push(e);
|
|
@@ -51,7 +50,7 @@ function requireNative() {
|
|
|
51
50
|
}
|
|
52
51
|
try {
|
|
53
52
|
let binding = require("@oxlint/binding-android-arm-eabi"), bindingPackageVersion = require("@oxlint/binding-android-arm-eabi/package.json").version;
|
|
54
|
-
if (bindingPackageVersion !== "1.
|
|
53
|
+
if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
55
54
|
return binding;
|
|
56
55
|
} catch (e) {
|
|
57
56
|
loadErrors.push(e);
|
|
@@ -65,7 +64,7 @@ function requireNative() {
|
|
|
65
64
|
}
|
|
66
65
|
try {
|
|
67
66
|
let binding = require("@oxlint/binding-win32-x64-gnu"), bindingPackageVersion = require("@oxlint/binding-win32-x64-gnu/package.json").version;
|
|
68
|
-
if (bindingPackageVersion !== "1.
|
|
67
|
+
if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
69
68
|
return binding;
|
|
70
69
|
} catch (e) {
|
|
71
70
|
loadErrors.push(e);
|
|
@@ -78,7 +77,7 @@ function requireNative() {
|
|
|
78
77
|
}
|
|
79
78
|
try {
|
|
80
79
|
let binding = require("@oxlint/binding-win32-x64-msvc"), bindingPackageVersion = require("@oxlint/binding-win32-x64-msvc/package.json").version;
|
|
81
|
-
if (bindingPackageVersion !== "1.
|
|
80
|
+
if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
82
81
|
return binding;
|
|
83
82
|
} catch (e) {
|
|
84
83
|
loadErrors.push(e);
|
|
@@ -92,7 +91,7 @@ function requireNative() {
|
|
|
92
91
|
}
|
|
93
92
|
try {
|
|
94
93
|
let binding = require("@oxlint/binding-win32-ia32-msvc"), bindingPackageVersion = require("@oxlint/binding-win32-ia32-msvc/package.json").version;
|
|
95
|
-
if (bindingPackageVersion !== "1.
|
|
94
|
+
if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
96
95
|
return binding;
|
|
97
96
|
} catch (e) {
|
|
98
97
|
loadErrors.push(e);
|
|
@@ -105,7 +104,7 @@ function requireNative() {
|
|
|
105
104
|
}
|
|
106
105
|
try {
|
|
107
106
|
let binding = require("@oxlint/binding-win32-arm64-msvc"), bindingPackageVersion = require("@oxlint/binding-win32-arm64-msvc/package.json").version;
|
|
108
|
-
if (bindingPackageVersion !== "1.
|
|
107
|
+
if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
109
108
|
return binding;
|
|
110
109
|
} catch (e) {
|
|
111
110
|
loadErrors.push(e);
|
|
@@ -119,7 +118,7 @@ function requireNative() {
|
|
|
119
118
|
}
|
|
120
119
|
try {
|
|
121
120
|
let binding = require("@oxlint/binding-darwin-universal"), bindingPackageVersion = require("@oxlint/binding-darwin-universal/package.json").version;
|
|
122
|
-
if (bindingPackageVersion !== "1.
|
|
121
|
+
if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
123
122
|
return binding;
|
|
124
123
|
} catch (e) {
|
|
125
124
|
loadErrors.push(e);
|
|
@@ -132,7 +131,7 @@ function requireNative() {
|
|
|
132
131
|
}
|
|
133
132
|
try {
|
|
134
133
|
let binding = require("@oxlint/binding-darwin-x64"), bindingPackageVersion = require("@oxlint/binding-darwin-x64/package.json").version;
|
|
135
|
-
if (bindingPackageVersion !== "1.
|
|
134
|
+
if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
136
135
|
return binding;
|
|
137
136
|
} catch (e) {
|
|
138
137
|
loadErrors.push(e);
|
|
@@ -145,7 +144,7 @@ function requireNative() {
|
|
|
145
144
|
}
|
|
146
145
|
try {
|
|
147
146
|
let binding = require("@oxlint/binding-darwin-arm64"), bindingPackageVersion = require("@oxlint/binding-darwin-arm64/package.json").version;
|
|
148
|
-
if (bindingPackageVersion !== "1.
|
|
147
|
+
if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
149
148
|
return binding;
|
|
150
149
|
} catch (e) {
|
|
151
150
|
loadErrors.push(e);
|
|
@@ -159,7 +158,7 @@ function requireNative() {
|
|
|
159
158
|
}
|
|
160
159
|
try {
|
|
161
160
|
let binding = require("@oxlint/binding-freebsd-x64"), bindingPackageVersion = require("@oxlint/binding-freebsd-x64/package.json").version;
|
|
162
|
-
if (bindingPackageVersion !== "1.
|
|
161
|
+
if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
163
162
|
return binding;
|
|
164
163
|
} catch (e) {
|
|
165
164
|
loadErrors.push(e);
|
|
@@ -172,7 +171,7 @@ function requireNative() {
|
|
|
172
171
|
}
|
|
173
172
|
try {
|
|
174
173
|
let binding = require("@oxlint/binding-freebsd-arm64"), bindingPackageVersion = require("@oxlint/binding-freebsd-arm64/package.json").version;
|
|
175
|
-
if (bindingPackageVersion !== "1.
|
|
174
|
+
if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
176
175
|
return binding;
|
|
177
176
|
} catch (e) {
|
|
178
177
|
loadErrors.push(e);
|
|
@@ -186,7 +185,7 @@ function requireNative() {
|
|
|
186
185
|
}
|
|
187
186
|
try {
|
|
188
187
|
let binding = require("@oxlint/binding-linux-x64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-x64-musl/package.json").version;
|
|
189
|
-
if (bindingPackageVersion !== "1.
|
|
188
|
+
if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
190
189
|
return binding;
|
|
191
190
|
} catch (e) {
|
|
192
191
|
loadErrors.push(e);
|
|
@@ -199,7 +198,7 @@ function requireNative() {
|
|
|
199
198
|
}
|
|
200
199
|
try {
|
|
201
200
|
let binding = require("@oxlint/binding-linux-x64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-x64-gnu/package.json").version;
|
|
202
|
-
if (bindingPackageVersion !== "1.
|
|
201
|
+
if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
203
202
|
return binding;
|
|
204
203
|
} catch (e) {
|
|
205
204
|
loadErrors.push(e);
|
|
@@ -213,7 +212,7 @@ function requireNative() {
|
|
|
213
212
|
}
|
|
214
213
|
try {
|
|
215
214
|
let binding = require("@oxlint/binding-linux-arm64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-arm64-musl/package.json").version;
|
|
216
|
-
if (bindingPackageVersion !== "1.
|
|
215
|
+
if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
217
216
|
return binding;
|
|
218
217
|
} catch (e) {
|
|
219
218
|
loadErrors.push(e);
|
|
@@ -226,7 +225,7 @@ function requireNative() {
|
|
|
226
225
|
}
|
|
227
226
|
try {
|
|
228
227
|
let binding = require("@oxlint/binding-linux-arm64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-arm64-gnu/package.json").version;
|
|
229
|
-
if (bindingPackageVersion !== "1.
|
|
228
|
+
if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
230
229
|
return binding;
|
|
231
230
|
} catch (e) {
|
|
232
231
|
loadErrors.push(e);
|
|
@@ -240,7 +239,7 @@ function requireNative() {
|
|
|
240
239
|
}
|
|
241
240
|
try {
|
|
242
241
|
let binding = require("@oxlint/binding-linux-arm-musleabihf"), bindingPackageVersion = require("@oxlint/binding-linux-arm-musleabihf/package.json").version;
|
|
243
|
-
if (bindingPackageVersion !== "1.
|
|
242
|
+
if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
244
243
|
return binding;
|
|
245
244
|
} catch (e) {
|
|
246
245
|
loadErrors.push(e);
|
|
@@ -253,7 +252,7 @@ function requireNative() {
|
|
|
253
252
|
}
|
|
254
253
|
try {
|
|
255
254
|
let binding = require("@oxlint/binding-linux-arm-gnueabihf"), bindingPackageVersion = require("@oxlint/binding-linux-arm-gnueabihf/package.json").version;
|
|
256
|
-
if (bindingPackageVersion !== "1.
|
|
255
|
+
if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
257
256
|
return binding;
|
|
258
257
|
} catch (e) {
|
|
259
258
|
loadErrors.push(e);
|
|
@@ -267,7 +266,7 @@ function requireNative() {
|
|
|
267
266
|
}
|
|
268
267
|
try {
|
|
269
268
|
let binding = require("@oxlint/binding-linux-loong64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-loong64-musl/package.json").version;
|
|
270
|
-
if (bindingPackageVersion !== "1.
|
|
269
|
+
if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
271
270
|
return binding;
|
|
272
271
|
} catch (e) {
|
|
273
272
|
loadErrors.push(e);
|
|
@@ -280,7 +279,7 @@ function requireNative() {
|
|
|
280
279
|
}
|
|
281
280
|
try {
|
|
282
281
|
let binding = require("@oxlint/binding-linux-loong64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-loong64-gnu/package.json").version;
|
|
283
|
-
if (bindingPackageVersion !== "1.
|
|
282
|
+
if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
284
283
|
return binding;
|
|
285
284
|
} catch (e) {
|
|
286
285
|
loadErrors.push(e);
|
|
@@ -294,7 +293,7 @@ function requireNative() {
|
|
|
294
293
|
}
|
|
295
294
|
try {
|
|
296
295
|
let binding = require("@oxlint/binding-linux-riscv64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-riscv64-musl/package.json").version;
|
|
297
|
-
if (bindingPackageVersion !== "1.
|
|
296
|
+
if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
298
297
|
return binding;
|
|
299
298
|
} catch (e) {
|
|
300
299
|
loadErrors.push(e);
|
|
@@ -307,7 +306,7 @@ function requireNative() {
|
|
|
307
306
|
}
|
|
308
307
|
try {
|
|
309
308
|
let binding = require("@oxlint/binding-linux-riscv64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-riscv64-gnu/package.json").version;
|
|
310
|
-
if (bindingPackageVersion !== "1.
|
|
309
|
+
if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
311
310
|
return binding;
|
|
312
311
|
} catch (e) {
|
|
313
312
|
loadErrors.push(e);
|
|
@@ -321,7 +320,7 @@ function requireNative() {
|
|
|
321
320
|
}
|
|
322
321
|
try {
|
|
323
322
|
let binding = require("@oxlint/binding-linux-ppc64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-ppc64-gnu/package.json").version;
|
|
324
|
-
if (bindingPackageVersion !== "1.
|
|
323
|
+
if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
325
324
|
return binding;
|
|
326
325
|
} catch (e) {
|
|
327
326
|
loadErrors.push(e);
|
|
@@ -334,7 +333,7 @@ function requireNative() {
|
|
|
334
333
|
}
|
|
335
334
|
try {
|
|
336
335
|
let binding = require("@oxlint/binding-linux-s390x-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-s390x-gnu/package.json").version;
|
|
337
|
-
if (bindingPackageVersion !== "1.
|
|
336
|
+
if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
338
337
|
return binding;
|
|
339
338
|
} catch (e) {
|
|
340
339
|
loadErrors.push(e);
|
|
@@ -348,7 +347,7 @@ function requireNative() {
|
|
|
348
347
|
}
|
|
349
348
|
try {
|
|
350
349
|
let binding = require("@oxlint/binding-openharmony-arm64"), bindingPackageVersion = require("@oxlint/binding-openharmony-arm64/package.json").version;
|
|
351
|
-
if (bindingPackageVersion !== "1.
|
|
350
|
+
if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
352
351
|
return binding;
|
|
353
352
|
} catch (e) {
|
|
354
353
|
loadErrors.push(e);
|
|
@@ -361,7 +360,7 @@ function requireNative() {
|
|
|
361
360
|
}
|
|
362
361
|
try {
|
|
363
362
|
let binding = require("@oxlint/binding-openharmony-x64"), bindingPackageVersion = require("@oxlint/binding-openharmony-x64/package.json").version;
|
|
364
|
-
if (bindingPackageVersion !== "1.
|
|
363
|
+
if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
365
364
|
return binding;
|
|
366
365
|
} catch (e) {
|
|
367
366
|
loadErrors.push(e);
|
|
@@ -374,7 +373,7 @@ function requireNative() {
|
|
|
374
373
|
}
|
|
375
374
|
try {
|
|
376
375
|
let binding = require("@oxlint/binding-openharmony-arm"), bindingPackageVersion = require("@oxlint/binding-openharmony-arm/package.json").version;
|
|
377
|
-
if (bindingPackageVersion !== "1.
|
|
376
|
+
if (bindingPackageVersion !== "1.69.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.69.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
378
377
|
return binding;
|
|
379
378
|
} catch (e) {
|
|
380
379
|
loadErrors.push(e);
|