@depup/oxlint 1.74.0-depup.0 → 1.75.0-depup.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -13,8 +13,8 @@ npm install @depup/oxlint
13
13
 
14
14
  | Field | Value |
15
15
  |-------|-------|
16
- | Original | [oxlint](https://www.npmjs.com/package/oxlint) @ 1.74.0 |
17
- | Processed | 2026-07-21 |
16
+ | Original | [oxlint](https://www.npmjs.com/package/oxlint) @ 1.75.0 |
17
+ | Processed | 2026-07-22 |
18
18
  | Smoke test | passed |
19
19
  | Deps updated | 0 |
20
20
 
package/changes.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "bumped": {},
3
- "timestamp": "2026-07-21T16:18:50.714Z",
3
+ "timestamp": "2026-07-22T00:38:01.079Z",
4
4
  "totalUpdated": 0
5
5
  }
@@ -5726,6 +5726,26 @@
5726
5726
  }
5727
5727
  ]
5728
5728
  },
5729
+ "node/no-top-level-await": {
5730
+ "anyOf": [
5731
+ {
5732
+ "$ref": "#/definitions/RuleNoConfig"
5733
+ },
5734
+ {
5735
+ "type": "array",
5736
+ "items": [
5737
+ {
5738
+ "$ref": "#/definitions/AllowWarnDeny"
5739
+ },
5740
+ {
5741
+ "$ref": "#/definitions/NoTopLevelAwaitConfig"
5742
+ }
5743
+ ],
5744
+ "maxItems": 2,
5745
+ "minItems": 2
5746
+ }
5747
+ ]
5748
+ },
5729
5749
  "object-shorthand": {
5730
5750
  "anyOf": [
5731
5751
  {
@@ -5987,7 +6007,7 @@
5987
6007
  "$ref": "#/definitions/PreferDestructuringOption"
5988
6008
  },
5989
6009
  {
5990
- "$ref": "#/definitions/PreferDestructuringRenamedPropertiesConfig"
6010
+ "$ref": "#/definitions/PreferDestructuringEnforcementConfig"
5991
6011
  }
5992
6012
  ],
5993
6013
  "maxItems": 3,
@@ -6506,6 +6526,26 @@
6506
6526
  "react/forward-ref-uses-ref": {
6507
6527
  "$ref": "#/definitions/RuleNoConfig"
6508
6528
  },
6529
+ "react/function-component-definition": {
6530
+ "anyOf": [
6531
+ {
6532
+ "$ref": "#/definitions/RuleNoConfig"
6533
+ },
6534
+ {
6535
+ "type": "array",
6536
+ "items": [
6537
+ {
6538
+ "$ref": "#/definitions/AllowWarnDeny"
6539
+ },
6540
+ {
6541
+ "$ref": "#/definitions/FunctionComponentDefinition"
6542
+ }
6543
+ ],
6544
+ "maxItems": 2,
6545
+ "minItems": 2
6546
+ }
6547
+ ]
6548
+ },
6509
6549
  "react/hook-use-state": {
6510
6550
  "anyOf": [
6511
6551
  {
@@ -9777,6 +9817,9 @@
9777
9817
  "vitest/padding-around-after-all-blocks": {
9778
9818
  "$ref": "#/definitions/RuleNoConfig"
9779
9819
  },
9820
+ "vitest/padding-around-test-blocks": {
9821
+ "$ref": "#/definitions/RuleNoConfig"
9822
+ },
9780
9823
  "vitest/prefer-called-exactly-once-with": {
9781
9824
  "$ref": "#/definitions/RuleNoConfig"
9782
9825
  },
@@ -11210,6 +11253,31 @@
11210
11253
  },
11211
11254
  "additionalProperties": false
11212
11255
  },
11256
+ "FunctionComponentDefinition": {
11257
+ "$ref": "#/definitions/FunctionComponentDefinitionConfig"
11258
+ },
11259
+ "FunctionComponentDefinitionConfig": {
11260
+ "type": "object",
11261
+ "properties": {
11262
+ "namedComponents": {
11263
+ "default": "function-declaration",
11264
+ "allOf": [
11265
+ {
11266
+ "$ref": "#/definitions/NamedComponents"
11267
+ }
11268
+ ]
11269
+ },
11270
+ "unnamedComponents": {
11271
+ "default": "function-expression",
11272
+ "allOf": [
11273
+ {
11274
+ "$ref": "#/definitions/UnnamedComponents"
11275
+ }
11276
+ ]
11277
+ }
11278
+ },
11279
+ "additionalProperties": false
11280
+ },
11213
11281
  "GetterReturn": {
11214
11282
  "type": "object",
11215
11283
  "properties": {
@@ -12903,6 +12971,14 @@
12903
12971
  "prefer-inline"
12904
12972
  ],
12905
12973
  "markdownDescription": "Prefer `import { type Foo } from 'foo'` for type imports."
12974
+ },
12975
+ {
12976
+ "description": "Prefer `import type { Foo } from 'foo'` when all named imports are types, but allow\n`import { type Foo, bar } from 'foo'` when value imports are present.",
12977
+ "type": "string",
12978
+ "enum": [
12979
+ "prefer-top-level-if-only-type-imports"
12980
+ ],
12981
+ "markdownDescription": "Prefer `import type { Foo } from 'foo'` when all named imports are types, but allow\n`import { type Foo, bar } from 'foo'` when value imports are present."
12906
12982
  }
12907
12983
  ]
12908
12984
  },
