oxlint 1.74.0 → 1.76.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/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.74.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.74.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
40
+ if (bindingPackageVersion !== "1.76.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.76.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.74.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.74.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
53
+ if (bindingPackageVersion !== "1.76.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.76.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);
@@ -64,7 +64,7 @@ function requireNative() {
64
64
  }
65
65
  try {
66
66
  let binding = require("@oxlint/binding-win32-x64-gnu"), bindingPackageVersion = require("@oxlint/binding-win32-x64-gnu/package.json").version;
67
- if (bindingPackageVersion !== "1.74.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.74.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
67
+ if (bindingPackageVersion !== "1.76.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.76.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
68
68
  return binding;
69
69
  } catch (e) {
70
70
  loadErrors.push(e);
@@ -77,7 +77,7 @@ function requireNative() {
77
77
  }
78
78
  try {
79
79
  let binding = require("@oxlint/binding-win32-x64-msvc"), bindingPackageVersion = require("@oxlint/binding-win32-x64-msvc/package.json").version;
80
- if (bindingPackageVersion !== "1.74.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.74.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
80
+ if (bindingPackageVersion !== "1.76.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.76.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
81
81
  return binding;
82
82
  } catch (e) {
83
83
  loadErrors.push(e);
@@ -91,7 +91,7 @@ function requireNative() {
91
91
  }
92
92
  try {
93
93
  let binding = require("@oxlint/binding-win32-ia32-msvc"), bindingPackageVersion = require("@oxlint/binding-win32-ia32-msvc/package.json").version;
94
- if (bindingPackageVersion !== "1.74.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.74.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
94
+ if (bindingPackageVersion !== "1.76.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.76.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
95
95
  return binding;
96
96
  } catch (e) {
97
97
  loadErrors.push(e);
@@ -104,7 +104,7 @@ function requireNative() {
104
104
  }
105
105
  try {
106
106
  let binding = require("@oxlint/binding-win32-arm64-msvc"), bindingPackageVersion = require("@oxlint/binding-win32-arm64-msvc/package.json").version;
107
- if (bindingPackageVersion !== "1.74.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.74.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
107
+ if (bindingPackageVersion !== "1.76.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.76.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
108
108
  return binding;
109
109
  } catch (e) {
110
110
  loadErrors.push(e);
@@ -118,7 +118,7 @@ function requireNative() {
118
118
  }
119
119
  try {
120
120
  let binding = require("@oxlint/binding-darwin-universal"), bindingPackageVersion = require("@oxlint/binding-darwin-universal/package.json").version;
121
- if (bindingPackageVersion !== "1.74.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.74.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
121
+ if (bindingPackageVersion !== "1.76.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.76.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
122
122
  return binding;
123
123
  } catch (e) {
124
124
  loadErrors.push(e);
@@ -131,7 +131,7 @@ function requireNative() {
131
131
  }
132
132
  try {
133
133
  let binding = require("@oxlint/binding-darwin-x64"), bindingPackageVersion = require("@oxlint/binding-darwin-x64/package.json").version;
134
- if (bindingPackageVersion !== "1.74.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.74.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
134
+ if (bindingPackageVersion !== "1.76.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.76.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
135
135
  return binding;
136
136
  } catch (e) {
137
137
  loadErrors.push(e);
@@ -144,7 +144,7 @@ function requireNative() {
144
144
  }
145
145
  try {
146
146
  let binding = require("@oxlint/binding-darwin-arm64"), bindingPackageVersion = require("@oxlint/binding-darwin-arm64/package.json").version;
147
- if (bindingPackageVersion !== "1.74.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.74.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
147
+ if (bindingPackageVersion !== "1.76.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.76.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
148
148
  return binding;
149
149
  } catch (e) {
150
150
  loadErrors.push(e);
@@ -158,7 +158,7 @@ function requireNative() {
158
158
  }
159
159
  try {
160
160
  let binding = require("@oxlint/binding-freebsd-x64"), bindingPackageVersion = require("@oxlint/binding-freebsd-x64/package.json").version;
161
- if (bindingPackageVersion !== "1.74.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.74.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
161
+ if (bindingPackageVersion !== "1.76.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.76.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
162
162
  return binding;
163
163
  } catch (e) {
164
164
  loadErrors.push(e);
@@ -171,7 +171,7 @@ function requireNative() {
171
171
  }
172
172
  try {
173
173
  let binding = require("@oxlint/binding-freebsd-arm64"), bindingPackageVersion = require("@oxlint/binding-freebsd-arm64/package.json").version;
174
- if (bindingPackageVersion !== "1.74.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.74.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
174
+ if (bindingPackageVersion !== "1.76.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.76.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
175
175
  return binding;
176
176
  } catch (e) {
177
177
  loadErrors.push(e);
@@ -185,7 +185,7 @@ function requireNative() {
185
185
  }
186
186
  try {
187
187
  let binding = require("@oxlint/binding-linux-x64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-x64-musl/package.json").version;
188
- if (bindingPackageVersion !== "1.74.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.74.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
188
+ if (bindingPackageVersion !== "1.76.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.76.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
189
189
  return binding;
190
190
  } catch (e) {
191
191
  loadErrors.push(e);
@@ -198,7 +198,7 @@ function requireNative() {
198
198
  }
199
199
  try {
200
200
  let binding = require("@oxlint/binding-linux-x64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-x64-gnu/package.json").version;
201
- if (bindingPackageVersion !== "1.74.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.74.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
201
+ if (bindingPackageVersion !== "1.76.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.76.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
202
202
  return binding;
203
203
  } catch (e) {
204
204
  loadErrors.push(e);
@@ -212,7 +212,7 @@ function requireNative() {
212
212
  }
213
213
  try {
214
214
  let binding = require("@oxlint/binding-linux-arm64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-arm64-musl/package.json").version;
215
- if (bindingPackageVersion !== "1.74.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.74.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
215
+ if (bindingPackageVersion !== "1.76.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.76.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
216
216
  return binding;
217
217
  } catch (e) {
218
218
  loadErrors.push(e);
@@ -225,7 +225,7 @@ function requireNative() {
225
225
  }
226
226
  try {
227
227
  let binding = require("@oxlint/binding-linux-arm64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-arm64-gnu/package.json").version;
228
- if (bindingPackageVersion !== "1.74.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.74.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
228
+ if (bindingPackageVersion !== "1.76.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.76.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
229
229
  return binding;
230
230
  } catch (e) {
231
231
  loadErrors.push(e);
@@ -239,7 +239,7 @@ function requireNative() {
239
239
  }
240
240
  try {
241
241
  let binding = require("@oxlint/binding-linux-arm-musleabihf"), bindingPackageVersion = require("@oxlint/binding-linux-arm-musleabihf/package.json").version;
242
- if (bindingPackageVersion !== "1.74.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.74.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
242
+ if (bindingPackageVersion !== "1.76.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.76.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
243
243
  return binding;
244
244
  } catch (e) {
245
245
  loadErrors.push(e);
@@ -252,7 +252,7 @@ function requireNative() {
252
252
  }
253
253
  try {
254
254
  let binding = require("@oxlint/binding-linux-arm-gnueabihf"), bindingPackageVersion = require("@oxlint/binding-linux-arm-gnueabihf/package.json").version;
255
- if (bindingPackageVersion !== "1.74.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.74.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
255
+ if (bindingPackageVersion !== "1.76.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.76.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
256
256
  return binding;
257
257
  } catch (e) {
258
258
  loadErrors.push(e);
@@ -266,7 +266,7 @@ function requireNative() {
266
266
  }
267
267
  try {
268
268
  let binding = require("@oxlint/binding-linux-loong64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-loong64-musl/package.json").version;
269
- if (bindingPackageVersion !== "1.74.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.74.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
269
+ if (bindingPackageVersion !== "1.76.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.76.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
270
270
  return binding;
271
271
  } catch (e) {
272
272
  loadErrors.push(e);
@@ -279,7 +279,7 @@ function requireNative() {
279
279
  }
280
280
  try {
281
281
  let binding = require("@oxlint/binding-linux-loong64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-loong64-gnu/package.json").version;
282
- if (bindingPackageVersion !== "1.74.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.74.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
282
+ if (bindingPackageVersion !== "1.76.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.76.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
283
283
  return binding;
284
284
  } catch (e) {
285
285
  loadErrors.push(e);
@@ -293,7 +293,7 @@ function requireNative() {
293
293
  }
294
294
  try {
295
295
  let binding = require("@oxlint/binding-linux-riscv64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-riscv64-musl/package.json").version;
296
- if (bindingPackageVersion !== "1.74.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.74.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
296
+ if (bindingPackageVersion !== "1.76.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.76.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
297
297
  return binding;
298
298
  } catch (e) {
299
299
  loadErrors.push(e);
@@ -306,7 +306,7 @@ function requireNative() {
306
306
  }
307
307
  try {
308
308
  let binding = require("@oxlint/binding-linux-riscv64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-riscv64-gnu/package.json").version;
309
- if (bindingPackageVersion !== "1.74.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.74.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
309
+ if (bindingPackageVersion !== "1.76.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.76.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
310
310
  return binding;
311
311
  } catch (e) {
312
312
  loadErrors.push(e);
@@ -320,7 +320,7 @@ function requireNative() {
320
320
  }
321
321
  try {
322
322
  let binding = require("@oxlint/binding-linux-ppc64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-ppc64-gnu/package.json").version;
323
- if (bindingPackageVersion !== "1.74.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.74.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
323
+ if (bindingPackageVersion !== "1.76.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.76.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
324
324
  return binding;
325
325
  } catch (e) {
326
326
  loadErrors.push(e);
@@ -333,7 +333,7 @@ function requireNative() {
333
333
  }
334
334
  try {
335
335
  let binding = require("@oxlint/binding-linux-s390x-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-s390x-gnu/package.json").version;
336
- if (bindingPackageVersion !== "1.74.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.74.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
336
+ if (bindingPackageVersion !== "1.76.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.76.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
337
337
  return binding;
338
338
  } catch (e) {
339
339
  loadErrors.push(e);
@@ -347,7 +347,7 @@ function requireNative() {
347
347
  }
348
348
  try {
349
349
  let binding = require("@oxlint/binding-openharmony-arm64"), bindingPackageVersion = require("@oxlint/binding-openharmony-arm64/package.json").version;
350
- if (bindingPackageVersion !== "1.74.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.74.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
350
+ if (bindingPackageVersion !== "1.76.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.76.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
351
351
  return binding;
352
352
  } catch (e) {
353
353
  loadErrors.push(e);
@@ -360,7 +360,7 @@ function requireNative() {
360
360
  }
361
361
  try {
362
362
  let binding = require("@oxlint/binding-openharmony-x64"), bindingPackageVersion = require("@oxlint/binding-openharmony-x64/package.json").version;
363
- if (bindingPackageVersion !== "1.74.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.74.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
363
+ if (bindingPackageVersion !== "1.76.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.76.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
364
364
  return binding;
365
365
  } catch (e) {
366
366
  loadErrors.push(e);
@@ -373,7 +373,7 @@ function requireNative() {
373
373
  }
374
374
  try {
375
375
  let binding = require("@oxlint/binding-openharmony-arm"), bindingPackageVersion = require("@oxlint/binding-openharmony-arm/package.json").version;
376
- if (bindingPackageVersion !== "1.74.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.74.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
376
+ if (bindingPackageVersion !== "1.76.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.76.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
377
377
  return binding;
378
378
  } catch (e) {
379
379
  loadErrors.push(e);
package/dist/index.d.ts CHANGED
@@ -69,7 +69,7 @@ type FuncNamesConfigType = "always" | "as-needed" | "never";
69
69
  type Style = "expression" | "declaration";
70
70
  type NamedExports = "ignore" | "expression" | "declaration";
71
71
  type PairOrder = "anyOrder" | "getBeforeSet" | "setBeforeGet";
72
- type Mode = "prefer-top-level" | "prefer-inline";
72
+ type Mode = "prefer-top-level" | "prefer-inline" | "prefer-top-level-if-only-type-imports";
73
73
  /**
74
74
  * Extension rule configuration; Copy to avoid extra indirection.
75
75
  */
@@ -88,8 +88,8 @@ type MaxDependenciesConfigJson = number | MaxDependenciesConfig;
88
88
  type Target = "single" | "any";
89
89
  type TestCaseName = "it" | "test";
90
90
  type JestFnType = "hook" | "describe" | "test" | "expect" | "jest" | "unknown";
91
- type DummyRule = AllowWarnDeny | [AllowWarnDeny, ...unknown[]];
92
91
  type SnapshotHintMode = "always" | "multi";
92
+ type DummyRule = AllowWarnDeny | [AllowWarnDeny, ...unknown[]];
93
93
  type AltTextElements = "img" | "object" | "area" | 'input[type="image"]';
94
94
  type AnchorIsValidAspect = "noHref" | "invalidHref" | "preferButton";
95
95
  type Assert = "htmlFor" | "nesting" | "both" | "either";
@@ -116,6 +116,8 @@ type NoInnerDeclarationsConfig = "functions" | "both";
116
116
  type BlockScopedFunctions = "allow" | "disallow";
117
117
  type Namespaces = "allow" | "disallow";
118
118
  type NoMagicNumbersNumber = number | string;
119
+ type NoRestrictedGlobalsConfigEnum = string | RestrictedGlobal | NoRestrictedGlobalsObjectConfig;
120
+ type GlobalNameOrObject = string | RestrictedGlobal;
119
121
  type NoRestrictedImportsConfigEnum = string | RestrictedPath | NoRestrictedImportsConfig;
120
122
  type PossiblePaths = string | RestrictedPath;
121
123
  type PossiblePatterns = string | RestrictedPattern;
@@ -138,6 +140,7 @@ type Location = "start" | "anywhere";
138
140
  * The rule takes a single option - an array of possible callback names - which may include object methods. The default callback names are `callback`, `cb`, `next`.
139
141
  */
140
142
  type CallbackReturn = string[];
143
+ type ExportsStyleMode = "module.exports" | "exports";
141
144
  /**
142
145
  * The rule takes a single string option: the name of the error parameter.
143
146
  *
@@ -180,6 +183,10 @@ type ForbidItem2 = string | {
180
183
  */
181
184
  message?: string;
182
185
  };
186
+ type NamedComponents = NamedComponentStyle | NamedComponentStyle[];
187
+ type NamedComponentStyle = "function-declaration" | "arrow-function" | "function-expression";
188
+ type UnnamedComponents = UnnamedComponentStyle | UnnamedComponentStyle[];
189
+ type UnnamedComponentStyle = "arrow-function" | "function-expression";
183
190
  type EnforceBooleanAttribute = "always" | "never";
184
191
  type JsxCurlyBracePresenceConfig = JsxCurlyBracePresenceMode | JsxCurlyBracePresence;
185
192
  type JsxCurlyBracePresenceMode = "always" | "never" | "ignore";
@@ -472,9 +479,23 @@ interface Oxlintrc$1 {
472
479
  */
473
480
  env?: OxlintEnv;
474
481
  /**
475
- * Paths of configuration files that this configuration file extends (inherits from). The files
476
- * are resolved relative to the location of the configuration file that contains the `extends`
477
- * property. The configuration files are merged from the first to the last, with the last file
482
+ * Configurations that this configuration file extends (inherits from).
483
+ *
484
+ * In `.oxlintrc.json`, `extends` has type `string[]`. Each string is a path to a configuration
485
+ * file, resolved relative to the location of the configuration file that contains the
486
+ * `extends` property.
487
+ *
488
+ * In `oxlint.config.ts`, `extends` has type `OxlintConfig[]`. Import each configuration and
489
+ * pass the configuration object directly:
490
+ *
491
+ * ```ts
492
+ * import { defineConfig } from "oxlint";
493
+ * import baseConfig from "./base-config.ts";
494
+ *
495
+ * export default defineConfig({ extends: [baseConfig] });
496
+ * ```
497
+ *
498
+ * Configurations are merged from the first to the last, with the last configuration
478
499
  * overriding the previous ones.
479
500
  */
480
501
  extends?: string[];
@@ -825,6 +846,7 @@ interface DummyRuleMap {
825
846
  "getter-return"?: RuleNoConfig | [AllowWarnDeny, GetterReturn];
826
847
  "grouped-accessor-pairs"?: RuleNoConfig | [AllowWarnDeny, PairOrder] | [AllowWarnDeny, PairOrder, GroupedAccessorPairsConfig];
827
848
  "guard-for-in"?: RuleNoConfig;
849
+ "id-denylist"?: RuleNoConfig | [AllowWarnDeny, string, ...string[]];
828
850
  "id-length"?: RuleNoConfig | [AllowWarnDeny, IdLengthConfig];
829
851
  "id-match"?: RuleNoConfig | [AllowWarnDeny, string] | [AllowWarnDeny, string, IdMatchOptions];
830
852
  "import/consistent-type-specifier-style"?: RuleNoConfig | [AllowWarnDeny, Mode];
@@ -902,7 +924,7 @@ interface DummyRuleMap {
902
924
  "jest/prefer-hooks-on-top"?: RuleNoConfig;
903
925
  "jest/prefer-importing-jest-globals"?: RuleNoConfig | [AllowWarnDeny, PreferImportingJestGlobalsConfig];
904
926
  "jest/prefer-jest-mocked"?: RuleNoConfig;
905
- "jest/prefer-lowercase-title"?: DummyRule;
927
+ "jest/prefer-lowercase-title"?: RuleNoConfig | [AllowWarnDeny, PreferLowercaseTitleConfig];
906
928
  "jest/prefer-mock-promise-shorthand"?: RuleNoConfig;
907
929
  "jest/prefer-mock-return-shorthand"?: RuleNoConfig;
908
930
  "jest/prefer-snapshot-hint"?: RuleNoConfig | [AllowWarnDeny, SnapshotHintMode];
@@ -1086,7 +1108,7 @@ interface DummyRuleMap {
1086
1108
  "no-redeclare"?: RuleNoConfig | [AllowWarnDeny, NoRedeclare];
1087
1109
  "no-regex-spaces"?: RuleNoConfig;
1088
1110
  "no-restricted-exports"?: RuleNoConfig | [AllowWarnDeny, NoRestrictedExportsConfig];
1089
- "no-restricted-globals"?: DummyRule;
1111
+ "no-restricted-globals"?: RuleNoConfig | [AllowWarnDeny, NoRestrictedGlobalsConfigEnum, ...NoRestrictedGlobalsConfigEnum[]];
1090
1112
  "no-restricted-imports"?: RuleNoConfig | [AllowWarnDeny, NoRestrictedImportsConfigEnum, ...NoRestrictedImportsConfigEnum[]];
1091
1113
  "no-restricted-properties"?: RuleNoConfig | [AllowWarnDeny, PropertyDetails, ...PropertyDetails[]];
1092
1114
  "no-return-assign"?: RuleNoConfig | [AllowWarnDeny, NoReturnAssignMode];
@@ -1134,6 +1156,7 @@ interface DummyRuleMap {
1134
1156
  "no-warning-comments"?: RuleNoConfig | [AllowWarnDeny, NoWarningCommentsConfigJson];
1135
1157
  "no-with"?: RuleNoConfig;
1136
1158
  "node/callback-return"?: RuleNoConfig | [AllowWarnDeny, CallbackReturn];
1159
+ "node/exports-style"?: RuleNoConfig | [AllowWarnDeny, ExportsStyleMode] | [AllowWarnDeny, ExportsStyleMode, ExportsStyleOptions];
1137
1160
  "node/global-require"?: RuleNoConfig;
1138
1161
  "node/handle-callback-err"?: RuleNoConfig | [AllowWarnDeny, HandleCallbackErrConfig];
1139
1162
  "node/no-exports-assign"?: RuleNoConfig;
@@ -1142,6 +1165,7 @@ interface DummyRuleMap {
1142
1165
  "node/no-path-concat"?: RuleNoConfig;
1143
1166
  "node/no-process-env"?: RuleNoConfig | [AllowWarnDeny, NoProcessEnvConfig];
1144
1167
  "node/no-sync"?: RuleNoConfig | [AllowWarnDeny, NoSyncConfig];
1168
+ "node/no-top-level-await"?: RuleNoConfig | [AllowWarnDeny, NoTopLevelAwaitConfig];
1145
1169
  "object-shorthand"?: RuleNoConfig | [AllowWarnDeny, ShorthandType] | [AllowWarnDeny, ShorthandType, ObjectShorthandOptions];
1146
1170
  "operator-assignment"?: RuleNoConfig | [AllowWarnDeny, AlwaysNever];
1147
1171
  "oxc/approx-constant"?: RuleNoConfig;
@@ -1149,6 +1173,7 @@ interface DummyRuleMap {
1149
1173
  "oxc/bad-bitwise-operator"?: RuleNoConfig;
1150
1174
  "oxc/bad-char-at-comparison"?: RuleNoConfig;
1151
1175
  "oxc/bad-comparison-sequence"?: RuleNoConfig;
1176
+ "oxc/bad-match-all-arg"?: RuleNoConfig;
1152
1177
  "oxc/bad-min-max-func"?: RuleNoConfig;
1153
1178
  "oxc/bad-object-literal-comparison"?: RuleNoConfig;
1154
1179
  "oxc/bad-replace-all-arg"?: RuleNoConfig;
@@ -1172,7 +1197,7 @@ interface DummyRuleMap {
1172
1197
  "oxc/uninvoked-array-callback"?: RuleNoConfig;
1173
1198
  "prefer-arrow-callback"?: RuleNoConfig | [AllowWarnDeny, PreferArrowCallbackConfig];
1174
1199
  "prefer-const"?: RuleNoConfig | [AllowWarnDeny, PreferConstConfig];
1175
- "prefer-destructuring"?: RuleNoConfig | [AllowWarnDeny, PreferDestructuringOption] | [AllowWarnDeny, PreferDestructuringOption, PreferDestructuringRenamedPropertiesConfig];
1200
+ "prefer-destructuring"?: RuleNoConfig | [AllowWarnDeny, PreferDestructuringOption] | [AllowWarnDeny, PreferDestructuringOption, PreferDestructuringEnforcementConfig];
1176
1201
  "prefer-exponentiation-operator"?: RuleNoConfig;
1177
1202
  "prefer-named-capture-group"?: RuleNoConfig;
1178
1203
  "prefer-numeric-literals"?: RuleNoConfig;
@@ -1213,6 +1238,7 @@ interface DummyRuleMap {
1213
1238
  "react/forbid-dom-props"?: RuleNoConfig | [AllowWarnDeny, ForbidDomPropsConfig];
1214
1239
  "react/forbid-elements"?: RuleNoConfig | [AllowWarnDeny, ForbidElementsConfig];
1215
1240
  "react/forward-ref-uses-ref"?: RuleNoConfig;
1241
+ "react/function-component-definition"?: RuleNoConfig | [AllowWarnDeny, FunctionComponentDefinitionConfig];
1216
1242
  "react/hook-use-state"?: RuleNoConfig | [AllowWarnDeny, HookUseStateConfig];
1217
1243
  "react/iframe-missing-sandbox"?: RuleNoConfig;
1218
1244
  "react/jsx-boolean-value"?: RuleNoConfig | [AllowWarnDeny, EnforceBooleanAttribute] | [AllowWarnDeny, EnforceBooleanAttribute, JsxBooleanValueOptions];
@@ -1557,6 +1583,7 @@ interface DummyRuleMap {
1557
1583
  "vitest/no-test-return-statement"?: RuleNoConfig;
1558
1584
  "vitest/no-unneeded-async-expect-function"?: RuleNoConfig;
1559
1585
  "vitest/padding-around-after-all-blocks"?: RuleNoConfig;
1586
+ "vitest/padding-around-test-blocks"?: RuleNoConfig;
1560
1587
  "vitest/prefer-called-exactly-once-with"?: RuleNoConfig;
1561
1588
  "vitest/prefer-called-once"?: RuleNoConfig;
1562
1589
  "vitest/prefer-called-times"?: RuleNoConfig;
@@ -1572,7 +1599,7 @@ interface DummyRuleMap {
1572
1599
  "vitest/prefer-hooks-on-top"?: RuleNoConfig;
1573
1600
  "vitest/prefer-import-in-mock"?: RuleNoConfig | [AllowWarnDeny, PreferImportInMockConfig];
1574
1601
  "vitest/prefer-importing-vitest-globals"?: RuleNoConfig;
1575
- "vitest/prefer-lowercase-title"?: DummyRule;
1602
+ "vitest/prefer-lowercase-title"?: RuleNoConfig | [AllowWarnDeny, PreferLowercaseTitleConfig];
1576
1603
  "vitest/prefer-mock-promise-shorthand"?: RuleNoConfig;
1577
1604
  "vitest/prefer-mock-return-shorthand"?: RuleNoConfig;
1578
1605
  "vitest/prefer-snapshot-hint"?: RuleNoConfig | [AllowWarnDeny, SnapshotHintMode];
@@ -2292,6 +2319,96 @@ interface PreferImportingJestGlobalsConfig {
2292
2319
  */
2293
2320
  types?: JestFnType[];
2294
2321
  }
2322
+ interface PreferLowercaseTitleConfig {
2323
+ /**
2324
+ * This array option allows specifying prefixes, which contain capitals that titles
2325
+ * can start with. This can be useful when writing tests for API endpoints, where
2326
+ * you'd like to prefix with the HTTP method.
2327
+ * By default, nothing is allowed (the equivalent of `{ "allowedPrefixes": [] }`).
2328
+ *
2329
+ * Example of **correct** code for the `{ "allowedPrefixes": ["GET"] }` option:
2330
+ * ```js
2331
+ * /* jest/prefer-lowercase-title: ["error", { "allowedPrefixes": ["GET"] }] * /
2332
+ * describe('GET /live');
2333
+ * ```
2334
+ */
2335
+ allowedPrefixes?: string[];
2336
+ /**
2337
+ * This array option controls which Jest or Vitest functions are checked by this rule. There
2338
+ * are four possible values:
2339
+ * - `"describe"`
2340
+ * - `"test"`
2341
+ * - `"it"`
2342
+ * - `"bench"`
2343
+ *
2344
+ * By default, none of these options are enabled (the equivalent of
2345
+ * `{ "ignore": [] }`).
2346
+ *
2347
+ * Example of **correct** code for the `{ "ignore": ["describe"] }` option:
2348
+ * ```js
2349
+ * /* jest/prefer-lowercase-title: ["error", { "ignore": ["describe"] }] * /
2350
+ * describe('Uppercase description');
2351
+ * ```
2352
+ *
2353
+ * Example of **correct** code for the `{ "ignore": ["test"] }` option:
2354
+ * ```js
2355
+ * /* jest/prefer-lowercase-title: ["error", { "ignore": ["test"] }] * /
2356
+ * test('Uppercase description');
2357
+ * ```
2358
+ *
2359
+ * Example of **correct** code for the `{ "ignore": ["it"] }` option:
2360
+ * ```js
2361
+ * /* jest/prefer-lowercase-title: ["error", { "ignore": ["it"] }] * /
2362
+ * it('Uppercase description');
2363
+ * ```
2364
+ */
2365
+ ignore?: string[];
2366
+ /**
2367
+ * This option can be set to allow only the top-level `describe` blocks to have a
2368
+ * title starting with an upper-case letter.
2369
+ *
2370
+ * Example of **correct** code for the `{ "ignoreTopLevelDescribe": true }` option:
2371
+ * ```js
2372
+ * /* jest/prefer-lowercase-title: ["error", { "ignoreTopLevelDescribe": true }] * /
2373
+ * describe('MyClass', () => {
2374
+ * describe('#myMethod', () => {
2375
+ * it('does things', () => {
2376
+ * //
2377
+ * });
2378
+ * });
2379
+ * });
2380
+ * ```
2381
+ */
2382
+ ignoreTopLevelDescribe?: boolean;
2383
+ /**
2384
+ * This option can be set to only validate that the first character of a test name is lowercased.
2385
+ *
2386
+ * Example of **correct** code for the `{ "lowercaseFirstCharacterOnly": true }` option:
2387
+ * ```js
2388
+ * /* vitest/prefer-lowercase-title: ["error", { "lowercaseFirstCharacterOnly": true }] * /
2389
+ * describe('myClass', () => {
2390
+ * describe('myMethod', () => {
2391
+ * it('does things', () => {
2392
+ * //
2393
+ * });
2394
+ * });
2395
+ * });
2396
+ * ```
2397
+ *
2398
+ * Example of **incorrect** code for the `{ "lowercaseFirstCharacterOnly": true }` option:
2399
+ * ```js
2400
+ * /* vitest/prefer-lowercase-title: ["error", { "lowercaseFirstCharacterOnly": true }] * /
2401
+ * describe('MyClass', () => {
2402
+ * describe('MyMethod', () => {
2403
+ * it('does things', () => {
2404
+ * //
2405
+ * });
2406
+ * });
2407
+ * });
2408
+ * ```
2409
+ */
2410
+ lowercaseFirstCharacterOnly?: boolean;
2411
+ }
2295
2412
  interface RequireHookConfig {
2296
2413
  /**
2297
2414
  * An array of function names that are allowed to be called outside of hooks.
@@ -3375,6 +3492,38 @@ interface RestrictDefaultExports {
3375
3492
  */
3376
3493
  namespaceFrom?: boolean;
3377
3494
  }
3495
+ /**
3496
+ * A restricted global with an optional custom message.
3497
+ */
3498
+ interface RestrictedGlobal {
3499
+ /**
3500
+ * A custom message shown when the restricted global is used.
3501
+ */
3502
+ message?: string;
3503
+ /**
3504
+ * The name of the restricted global.
3505
+ */
3506
+ name: string;
3507
+ }
3508
+ /**
3509
+ * Object form of the configuration, which additionally allows detecting
3510
+ * restricted globals accessed via global objects.
3511
+ */
3512
+ interface NoRestrictedGlobalsObjectConfig {
3513
+ /**
3514
+ * Whether to also detect restricted globals accessed via global objects. Default is `false`.
3515
+ */
3516
+ checkGlobalObject?: boolean;
3517
+ /**
3518
+ * Additional global object names to check when `checkGlobalObject` is enabled.
3519
+ * By default, the rule checks these global objects: `globalThis`, `self`, and `window`.
3520
+ */
3521
+ globalObjects?: string[];
3522
+ /**
3523
+ * The restricted globals, as names or `{ "name", "message" }` objects.
3524
+ */
3525
+ globals: GlobalNameOrObject[];
3526
+ }
3378
3527
  interface RestrictedPath {
3379
3528
  allowImportNames?: string[];
3380
3529
  allowTypeImports?: boolean;
@@ -3918,6 +4067,12 @@ interface NoWarningCommentsConfigJson {
3918
4067
  location?: Location;
3919
4068
  terms?: string[];
3920
4069
  }
4070
+ interface ExportsStyleOptions {
4071
+ /**
4072
+ * If this option is set to `true`, `module.exports = exports = obj` are allowed.
4073
+ */
4074
+ allowBatchAssign?: boolean;
4075
+ }
3921
4076
  interface NoMixedRequiresOptions {
3922
4077
  allowCall?: boolean;
3923
4078
  grouping?: boolean;
@@ -3938,6 +4093,14 @@ interface NoSyncConfig {
3938
4093
  */
3939
4094
  ignores?: string[];
3940
4095
  }
4096
+ interface NoTopLevelAwaitConfig {
4097
+ /**
4098
+ * If `true`, top-level `await` is allowed in files that start with a
4099
+ * hashbang (`#!`), which marks them as executable scripts rather than
4100
+ * importable modules.
4101
+ */
4102
+ ignoreBin?: boolean;
4103
+ }
3941
4104
  interface ObjectShorthandOptions {
3942
4105
  avoidExplicitReturnArrows?: boolean;
3943
4106
  avoidQuotes?: boolean;
@@ -4040,7 +4203,8 @@ interface PreferDestructuringAssignmentConfig {
4040
4203
  AssignmentExpression?: PreferDestructuringTargetOption;
4041
4204
  VariableDeclarator?: PreferDestructuringTargetOption;
4042
4205
  }
4043
- interface PreferDestructuringRenamedPropertiesConfig {
4206
+ interface PreferDestructuringEnforcementConfig {
4207
+ enforceForDeclarationWithTypeAnnotation?: boolean;
4044
4208
  enforceForRenamedProperties?: boolean;
4045
4209
  }
4046
4210
  interface PreferPromiseRejectErrors {
@@ -4406,6 +4570,10 @@ interface ForbidElementsConfig {
4406
4570
  */
4407
4571
  forbid?: ForbidItem2[];
4408
4572
  }
4573
+ interface FunctionComponentDefinitionConfig {
4574
+ namedComponents?: NamedComponents;
4575
+ unnamedComponents?: UnnamedComponents;
4576
+ }
4409
4577
  interface HookUseStateConfig {
4410
4578
  /**
4411
4579
  * When true the rule will ignore the name of the destructured value.
@@ -6721,6 +6889,11 @@ interface VitestPluginSettings {
6721
6889
  type Oxlintrc = Omit<Oxlintrc$1, "$schema" | "extends">;
6722
6890
  type ExternalPluginsConfig = Exclude<Oxlintrc["jsPlugins"], undefined | null>;
6723
6891
  interface OxlintConfig extends Oxlintrc {
6892
+ /**
6893
+ * Configuration objects to extend.
6894
+ *
6895
+ * Import configurations and pass them directly instead of using file paths.
6896
+ */
6724
6897
  extends?: OxlintConfig[];
6725
6898
  }
6726
6899
  /**
@@ -6729,6 +6902,6 @@ interface OxlintConfig extends Oxlintrc {
6729
6902
  * @param config - Oxlint configuration
6730
6903
  * @returns Config unchanged
6731
6904
  */
6732
- declare function defineConfig<T extends OxlintConfig>(config: T): T;
6905
+ declare function defineConfig<T extends OxlintConfig>(config: T & OxlintConfig): T;
6733
6906
  //#endregion
6734
6907
  export { type AllowWarnDeny, type DummyRule, type DummyRuleMap, type ExternalPluginEntry, type ExternalPluginsConfig, type OxlintConfig, type OxlintEnv, type OxlintGlobals, type OxlintOverride, type RuleCategories, defineConfig };