oxlint 1.65.0 → 1.66.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.
@@ -304,6 +304,9 @@
304
304
  "id-length": {
305
305
  "$ref": "#/definitions/DummyRule"
306
306
  },
307
+ "id-match": {
308
+ "$ref": "#/definitions/DummyRule"
309
+ },
307
310
  "import/consistent-type-specifier-style": {
308
311
  "$ref": "#/definitions/DummyRule"
309
312
  },
@@ -334,6 +337,9 @@
334
337
  "import/namespace": {
335
338
  "$ref": "#/definitions/DummyRule"
336
339
  },
340
+ "import/newline-after-import": {
341
+ "$ref": "#/definitions/DummyRule"
342
+ },
337
343
  "import/no-absolute-path": {
338
344
  "$ref": "#/definitions/DummyRule"
339
345
  },
@@ -973,6 +979,9 @@
973
979
  "no-implicit-globals": {
974
980
  "$ref": "#/definitions/DummyRule"
975
981
  },
982
+ "no-implied-eval": {
983
+ "$ref": "#/definitions/DummyRule"
984
+ },
976
985
  "no-import-assign": {
977
986
  "$ref": "#/definitions/DummyRule"
978
987
  },
@@ -1531,6 +1540,9 @@
1531
1540
  "react/no-namespace": {
1532
1541
  "$ref": "#/definitions/DummyRule"
1533
1542
  },
1543
+ "react/no-object-type-as-default-prop": {
1544
+ "$ref": "#/definitions/DummyRule"
1545
+ },
1534
1546
  "react/no-react-children": {
1535
1547
  "$ref": "#/definitions/DummyRule"
1536
1548
  },
@@ -1558,6 +1570,9 @@
1558
1570
  "react/no-unsafe": {
1559
1571
  "$ref": "#/definitions/DummyRule"
1560
1572
  },
1573
+ "react/no-unstable-nested-components": {
1574
+ "$ref": "#/definitions/DummyRule"
1575
+ },
1561
1576
  "react/no-will-update-set-state": {
1562
1577
  "$ref": "#/definitions/DummyRule"
1563
1578
  },
@@ -2428,6 +2443,9 @@
2428
2443
  "vitest/no-unneeded-async-expect-function": {
2429
2444
  "$ref": "#/definitions/DummyRule"
2430
2445
  },