@@ -13033,6 +13109,27 @@
13033
13109
  ],
13034
13110
  "markdownDescription": "Name specifier that can be a single string or array of strings"
13035
13111
  },
13112
+ "NamedComponentStyle": {
13113
+ "type": "string",
13114
+ "enum": [
13115
+ "function-declaration",
13116
+ "arrow-function",
13117
+ "function-expression"
13118
+ ]
13119
+ },
13120
+ "NamedComponents": {
13121
+ "anyOf": [
13122
+ {
13123
+ "$ref": "#/definitions/NamedComponentStyle"
13124
+ },
13125
+ {
13126
+ "type": "array",
13127
+ "items": {
13128
+ "$ref": "#/definitions/NamedComponentStyle"
13129
+ }
13130
+ }
13131
+ ]
13132
+ },
13036
13133
  "NamedExports": {
13037
13134
  "type": "string",
13038
13135
  "enum": [
@@ -15276,6 +15373,18 @@
15276
15373
  },
15277
15374
  "additionalProperties": false
15278
15375
  },
15376
+ "NoTopLevelAwaitConfig": {
15377
+ "type": "object",
15378
+ "properties": {
15379
+ "ignoreBin": {
15380
+ "description": "If `true`, top-level `await` is allowed in files that start with a\nhashbang (`#!`), which marks them as executable scripts rather than\nimportable modules.",
15381
+ "default": false,
15382
+ "type": "boolean",
15383
+ "markdownDescription": "If `true`, top-level `await` is allowed in files that start with a\nhashbang (`#!`), which marks them as executable scripts rather than\nimportable modules."
15384
+ }
15385
+ },
15386
+ "additionalProperties": false
15387
+ },
15279
15388
  "NoTypeofUndefined": {
15280
15389
  "type": "object",
15281
15390
  "properties": {
@@ -16939,12 +17048,26 @@
16939
17048
  "$ref": "#/definitions/PreferDestructuringOption"
16940
17049
  },
16941
17050
  {
16942
- "$ref": "#/definitions/PreferDestructuringRenamedPropertiesConfig"
17051
+ "$ref": "#/definitions/PreferDestructuringEnforcementConfig"
16943
17052
  }
16944
17053
  ],
16945
17054
  "maxItems": 2,
16946
17055
  "minItems": 2
16947
17056
  },
