oxlint 1.60.0 → 1.61.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.
@@ -139,6 +139,9 @@
139
139
  },
140
140
  "vitest": {
141
141
  "typecheck": false
142
+ },
143
+ "jest": {
144
+ "version": null
142
145
  }
143
146
  },
144
147
  "allOf": [
@@ -376,6 +379,21 @@
376
379
  },
377
380
  "markdownDescription": "Configure JSX A11y plugin rules.\n\nSee\n[eslint-plugin-jsx-a11y](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y#configurations)'s\nconfiguration for a full reference."
378
381
  },
382
+ "JestPluginSettings": {
383
+ "description": "Configure Jest plugin rules.\n\nSee [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest)'s\nconfiguration for a full reference.",
384
+ "type": "object",
385
+ "properties": {
386
+ "version": {
387
+ "description": "Jest version — accepts a number (`29`) or a semver string (`\"29.1.0\"` or `\"v29.1.0\"`),\nstoring only the major version.\n::: warning\nUsing this config will override the `no-deprecated-functions`' config set.",
388
+ "default": null,
389
+ "type": "integer",
390
+ "format": "uint",
391
+ "minimum": 0.0,
392
+ "markdownDescription": "Jest version — accepts a number (`29`) or a semver string (`\"29.1.0\"` or `\"v29.1.0\"`),\nstoring only the major version.\n::: warning\nUsing this config will override the `no-deprecated-functions`' config set."
393
+ }
394
+ },
395
+ "markdownDescription": "Configure Jest plugin rules.\n\nSee [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest)'s\nconfiguration for a full reference."
396
+ },
379
397
  "LintPluginOptionsSchema": {
380
398
  "type": "string",
381
399
  "enum": [
@@ -610,6 +628,16 @@
610
628
  "description": "Configure the behavior of linter plugins.\n\nHere's an example if you're using Next.js in a monorepo:\n\n```json\n{\n\"settings\": {\n\"next\": {\n\"rootDir\": \"apps/dashboard/\"\n},\n\"react\": {\n\"linkComponents\": [\n{ \"name\": \"Link\", \"linkAttribute\": \"to\" }\n]\n},\n\"jsx-a11y\": {\n\"components\": {\n\"Link\": \"a\",\n\"Button\": \"button\"\n}\n}\n}\n}\n```",
611
629
  "type": "object",
612
630
  "properties": {
631
+ "jest": {
632
+ "default": {
633
+ "version": null
634
+ },
635
+ "allOf": [
636
+ {
637
+ "$ref": "#/definitions/JestPluginSettings"
638
+ }
639
+ ]
640
+ },
613
641
  "jsdoc": {
614
642
  "default": {
615
643
  "ignorePrivate": false,
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.60.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.60.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
41
+ if (bindingPackageVersion !== "1.61.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.61.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.60.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.60.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
54
+ if (bindingPackageVersion !== "1.61.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.61.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.60.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.60.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
68
+ if (bindingPackageVersion !== "1.61.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.61.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.60.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.60.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
81
+ if (bindingPackageVersion !== "1.61.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.61.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.60.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.60.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
95
+ if (bindingPackageVersion !== "1.61.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.61.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.60.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.60.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
108
+ if (bindingPackageVersion !== "1.61.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.61.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.60.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.60.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
122
+ if (bindingPackageVersion !== "1.61.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.61.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.60.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.60.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
135
+ if (bindingPackageVersion !== "1.61.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.61.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.60.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.60.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
148
+ if (bindingPackageVersion !== "1.61.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.61.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.60.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.60.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
162
+ if (bindingPackageVersion !== "1.61.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.61.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.60.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.60.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
175
+ if (bindingPackageVersion !== "1.61.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.61.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.60.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.60.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
189
+ if (bindingPackageVersion !== "1.61.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.61.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.60.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.60.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
202
+ if (bindingPackageVersion !== "1.61.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.61.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.60.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.60.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
216
+ if (bindingPackageVersion !== "1.61.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.61.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.60.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.60.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
229
+ if (bindingPackageVersion !== "1.61.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.61.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.60.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.60.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
243
+ if (bindingPackageVersion !== "1.61.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.61.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.60.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.60.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
256
+ if (bindingPackageVersion !== "1.61.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.61.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.60.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.60.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
270
+ if (bindingPackageVersion !== "1.61.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.61.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.60.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.60.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
283
+ if (bindingPackageVersion !== "1.61.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.61.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.60.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.60.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
297
+ if (bindingPackageVersion !== "1.61.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.61.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.60.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.60.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
310
+ if (bindingPackageVersion !== "1.61.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.61.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.60.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.60.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
324
+ if (bindingPackageVersion !== "1.61.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.61.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.60.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.60.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
337
+ if (bindingPackageVersion !== "1.61.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.61.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.60.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.60.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
351
+ if (bindingPackageVersion !== "1.61.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.61.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.60.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.60.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
364
+ if (bindingPackageVersion !== "1.61.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.61.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.60.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.60.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
377
+ if (bindingPackageVersion !== "1.61.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.61.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/lint.js CHANGED
@@ -4,7 +4,7 @@ import { t as getErrorMessage } from "./utils.js";
4
4
  import { createRequire } from "node:module";
5
5
  import "node:assert";
6
6
  //#region \0rolldown/runtime.js
7
- var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports), __copyProps = (to, from, except, desc) => {
7
+ var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports), __copyProps = (to, from, except, desc) => {
8
8
  if (from && typeof from == "object" || typeof from == "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) key = keys[i], !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
9
9
  get: ((k) => from[k]).bind(null, key),
10
10
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
@@ -12017,7 +12017,7 @@ var require_eslint_visitor_keys = /* @__PURE__ */ __commonJSMin(((exports) => {
12017
12017
  let scopeManager = new ScopeManager_1.ScopeManager(options);
12018
12018
  return new referencer_1.Referencer(options, scopeManager).visit(tree), scopeManager;
12019
12019
  }
12020
- })), require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
12020
+ })), import_dist = (/* @__PURE__ */ __commonJSMin(((exports) => {
12021
12021
  var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
12022
12022
  k2 === void 0 && (k2 = k);
12023
12023
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -12068,9 +12068,7 @@ var require_eslint_visitor_keys = /* @__PURE__ */ __commonJSMin(((exports) => {
12068
12068
  return ScopeManager_1.ScopeManager;
12069
12069
  }
12070
12070
  }), __exportStar(require_variable(), exports);
12071
- }));
12072
- //#endregion
12073
- //#region src-js/plugins/globals.ts
12071
+ })))();
12074
12072
  let globalsJSON = null, globals = null, envs = null;
12075
12073
  /**
12076
12074
  * Updates the globals for the file.
@@ -12636,7 +12634,6 @@ const ENVS = new Map([
12636
12634
  ]);
12637
12635
  //#endregion
12638
12636
  //#region src-js/plugins/scope.ts
12639
- var import_dist = require_dist();
12640
12637
  let tsScopeManager = null;
12641
12638
  const analyzeOptions = {
12642
12639
  childVisitorKeys: void 0,
@@ -13993,7 +13990,7 @@ function resetSettings() {
13993
13990
  }
13994
13991
  //#endregion
13995
13992
  //#region package.json
13996
- var version = "1.60.0";
13993
+ var version = "1.61.0";
13997
13994
  //#endregion
13998
13995
  //#region src-js/plugins/context.ts
13999
13996
  let filePath = null, cwd = null;
@@ -16699,7 +16696,7 @@ var require_uri_all = /* @__PURE__ */ __commonJSMin(((exports, module) => {
16699
16696
  } },
16700
16697
  additionalProperties: !1
16701
16698
  };
16702
- })), require_ajv = /* @__PURE__ */ __commonJSMin(((exports, module) => {
16699
+ })), import_ajv = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
16703
16700
  var compileSchema = require_compile(), resolve = require_resolve(), Cache = require_cache(), SchemaObject = require_schema_obj(), stableStringify = require_fast_json_stable_stringify(), formats = require_formats(), rules = require_rules(), $dataMetaSchema = require_data$1(), util = require_util();
16704
16701
  module.exports = Ajv, Ajv.prototype.validate = validate, Ajv.prototype.compile = compile, Ajv.prototype.addSchema = addSchema, Ajv.prototype.addMetaSchema = addMetaSchema, Ajv.prototype.validateSchema = validateSchema, Ajv.prototype.getSchema = getSchema, Ajv.prototype.removeSchema = removeSchema, Ajv.prototype.addFormat = addFormat, Ajv.prototype.errorsText = errorsText, Ajv.prototype._addSchema = _addSchema, Ajv.prototype._compile = _compile, Ajv.prototype.compileAsync = require_async();
16705
16702
  var customKeyword = require_keyword();
@@ -16990,7 +16987,7 @@ var require_uri_all = /* @__PURE__ */ __commonJSMin(((exports, module) => {
16990
16987
  }
16991
16988
  }
16992
16989
  function noop() {}
16993
- })), id = "http://json-schema.org/draft-04/schema#", json_schema_draft_04_default = {
16990
+ })))(), 1), id = "http://json-schema.org/draft-04/schema#", json_schema_draft_04_default = {
16994
16991
  id,
16995
16992
  $schema: "http://json-schema.org/draft-04/schema#",
16996
16993
  description: "Core schema meta-schema",
@@ -17121,7 +17118,6 @@ function switchWorkspace(workspaceUri) {
17121
17118
  }
17122
17119
  //#endregion
17123
17120
  //#region src-js/plugins/options.ts
17124
- var import_ajv = /* @__PURE__ */ __toESM(require_ajv(), 1);
17125
17121
  const DEFAULT_OPTIONS = ObjectFreeze([]);
17126
17122
  let allOptions = null;
17127
17123
  /**
@@ -17867,7 +17863,7 @@ var require_assert = /* @__PURE__ */ __commonJSMin(((exports, module) => {
17867
17863
  "GITHUB_ACTIONS",
17868
17864
  "BUILDKITE"
17869
17865
  ].some((sign) => sign in env) || env.CI_NAME === "codeship" ? 1 : min;
17870
- if ("TEAMCITY_VERSION" in env) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
17866
+ if ("TEAMCITY_VERSION" in env) return +!!/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION);
17871
17867
  if (env.COLORTERM === "truecolor") return 3;
17872
17868
  if ("TERM_PROGRAM" in env) {
17873
17869
  let version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
@@ -18902,6 +18898,7 @@ var require_assert = /* @__PURE__ */ __commonJSMin(((exports, module) => {
18902
18898
  poppedChoiceContext.processed ? (poppedChoiceContext.falseForkContext.clear(), poppedChoiceContext.falseForkContext.add(head)) : (poppedChoiceContext.trueForkContext.clear(), poppedChoiceContext.trueForkContext.add(head));
18903
18899
  break;
18904
18900
  case "loop": return poppedChoiceContext;
18901
+ /* c8 ignore next */
18905
18902
  default: throw Error("unreachable");
18906
18903
  }
18907
18904
  let combinedForkContext = poppedChoiceContext.trueForkContext;
@@ -19141,6 +19138,7 @@ var require_assert = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19141
19138
  case "ForOfStatement":
19142
19139
  this.loopContext = new ForOfLoopContext(this.loopContext, label, breakContext);
19143
19140
  break;
19141
+ /* c8 ignore next */
19144
19142
  default: throw Error(`unknown type: "${type}"`);
19145
19143
  }
19146
19144
  }
@@ -19169,6 +19167,7 @@ var require_assert = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19169
19167
  case "ForOfStatement":
19170
19168
  brokenForkContext.add(forkContext.head), makeLooped(this, forkContext.head, context.leftSegments);
19171
19169
  break;
19170
+ /* c8 ignore next */
19172
19171
  default: throw Error("unreachable");
19173
19172
  }
19174
19173
  brokenForkContext.empty ? forkContext.replaceHead(forkContext.makeUnreachable(-1, -1)) : forkContext.replaceHead(brokenForkContext.makeNext(0, -1));
@@ -19513,7 +19512,7 @@ var require_assert = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19513
19512
  }
19514
19513
  };
19515
19514
  module.exports = CodePath;
19516
- })), require_code_path_analyzer = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19515
+ })), import_code_path_analyzer = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
19517
19516
  let assert = require_assert(), { breakableTypePattern } = require_ast_utils(), CodePath = require_code_path(), CodePathSegment = require_code_path_segment(), IdGenerator = require_id_generator(), debug = require_debug_helpers();
19518
19517
  /**
19519
19518
  * Checks whether or not a given node is a `case` node (not `default` node).
@@ -19937,9 +19936,7 @@ var require_assert = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19937
19936
  }
19938
19937
  };
19939
19938
  module.exports = CodePathAnalyzer;
19940
- }));
19941
- //#endregion
19942
- //#region src-js/generated/type_ids.ts
19939
+ })))(), 1);
19943
19940
  /** Mapping from node type name to node type ID */
19944
19941
  const NODE_TYPE_IDS_MAP = new Map([
19945
19942
  ["DebuggerStatement", 0],
@@ -21410,7 +21407,6 @@ function walkTSUnionType(node, visitors) {
21410
21407
  }
21411
21408
  //#endregion
21412
21409
  //#region src-js/plugins/cfg.ts
21413
- var import_code_path_analyzer = /* @__PURE__ */ __toESM(require_code_path_analyzer(), 1);
21414
21410
  /**
21415
21411
  * Offset added to type IDs for exit visits to distinguish them from enter visits.
21416
21412
  * Using 256 as it's a power of 2 and larger than the maximum type ID (171).
@@ -3847,11 +3847,10 @@ interface RuleMeta {
3847
3847
  */
3848
3848
  deprecated?: boolean | RuleDeprecatedInfo;
3849
3849
  /**
3850
- * Information about available replacements for the rule.
3851
- * This may be an empty array to explicitly state there is no replacement.
3850
+ * Name of the rule(s) this rule was replaced by, if it was deprecated.
3852
3851
  * @deprecated Use `deprecated.replacedBy` instead.
3853
3852
  */
3854
- replacedBy?: RuleReplacedByInfo[];
3853
+ replacedBy?: readonly string[];
3855
3854
  }
3856
3855
  /**
3857
3856
  * Rule documentation.
@@ -432,7 +432,7 @@ function assertMessageIdIsCorrect(reportedMessageId, reportedMessage, messageId,
432
432
  * @throws {AssertionError} If diagnostic's location does not match expected location
433
433
  */
434
434
  function assertInvalidTestCaseLocationIsCorrect(diagnostic, error, test) {
435
- let actualLocation = {}, expectedLocation = {}, columnOffset = test.eslintCompat === !0 ? 1 : 0;
435
+ let actualLocation = {}, expectedLocation = {}, columnOffset = +(test.eslintCompat === !0);
436
436
  ObjectHasOwn(error, "line") && (actualLocation.line = diagnostic.line, expectedLocation.line = error.line), ObjectHasOwn(error, "column") && (actualLocation.column = diagnostic.column + columnOffset, expectedLocation.column = error.column);
437
437
  let canVoidEndLocation = test.eslintCompat === !0 && diagnostic.endLine === diagnostic.line && diagnostic.endColumn === diagnostic.column;
438
438
  ObjectHasOwn(error, "endLine") && (error.endLine === void 0 && canVoidEndLocation ? actualLocation.endLine = void 0 : actualLocation.endLine = diagnostic.endLine, expectedLocation.endLine = error.endLine), ObjectHasOwn(error, "endColumn") && (error.endColumn === void 0 && canVoidEndLocation ? actualLocation.endColumn = void 0 : actualLocation.endColumn = diagnostic.endColumn + columnOffset, expectedLocation.endColumn = error.endColumn), ObjectKeys(expectedLocation).length > 0 && assert.deepStrictEqual(actualLocation, expectedLocation, "Actual error location does not match expected error location.");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oxlint",
3
- "version": "1.60.0",
3
+ "version": "1.61.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.60.0",
87
- "@oxlint/binding-android-arm64": "1.60.0",
88
- "@oxlint/binding-win32-arm64-msvc": "1.60.0",
89
- "@oxlint/binding-linux-arm64-gnu": "1.60.0",
90
- "@oxlint/binding-linux-arm64-musl": "1.60.0",
91
- "@oxlint/binding-openharmony-arm64": "1.60.0",
92
- "@oxlint/binding-android-arm-eabi": "1.60.0",
93
- "@oxlint/binding-linux-arm-gnueabihf": "1.60.0",
94
- "@oxlint/binding-linux-arm-musleabihf": "1.60.0",
95
- "@oxlint/binding-win32-ia32-msvc": "1.60.0",
96
- "@oxlint/binding-linux-ppc64-gnu": "1.60.0",
97
- "@oxlint/binding-linux-riscv64-gnu": "1.60.0",
98
- "@oxlint/binding-linux-riscv64-musl": "1.60.0",
99
- "@oxlint/binding-linux-s390x-gnu": "1.60.0",
100
- "@oxlint/binding-darwin-x64": "1.60.0",
101
- "@oxlint/binding-win32-x64-msvc": "1.60.0",
102
- "@oxlint/binding-freebsd-x64": "1.60.0",
103
- "@oxlint/binding-linux-x64-gnu": "1.60.0",
104
- "@oxlint/binding-linux-x64-musl": "1.60.0"
86
+ "@oxlint/binding-darwin-arm64": "1.61.0",
87
+ "@oxlint/binding-android-arm64": "1.61.0",
88
+ "@oxlint/binding-win32-arm64-msvc": "1.61.0",
89
+ "@oxlint/binding-linux-arm64-gnu": "1.61.0",
90
+ "@oxlint/binding-linux-arm64-musl": "1.61.0",
91
+ "@oxlint/binding-openharmony-arm64": "1.61.0",
92
+ "@oxlint/binding-android-arm-eabi": "1.61.0",
93
+ "@oxlint/binding-linux-arm-gnueabihf": "1.61.0",
94
+ "@oxlint/binding-linux-arm-musleabihf": "1.61.0",
95
+ "@oxlint/binding-win32-ia32-msvc": "1.61.0",
96
+ "@oxlint/binding-linux-ppc64-gnu": "1.61.0",
97
+ "@oxlint/binding-linux-riscv64-gnu": "1.61.0",
98
+ "@oxlint/binding-linux-riscv64-musl": "1.61.0",
99
+ "@oxlint/binding-linux-s390x-gnu": "1.61.0",
100
+ "@oxlint/binding-darwin-x64": "1.61.0",
101
+ "@oxlint/binding-win32-x64-msvc": "1.61.0",
102
+ "@oxlint/binding-freebsd-x64": "1.61.0",
103
+ "@oxlint/binding-linux-x64-gnu": "1.61.0",
104
+ "@oxlint/binding-linux-x64-musl": "1.61.0"
105
105
  }
106
106
  }