2446
+ "vitest/padding-around-after-all-blocks": {
2447
+ "$ref": "#/definitions/DummyRule"
2448
+ },
2431
2449
  "vitest/prefer-called-exactly-once-with": {
2432
2450
  "$ref": "#/definitions/DummyRule"
2433
2451
  },
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.65.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.65.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
41
+ if (bindingPackageVersion !== "1.66.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.66.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.65.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.65.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
54
+ if (bindingPackageVersion !== "1.66.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.66.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.65.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.65.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
68
+ if (bindingPackageVersion !== "1.66.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.66.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.65.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.65.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
81
+ if (bindingPackageVersion !== "1.66.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.66.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.65.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.65.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
95
+ if (bindingPackageVersion !== "1.66.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.66.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.65.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.65.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
108
+ if (bindingPackageVersion !== "1.66.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.66.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.65.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.65.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
122
+ if (bindingPackageVersion !== "1.66.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.66.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.65.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.65.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
135
+ if (bindingPackageVersion !== "1.66.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.66.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.65.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.65.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
148
+ if (bindingPackageVersion !== "1.66.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.66.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.65.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.65.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
162
+ if (bindingPackageVersion !== "1.66.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.66.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.65.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.65.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
175
+ if (bindingPackageVersion !== "1.66.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.66.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.65.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.65.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
189
+ if (bindingPackageVersion !== "1.66.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.66.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.65.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.65.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
202
+ if (bindingPackageVersion !== "1.66.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.66.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.65.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.65.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
216
+ if (bindingPackageVersion !== "1.66.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.66.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.65.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.65.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
229
+ if (bindingPackageVersion !== "1.66.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.66.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.65.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.65.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
243
+ if (bindingPackageVersion !== "1.66.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.66.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.65.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.65.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
256
+ if (bindingPackageVersion !== "1.66.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.66.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.65.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.65.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
270
+ if (bindingPackageVersion !== "1.66.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.66.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.65.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.65.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
283
+ if (bindingPackageVersion !== "1.66.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.66.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.65.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.65.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
297
+ if (bindingPackageVersion !== "1.66.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.66.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.65.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.65.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
310
+ if (bindingPackageVersion !== "1.66.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.66.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.65.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.65.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
324
+ if (bindingPackageVersion !== "1.66.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.66.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.65.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.65.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
337
+ if (bindingPackageVersion !== "1.66.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.66.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.65.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.65.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
351
+ if (bindingPackageVersion !== "1.66.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.66.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.65.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.65.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
364
+ if (bindingPackageVersion !== "1.66.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.66.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.65.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.65.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
377
+ if (bindingPackageVersion !== "1.66.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.66.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
@@ -502,6 +502,7 @@ interface DummyRuleMap {
502
502
  "grouped-accessor-pairs"?: DummyRule;
503
503
  "guard-for-in"?: DummyRule;
504
504
  "id-length"?: DummyRule;
505
+ "id-match"?: DummyRule;
505
506
  "import/consistent-type-specifier-style"?: DummyRule;
506
507
  "import/default"?: DummyRule;
507
508
  "import/export"?: DummyRule;
@@ -512,6 +513,7 @@ interface DummyRuleMap {
512
513
  "import/max-dependencies"?: DummyRule;
513
514
  "import/named"?: DummyRule;
514
515
  "import/namespace"?: DummyRule;
516
+ "import/newline-after-import"?: DummyRule;
515
517
  "import/no-absolute-path"?: DummyRule;
516
518
  "import/no-amd"?: DummyRule;
517
519
  "import/no-anonymous-default-export"?: DummyRule;
@@ -725,6 +727,7 @@ interface DummyRuleMap {
725
727
  "no-global-assign"?: DummyRule;
726
728
  "no-implicit-coercion"?: DummyRule;
727
729
  "no-implicit-globals"?: DummyRule;
730
+ "no-implied-eval"?: DummyRule;
728
731
  "no-import-assign"?: DummyRule;
729
732
  "no-inline-comments"?: DummyRule;
730
733
  "no-inner-declarations"?: DummyRule;
@@ -911,6 +914,7 @@ interface DummyRuleMap {
911
914
  "react/no-is-mounted"?: DummyRule;
912
915
  "react/no-multi-comp"?: DummyRule;
913
916
  "react/no-namespace"?: DummyRule;
917
+ "react/no-object-type-as-default-prop"?: DummyRule;
914
918
  "react/no-react-children"?: DummyRule;
915
919
  "react/no-redundant-should-component-update"?: DummyRule;
916
920
  "react/no-render-return-value"?: DummyRule;
@@ -920,6 +924,7 @@ interface DummyRuleMap {
920
924
  "react/no-unescaped-entities"?: DummyRule;
921
925
  "react/no-unknown-property"?: DummyRule;
922
926
  "react/no-unsafe"?: DummyRule;
927
+ "react/no-unstable-nested-components"?: DummyRule;
923
928
  "react/no-will-update-set-state"?: DummyRule;
924
929
  "react/only-export-components"?: DummyRule;
925
930
  "react/prefer-es6-class"?: DummyRule;
@@ -1210,6 +1215,7 @@ interface DummyRuleMap {
1210
1215
  "vitest/no-test-prefixes"?: DummyRule;
1211
1216
  "vitest/no-test-return-statement"?: DummyRule;
1212
1217
  "vitest/no-unneeded-async-expect-function"?: DummyRule;
1218
+ "vitest/padding-around-after-all-blocks"?: DummyRule;
1213
1219
  "vitest/prefer-called-exactly-once-with"?: DummyRule;
1214
1220
  "vitest/prefer-called-once"?: DummyRule;
1215
1221
  "vitest/prefer-called-times"?: DummyRule;
package/dist/js_config.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { a as JSONStringify, n as ArrayIsArray, r as DateNow } from "./globals.js";
2
- import { t as getErrorMessage } from "./utils.js";
2
+ import { t as getErrorMessage$1 } from "./utils.js";
3
3
  import { extname } from "node:path";
4
- import { fileURLToPath } from "node:url";
5
- //#region src-js/utils/node_version.ts
4
+ import { fileURLToPath, pathToFileURL } from "node:url";
5
+ //#region ../shared/src-js/node_version.ts
6
6
  const TS_MODULE_EXTENSIONS = new Set([
7
7
  ".ts",
8
8
  ".mts",
@@ -25,10 +25,46 @@ function isUnknownFileExtensionError(err) {
25
25
  let message = err?.message;
26
26
  return typeof message == "string" && /unknown(?: or unsupported)? file extension/i.test(message);
27
27
  }
28
+ function getErrorMessage(err) {
29
+ return err instanceof Error ? err.message : String(err);
30
+ }
31
+ /**
32
+ * Returns a complete replacement string suitable for `Error.message` assignment
33
+ * (includes the original error message + appended hint), or `null` when the
34
+ * error is unrelated to TS module loading. Callers should overwrite, not append.
35
+ */
28
36
  function getUnsupportedTypeScriptModuleLoadHintForError(err, specifier, nodeVersion = process.version) {
29
37
  return !isTypeScriptModuleSpecifier(specifier) || !isUnknownFileExtensionError(err) ? null : `${getErrorMessage(err)}\n\nTypeScript config files require Node.js ^20.19.0 || >=22.18.0.\nDetected Node.js ${nodeVersion}.\nPlease upgrade Node.js or use a JSON config file instead.`;
30
38
  }
31
39
  //#endregion
40
+ //#region ../shared/src-js/js_config.ts
41
+ /**
42
+ * Import a JS/TS config file and return its `default` export.
43
+ *
44
+ * - Bypasses Node.js module cache (uses `?cache=<key>`) so changed files reload (used for LSP).
45
+ * - On `ERR_UNKNOWN_FILE_EXTENSION` for TS specifiers, overwrites `err.message` with a
46
+ * Node.js upgrade hint that already includes the original message.
47
+ *
48
+ * @param path - Absolute path to the JS/TS config file
49
+ * @param cacheKey - Cache-busting key.
50
+ * Callers decide whether to use a fresh value per call or share one across a batch.
51
+ * @throws When the file has no `default` export,
52
+ * or import fails (with rewritten message for unsupported TS module load).
53
+ */
54
+ async function importJsConfig(path, cacheKey) {
55
+ let fileUrl = pathToFileURL(path);
56
+ fileUrl.searchParams.set("cache", cacheKey.toString());
57
+ let module;
58
+ try {
59
+ module = await import(fileUrl.href);
60
+ } catch (err) {
61
+ let hint = getUnsupportedTypeScriptModuleLoadHintForError(err, path);
62
+ throw hint && err instanceof Error && (err.message = hint), err;
63
+ }
64
+ if (module.default === void 0) throw Error("Configuration file has no default export.");
65
+ return module.default;
66
+ }
67
+ //#endregion
32
68
  //#region src-js/js_config.ts
33
69
  const isObject = (v) => typeof v == "object" && !!v && !ArrayIsArray(v);
34
70
  function validateConfigExtends(root) {
@@ -60,19 +96,11 @@ ${refPath} points back to ${cycleStart}\nCycle: ${idx === -1 ? `${cycleStart} ->
60
96
  visit(root, "<root>");
61
97
  }
62
98
  /**
63
- * Import a JS/TS config file and return its default export.
64
- */
65
- async function importConfig(path, cacheKey) {
66
- let config = (await import(new URL(`file://${path}?cache=${cacheKey}`).href)).default;
67
- if (config === void 0) throw Error("Configuration file has no default export.");
68
- return config;
69
- }
70
- /**
71
99
  * Resolve a single config path to a `JsConfigResult`.
72
100
  * Standard mode: default export must be a plain object.
73
101
  */
74
102
  async function resolveJsConfig(path, cacheKey) {
75
- let config = await importConfig(path, cacheKey);
103
+ let config = await importJsConfig(path, cacheKey);
76
104
  if (!isObject(config)) throw Error("Configuration file must have a default export that is an object.");
77
105
  return validateConfigExtends(config), {
78
106
  path,
@@ -85,7 +113,7 @@ const VITE_OXLINT_CONFIG_FIELD = "lint";
85
113
  * Extracts the `.lint` field. Returns `null` config when missing (signals "skip").
86
114
  */
87
115
  async function resolveVitePlusConfig(path, cacheKey) {
88
- let config = await importConfig(path, cacheKey);
116
+ let config = await importJsConfig(path, cacheKey);
89
117
  if (!isObject(config)) return {
90
118
  path,
91
119
  config: null
@@ -109,18 +137,14 @@ async function loadConfigs(paths, resolver) {
109
137
  let cacheKey = DateNow(), results = await Promise.allSettled(paths.map((path) => resolver(path, cacheKey))), successes = [], errors = [];
110
138
  for (let i = 0; i < results.length; i++) {
111
139
  let result = results[i];
112
- if (result.status === "fulfilled") successes.push(result.value);
113
- else {
114
- let path = paths[i], unsupportedNodeHint = getUnsupportedTypeScriptModuleLoadHintForError(result.reason, path);
115
- errors.push({
116
- path,
117
- error: unsupportedNodeHint ?? getErrorMessage(result.reason)
118
- });
119
- }
140
+ result.status === "fulfilled" ? successes.push(result.value) : errors.push({
141
+ path: paths[i],
142
+ error: getErrorMessage$1(result.reason)
143
+ });
120
144
  }
121
145
  return errors.length > 0 ? JSONStringify({ Failures: errors }) : JSONStringify({ Success: successes });
122
146
  } catch (err) {
123
- return JSONStringify({ Error: getErrorMessage(err) });
147
+ return JSONStringify({ Error: getErrorMessage$1(err) });
124
148
  }
125
149
  }
126
150
  /**
package/dist/lint.js CHANGED
@@ -14099,7 +14099,7 @@ function resetSettings() {
14099
14099
  }
14100
14100
  //#endregion
14101
14101
  //#region package.json
14102
- var version = "1.65.0";
14102
+ var version = "1.66.0";
14103
14103
  //#endregion
14104
14104
  //#region src-js/plugins/context.ts
14105
14105
  let filePath = null, cwd = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oxlint",
3
- "version": "1.65.0",
3
+ "version": "1.66.0",
4
4
  "description": "Linter for the JavaScript Oxidation Compiler",
5
5
  "keywords": [
6
6
  "eslint",
@@ -83,24 +83,24 @@
83
83
  },
84
84
  "preferUnplugged": true,
85
85
  "optionalDependencies": {
86
- "@oxlint/binding-darwin-arm64": "1.65.0",
87
- "@oxlint/binding-android-arm64": "1.65.0",
88
- "@oxlint/binding-win32-arm64-msvc": "1.65.0",
89
- "@oxlint/binding-linux-arm64-gnu": "1.65.0",
90
- "@oxlint/binding-linux-arm64-musl": "1.65.0",
91
- "@oxlint/binding-openharmony-arm64": "1.65.0",
92
- "@oxlint/binding-android-arm-eabi": "1.65.0",
93
- "@oxlint/binding-linux-arm-gnueabihf": "1.65.0",
94
- "@oxlint/binding-linux-arm-musleabihf": "1.65.0",
95
- "@oxlint/binding-win32-ia32-msvc": "1.65.0",
96
- "@oxlint/binding-linux-ppc64-gnu": "1.65.0",
97
- "@oxlint/binding-linux-riscv64-gnu": "1.65.0",
98
- "@oxlint/binding-linux-riscv64-musl": "1.65.0",
99
- "@oxlint/binding-linux-s390x-gnu": "1.65.0",
100
- "@oxlint/binding-darwin-x64": "1.65.0",
101
- "@oxlint/binding-win32-x64-msvc": "1.65.0",
102
- "@oxlint/binding-freebsd-x64": "1.65.0",
103
- "@oxlint/binding-linux-x64-gnu": "1.65.0",
104
- "@oxlint/binding-linux-x64-musl": "1.65.0"
86
+ "@oxlint/binding-darwin-arm64": "1.66.0",
87
+ "@oxlint/binding-android-arm64": "1.66.0",
88
+ "@oxlint/binding-win32-arm64-msvc": "1.66.0",
89
+ "@oxlint/binding-linux-arm64-gnu": "1.66.0",
90
+ "@oxlint/binding-linux-arm64-musl": "1.66.0",
91
+ "@oxlint/binding-openharmony-arm64": "1.66.0",
92
+ "@oxlint/binding-android-arm-eabi": "1.66.0",
93
+ "@oxlint/binding-linux-arm-gnueabihf": "1.66.0",
94
+ "@oxlint/binding-linux-arm-musleabihf": "1.66.0",
95
+ "@oxlint/binding-win32-ia32-msvc": "1.66.0",
96
+ "@oxlint/binding-linux-ppc64-gnu": "1.66.0",
97
+ "@oxlint/binding-linux-riscv64-gnu": "1.66.0",
98
+ "@oxlint/binding-linux-riscv64-musl": "1.66.0",
99
+ "@oxlint/binding-linux-s390x-gnu": "1.66.0",
100
+ "@oxlint/binding-darwin-x64": "1.66.0",
101
+ "@oxlint/binding-win32-x64-msvc": "1.66.0",
102
+ "@oxlint/binding-freebsd-x64": "1.66.0",
103
+ "@oxlint/binding-linux-x64-gnu": "1.66.0",
104
+ "@oxlint/binding-linux-x64-musl": "1.66.0"
105
105
  }
106
106
  }