17057
+ "PreferDestructuringEnforcementConfig": {
17058
+ "type": "object",
17059
+ "properties": {
17060
+ "enforceForDeclarationWithTypeAnnotation": {
17061
+ "default": false,
17062
+ "type": "boolean"
17063
+ },
17064
+ "enforceForRenamedProperties": {
17065
+ "default": false,
17066
+ "type": "boolean"
17067
+ }
17068
+ },
17069
+ "additionalProperties": false
17070
+ },
16948
17071
  "PreferDestructuringOption": {
16949
17072
  "anyOf": [
16950
17073
  {
@@ -16955,16 +17078,6 @@
16955
17078
  }
16956
17079
  ]
16957
17080
  },
16958
- "PreferDestructuringRenamedPropertiesConfig": {
16959
- "type": "object",
16960
- "properties": {
16961
- "enforceForRenamedProperties": {
16962
- "default": false,
16963
- "type": "boolean"
16964
- }
16965
- },
16966
- "additionalProperties": false
16967
- },
16968
17081
  "PreferDestructuringTargetOption": {
16969
17082
  "type": "object",
16970
17083
  "properties": {
@@ -18806,6 +18919,26 @@
18806
18919
  },
18807
18920
  "additionalProperties": false
18808
18921
  },
18922
+ "UnnamedComponentStyle": {
18923
+ "type": "string",
18924
+ "enum": [
18925
+ "arrow-function",
18926
+ "function-expression"
18927
+ ]
18928
+ },
18929
+ "UnnamedComponents": {
18930
+ "anyOf": [
18931
+ {
18932
+ "$ref": "#/definitions/UnnamedComponentStyle"
18933
+ },
18934
+ {
18935
+ "type": "array",
18936
+ "items": {
18937
+ "$ref": "#/definitions/UnnamedComponentStyle"
18938
+ }
18939
+ }
18940
+ ]
18941
+ },
18809
18942
  "UseIsnan": {
18810
18943
  "type": "object",
18811
18944
  "properties": {
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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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.75.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
  */
@@ -180,6 +180,10 @@ type ForbidItem2 = string | {
180
180
  */
181
181
  message?: string;
182
182
  };
183
+ type NamedComponents = NamedComponentStyle | NamedComponentStyle[];
184
+ type NamedComponentStyle = "function-declaration" | "arrow-function" | "function-expression";
185
+ type UnnamedComponents = UnnamedComponentStyle | UnnamedComponentStyle[];
186
+ type UnnamedComponentStyle = "arrow-function" | "function-expression";
183
187
  type EnforceBooleanAttribute = "always" | "never";
184
188
  type JsxCurlyBracePresenceConfig = JsxCurlyBracePresenceMode | JsxCurlyBracePresence;
185
189
  type JsxCurlyBracePresenceMode = "always" | "never" | "ignore";
@@ -1142,6 +1146,7 @@ interface DummyRuleMap {
1142
1146
  "node/no-path-concat"?: RuleNoConfig;
1143
1147
  "node/no-process-env"?: RuleNoConfig | [AllowWarnDeny, NoProcessEnvConfig];
1144
1148
  "node/no-sync"?: RuleNoConfig | [AllowWarnDeny, NoSyncConfig];
1149
+ "node/no-top-level-await"?: RuleNoConfig | [AllowWarnDeny, NoTopLevelAwaitConfig];
1145
1150
  "object-shorthand"?: RuleNoConfig | [AllowWarnDeny, ShorthandType] | [AllowWarnDeny, ShorthandType, ObjectShorthandOptions];
1146
1151
  "operator-assignment"?: RuleNoConfig | [AllowWarnDeny, AlwaysNever];
1147
1152
  "oxc/approx-constant"?: RuleNoConfig;
@@ -1172,7 +1177,7 @@ interface DummyRuleMap {
1172
1177
  "oxc/uninvoked-array-callback"?: RuleNoConfig;
1173
1178
  "prefer-arrow-callback"?: RuleNoConfig | [AllowWarnDeny, PreferArrowCallbackConfig];
1174
1179
  "prefer-const"?: RuleNoConfig | [AllowWarnDeny, PreferConstConfig];
1175
- "prefer-destructuring"?: RuleNoConfig | [AllowWarnDeny, PreferDestructuringOption] | [AllowWarnDeny, PreferDestructuringOption, PreferDestructuringRenamedPropertiesConfig];
1180
+ "prefer-destructuring"?: RuleNoConfig | [AllowWarnDeny, PreferDestructuringOption] | [AllowWarnDeny, PreferDestructuringOption, PreferDestructuringEnforcementConfig];
1176
1181
  "prefer-exponentiation-operator"?: RuleNoConfig;
1177
1182
  "prefer-named-capture-group"?: RuleNoConfig;
1178
1183
  "prefer-numeric-literals"?: RuleNoConfig;
@@ -1213,6 +1218,7 @@ interface DummyRuleMap {
1213
1218
  "react/forbid-dom-props"?: RuleNoConfig | [AllowWarnDeny, ForbidDomPropsConfig];
1214
1219
  "react/forbid-elements"?: RuleNoConfig | [AllowWarnDeny, ForbidElementsConfig];
1215
1220
  "react/forward-ref-uses-ref"?: RuleNoConfig;
1221
+ "react/function-component-definition"?: RuleNoConfig | [AllowWarnDeny, FunctionComponentDefinitionConfig];
1216
1222
  "react/hook-use-state"?: RuleNoConfig | [AllowWarnDeny, HookUseStateConfig];
1217
1223
  "react/iframe-missing-sandbox"?: RuleNoConfig;
1218
1224
  "react/jsx-boolean-value"?: RuleNoConfig | [AllowWarnDeny, EnforceBooleanAttribute] | [AllowWarnDeny, EnforceBooleanAttribute, JsxBooleanValueOptions];
@@ -1557,6 +1563,7 @@ interface DummyRuleMap {
1557
1563
  "vitest/no-test-return-statement"?: RuleNoConfig;
1558
1564
  "vitest/no-unneeded-async-expect-function"?: RuleNoConfig;
1559
1565
  "vitest/padding-around-after-all-blocks"?: RuleNoConfig;
1566
+ "vitest/padding-around-test-blocks"?: RuleNoConfig;
1560
1567
  "vitest/prefer-called-exactly-once-with"?: RuleNoConfig;
1561
1568
  "vitest/prefer-called-once"?: RuleNoConfig;
1562
1569
  "vitest/prefer-called-times"?: RuleNoConfig;
@@ -3938,6 +3945,14 @@ interface NoSyncConfig {
3938
3945
  */
3939
3946
  ignores?: string[];
3940
3947
  }
3948
+ interface NoTopLevelAwaitConfig {
3949
+ /**
3950
+ * If `true`, top-level `await` is allowed in files that start with a
3951
+ * hashbang (`#!`), which marks them as executable scripts rather than
3952
+ * importable modules.
3953
+ */
3954
+ ignoreBin?: boolean;
3955
+ }
3941
3956
  interface ObjectShorthandOptions {
3942
3957
  avoidExplicitReturnArrows?: boolean;
3943
3958
  avoidQuotes?: boolean;
@@ -4040,7 +4055,8 @@ interface PreferDestructuringAssignmentConfig {
4040
4055
  AssignmentExpression?: PreferDestructuringTargetOption;
4041
4056
  VariableDeclarator?: PreferDestructuringTargetOption;
4042
4057
  }
4043
- interface PreferDestructuringRenamedPropertiesConfig {
4058
+ interface PreferDestructuringEnforcementConfig {
4059
+ enforceForDeclarationWithTypeAnnotation?: boolean;
4044
4060
  enforceForRenamedProperties?: boolean;
4045
4061
  }
4046
4062
  interface PreferPromiseRejectErrors {
@@ -4406,6 +4422,10 @@ interface ForbidElementsConfig {
4406
4422
  */
4407
4423
  forbid?: ForbidItem2[];
4408
4424
  }
4425
+ interface FunctionComponentDefinitionConfig {
4426
+ namedComponents?: NamedComponents;
4427
+ unnamedComponents?: UnnamedComponents;
4428
+ }
4409
4429
  interface HookUseStateConfig {
4410
4430
  /**
4411
4431
  * When true the rule will ignore the name of the destructured value.