@depup/oxlint 1.75.0-depup.0 → 1.76.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.75.0 |
17
- | Processed | 2026-07-22 |
16
+ | Original | [oxlint](https://www.npmjs.com/package/oxlint) @ 1.76.0 |
17
+ | Processed | 2026-07-27 |
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-22T00:38:01.079Z",
3
+ "timestamp": "2026-07-27T16:45:59.073Z",
4
4
  "totalUpdated": 0
5
5
  }
@@ -30,12 +30,12 @@
30
30
  "markdownDescription": "Environments enable and disable collections of global variables."
31
31
  },
32
32
  "extends": {
33
- "description": "Paths of configuration files that this configuration file extends (inherits from). The files\nare resolved relative to the location of the configuration file that contains the `extends`\nproperty. The configuration files are merged from the first to the last, with the last file\noverriding the previous ones.",
33
+ "description": "Configurations that this configuration file extends (inherits from).\n\nIn `.oxlintrc.json`, `extends` has type `string[]`. Each string is a path to a configuration\nfile, resolved relative to the location of the configuration file that contains the\n`extends` property.\n\nIn `oxlint.config.ts`, `extends` has type `OxlintConfig[]`. Import each configuration and\npass the configuration object directly:\n\n```ts\nimport { defineConfig } from \"oxlint\";\nimport baseConfig from \"./base-config.ts\";\n\nexport default defineConfig({ extends: [baseConfig] });\n```\n\nConfigurations are merged from the first to the last, with the last configuration\noverriding the previous ones.",
34
34
  "type": "array",
35
35
  "items": {
36
36
  "type": "string"
37
37
  },
38
- "markdownDescription": "Paths of configuration files that this configuration file extends (inherits from). The files\nare resolved relative to the location of the configuration file that contains the `extends`\nproperty. The configuration files are merged from the first to the last, with the last file\noverriding the previous ones."
38
+ "markdownDescription": "Configurations that this configuration file extends (inherits from).\n\nIn `.oxlintrc.json`, `extends` has type `string[]`. Each string is a path to a configuration\nfile, resolved relative to the location of the configuration file that contains the\n`extends` property.\n\nIn `oxlint.config.ts`, `extends` has type `OxlintConfig[]`. Import each configuration and\npass the configuration object directly:\n\n```ts\nimport { defineConfig } from \"oxlint\";\nimport baseConfig from \"./base-config.ts\";\n\nexport default defineConfig({ extends: [baseConfig] });\n```\n\nConfigurations are merged from the first to the last, with the last configuration\noverriding the previous ones."
39
39
  },
40
40
  "globals": {
41
41
  "description": "Enabled or disabled specific global variables.",
@@ -2535,6 +2535,29 @@
2535
2535
  "guard-for-in": {
2536
2536
  "$ref": "#/definitions/RuleNoConfig"
2537
2537
  },
2538
+ "id-denylist": {
2539
+ "anyOf": [
2540
+ {
2541
+ "$ref": "#/definitions/RuleNoConfig"
2542
+ },
2543
+ {
2544
+ "type": "array",
2545
+ "items": [
2546
+ {
2547
+ "$ref": "#/definitions/AllowWarnDeny"
2548
+ },
2549
+ {
2550
+ "type": "string"
2551
+ }
2552
+ ],
2553
+ "additionalItems": {
2554
+ "type": "string"
2555
+ },
2556
+ "minItems": 2,
2557
+ "uniqueItems": true
2558
+ }
2559
+ ]
2560
+ },
2538
2561
  "id-length": {
2539
2562
  "anyOf": [
2540
2563
  {
@@ -3350,7 +3373,24 @@
3350
3373
  "$ref": "#/definitions/RuleNoConfig"
3351
3374
  },
3352
3375
  "jest/prefer-lowercase-title": {
3353
- "$ref": "#/definitions/DummyRule"
3376
+ "anyOf": [
3377
+ {
3378
+ "$ref": "#/definitions/RuleNoConfig"
3379
+ },
3380
+ {
3381
+ "type": "array",
3382
+ "items": [
3383
+ {
3384
+ "$ref": "#/definitions/AllowWarnDeny"
3385
+ },
3386
+ {
3387
+ "$ref": "#/definitions/PreferLowercaseTitleConfig"
3388
+ }
3389
+ ],
3390
+ "maxItems": 2,
3391
+ "minItems": 2
3392
+ }
3393
+ ]
3354
3394
  },
3355
3395
  "jest/prefer-mock-promise-shorthand": {
3356
3396
  "$ref": "#/definitions/RuleNoConfig"
@@ -5115,7 +5155,25 @@
5115
5155
  ]
5116
5156
  },
5117
5157
  "no-restricted-globals": {
5118
- "$ref": "#/definitions/DummyRule"
5158
+ "anyOf": [
5159
+ {
5160
+ "$ref": "#/definitions/RuleNoConfig"
5161
+ },
5162
+ {
5163
+ "items": [
5164
+ {
5165
+ "$ref": "#/definitions/AllowWarnDeny"
5166
+ },
5167
+ {
5168
+ "$ref": "#/definitions/NoRestrictedGlobalsConfigEnum"
5169
+ }
5170
+ ],
5171
+ "additionalItems": {
5172
+ "$ref": "#/definitions/NoRestrictedGlobalsConfigEnum"
5173
+ },
5174
+ "minItems": 2
5175
+ }
5176
+ ]
5119
5177
  },
5120
5178
  "no-restricted-imports": {
5121
5179
  "anyOf": [
@@ -5634,6 +5692,29 @@
5634
5692
  }
5635
5693
  ]
5636
5694
  },
5695
+ "node/exports-style": {
5696
+ "anyOf": [
5697
+ {
5698
+ "$ref": "#/definitions/RuleNoConfig"
5699
+ },
5700
+ {
5701
+ "type": "array",
5702
+ "items": [
5703
+ {
5704
+ "$ref": "#/definitions/AllowWarnDeny"
5705
+ },
5706
+ {
5707
+ "$ref": "#/definitions/ExportsStyleMode"
5708
+ },
5709
+ {
5710
+ "$ref": "#/definitions/ExportsStyleOptions"
5711
+ }
5712
+ ],
5713
+ "maxItems": 3,
5714
+ "minItems": 2
5715
+ }
5716
+ ]
5717
+ },
5637
5718
  "node/global-require": {
5638
5719
  "$ref": "#/definitions/RuleNoConfig"
5639
5720
  },
@@ -5804,6 +5885,9 @@
5804
5885
  "oxc/bad-comparison-sequence": {
5805
5886
  "$ref": "#/definitions/RuleNoConfig"
5806
5887
  },
5888
+ "oxc/bad-match-all-arg": {
5889
+ "$ref": "#/definitions/RuleNoConfig"
5890
+ },
5807
5891
  "oxc/bad-min-max-func": {
5808
5892
  "$ref": "#/definitions/RuleNoConfig"
5809
5893
  },
@@ -9900,7 +9984,24 @@
9900
9984
  "$ref": "#/definitions/RuleNoConfig"
9901
9985
  },
9902
9986
  "vitest/prefer-lowercase-title": {
9903
- "$ref": "#/definitions/DummyRule"
9987
+ "anyOf": [
9988
+ {
9989
+ "$ref": "#/definitions/RuleNoConfig"
9990
+ },
9991
+ {
9992
+ "type": "array",
9993
+ "items": [
9994
+ {
9995
+ "$ref": "#/definitions/AllowWarnDeny"
9996
+ },
9997
+ {
9998
+ "$ref": "#/definitions/PreferLowercaseTitleConfig"
9999
+ }
10000
+ ],
10001
+ "maxItems": 2,
10002
+ "minItems": 2
10003
+ }
10004
+ ]
9904
10005
  },
9905
10006
  "vitest/prefer-mock-promise-shorthand": {
9906
10007
  "$ref": "#/definitions/RuleNoConfig"
@@ -10838,6 +10939,51 @@
10838
10939
  }
10839
10940
  ]
10840
10941
  },
10942
+ "ExportsStyle": {
10943
+ "type": "array",
10944
+ "items": [
10945
+ {
10946
+ "$ref": "#/definitions/ExportsStyleMode"
10947
+ },
10948
+ {
10949
+ "$ref": "#/definitions/ExportsStyleOptions"
10950
+ }
10951
+ ],
10952
+ "maxItems": 2,
10953
+ "minItems": 2
10954
+ },
10955
+ "ExportsStyleMode": {
10956
+ "oneOf": [
10957
+ {
10958
+ "description": "Requires `module.exports` and disallows `exports`",
10959
+ "type": "string",
10960
+ "enum": [
10961
+ "module.exports"
10962
+ ],
10963
+ "markdownDescription": "Requires `module.exports` and disallows `exports`"
10964
+ },
10965
+ {
10966
+ "description": "Requires `exports` and disallows `module.exports`",
10967
+ "type": "string",
10968
+ "enum": [
10969
+ "exports"
10970
+ ],
10971
+ "markdownDescription": "Requires `exports` and disallows `module.exports`"
10972
+ }
10973
+ ]
10974
+ },
10975
+ "ExportsStyleOptions": {
10976
+ "type": "object",
10977
+ "properties": {
10978
+ "allowBatchAssign": {
10979
+ "description": "If this option is set to `true`, `module.exports = exports = obj` are allowed.",
10980
+ "default": false,
10981
+ "type": "boolean",
10982
+ "markdownDescription": "If this option is set to `true`, `module.exports = exports = obj` are allowed."
10983
+ }
10984
+ },
10985
+ "additionalProperties": false
10986
+ },
10841
10987
  "ExtensionRule": {
10842
10988
  "description": "Extension rule configuration; Copy to avoid extra indirection.",
10843
10989
  "type": "string",
@@ -11298,6 +11444,24 @@
11298
11444
  },
11299
11445
  "markdownDescription": "A set of glob patterns.\nPatterns are matched against paths relative to the configuration file's directory."
11300
11446
  },
11447
+ "GlobalNameOrObject": {
11448
+ "anyOf": [
11449
+ {
11450
+ "description": "The name of a restricted global.",
11451
+ "type": "string",
11452
+ "markdownDescription": "The name of a restricted global."
11453
+ },
11454
+ {
11455
+ "description": "A restricted global with an optional custom message.",
11456
+ "allOf": [
11457
+ {
11458
+ "$ref": "#/definitions/RestrictedGlobal"
11459
+ }
11460
+ ],
11461
+ "markdownDescription": "A restricted global with an optional custom message."
11462
+ }
11463
+ ]
11464
+ },
11301
11465
  "GlobalValue": {
11302
11466
  "type": "string",
11303
11467
  "enum": [
@@ -11412,6 +11576,13 @@
11412
11576
  },
11413
11577
  "additionalProperties": false
11414
11578
  },
11579
+ "IdDenylist": {
11580
+ "type": "array",
11581
+ "additionalItems": {
11582
+ "type": "string"
11583
+ },
11584
+ "uniqueItems": true
11585
+ },
11415
11586
  "IdLengthConfig": {
11416
11587
  "type": "object",
11417
11588
  "properties": {
@@ -15087,6 +15258,58 @@
15087
15258
  },
15088
15259
  "additionalProperties": false
15089
15260
  },
15261
+ "NoRestrictedGlobalsConfigEnum": {
15262
+ "anyOf": [
15263
+ {
15264
+ "type": "string"
15265
+ },
15266
+ {
15267
+ "$ref": "#/definitions/RestrictedGlobal"
15268
+ },
15269
+ {
15270
+ "$ref": "#/definitions/NoRestrictedGlobalsObjectConfig"
15271
+ }
15272
+ ]
15273
+ },
15274
+ "NoRestrictedGlobalsConfigValue": {
15275
+ "additionalItems": {
15276
+ "$ref": "#/definitions/NoRestrictedGlobalsConfigEnum"
15277
+ }
15278
+ },
15279
+ "NoRestrictedGlobalsObjectConfig": {
15280
+ "description": "Object form of the configuration, which additionally allows detecting\nrestricted globals accessed via global objects.",
15281
+ "type": "object",
15282
+ "required": [
15283
+ "globals"
15284
+ ],
15285
+ "properties": {
15286
+ "checkGlobalObject": {
15287
+ "description": "Whether to also detect restricted globals accessed via global objects. Default is `false`.",
15288
+ "default": false,
15289
+ "type": "boolean",
15290
+ "markdownDescription": "Whether to also detect restricted globals accessed via global objects. Default is `false`."
15291
+ },
15292
+ "globalObjects": {
15293
+ "description": "Additional global object names to check when `checkGlobalObject` is enabled.\nBy default, the rule checks these global objects: `globalThis`, `self`, and `window`.",
15294
+ "default": [],
15295
+ "type": "array",
15296
+ "items": {
15297
+ "type": "string"
15298
+ },
15299
+ "markdownDescription": "Additional global object names to check when `checkGlobalObject` is enabled.\nBy default, the rule checks these global objects: `globalThis`, `self`, and `window`."
15300
+ },
15301
+ "globals": {
15302
+ "description": "The restricted globals, as names or `{ \"name\", \"message\" }` objects.",
15303
+ "type": "array",
15304
+ "items": {
15305
+ "$ref": "#/definitions/GlobalNameOrObject"
15306
+ },
15307
+ "markdownDescription": "The restricted globals, as names or `{ \"name\", \"message\" }` objects."
15308
+ }
15309
+ },
15310
+ "additionalProperties": false,
15311
+ "markdownDescription": "Object form of the configuration, which additionally allows detecting\nrestricted globals accessed via global objects."
15312
+ },
15090
15313
  "NoRestrictedImportsConfig": {
15091
15314
  "type": "object",
15092
15315
  "properties": {
@@ -17229,6 +17452,42 @@
17229
17452
  },
17230
17453
  "additionalProperties": false
17231
17454
  },
17455
+ "PreferLowercaseTitleConfig": {
17456
+ "type": "object",
17457
+ "properties": {
17458
+ "allowedPrefixes": {
17459
+ "description": "This array option allows specifying prefixes, which contain capitals that titles\ncan start with. This can be useful when writing tests for API endpoints, where\nyou'd like to prefix with the HTTP method.\nBy default, nothing is allowed (the equivalent of `{ \"allowedPrefixes\": [] }`).\n\nExample of **correct** code for the `{ \"allowedPrefixes\": [\"GET\"] }` option:\n```js\n/* jest/prefer-lowercase-title: [\"error\", { \"allowedPrefixes\": [\"GET\"] }] */\ndescribe('GET /live');\n```",
17460
+ "default": [],
17461
+ "type": "array",
17462
+ "items": {
17463
+ "type": "string"
17464
+ },
17465
+ "markdownDescription": "This array option allows specifying prefixes, which contain capitals that titles\ncan start with. This can be useful when writing tests for API endpoints, where\nyou'd like to prefix with the HTTP method.\nBy default, nothing is allowed (the equivalent of `{ \"allowedPrefixes\": [] }`).\n\nExample of **correct** code for the `{ \"allowedPrefixes\": [\"GET\"] }` option:\n```js\n/* jest/prefer-lowercase-title: [\"error\", { \"allowedPrefixes\": [\"GET\"] }] */\ndescribe('GET /live');\n```"
17466
+ },
17467
+ "ignore": {
17468
+ "description": "This array option controls which Jest or Vitest functions are checked by this rule. There\nare four possible values:\n- `\"describe\"`\n- `\"test\"`\n- `\"it\"`\n- `\"bench\"`\n\nBy default, none of these options are enabled (the equivalent of\n`{ \"ignore\": [] }`).\n\nExample of **correct** code for the `{ \"ignore\": [\"describe\"] }` option:\n```js\n/* jest/prefer-lowercase-title: [\"error\", { \"ignore\": [\"describe\"] }] */\ndescribe('Uppercase description');\n```\n\nExample of **correct** code for the `{ \"ignore\": [\"test\"] }` option:\n```js\n/* jest/prefer-lowercase-title: [\"error\", { \"ignore\": [\"test\"] }] */\ntest('Uppercase description');\n```\n\nExample of **correct** code for the `{ \"ignore\": [\"it\"] }` option:\n```js\n/* jest/prefer-lowercase-title: [\"error\", { \"ignore\": [\"it\"] }] */\nit('Uppercase description');\n```",
17469
+ "default": [],
17470
+ "type": "array",
17471
+ "items": {
17472
+ "type": "string"
17473
+ },
17474
+ "markdownDescription": "This array option controls which Jest or Vitest functions are checked by this rule. There\nare four possible values:\n- `\"describe\"`\n- `\"test\"`\n- `\"it\"`\n- `\"bench\"`\n\nBy default, none of these options are enabled (the equivalent of\n`{ \"ignore\": [] }`).\n\nExample of **correct** code for the `{ \"ignore\": [\"describe\"] }` option:\n```js\n/* jest/prefer-lowercase-title: [\"error\", { \"ignore\": [\"describe\"] }] */\ndescribe('Uppercase description');\n```\n\nExample of **correct** code for the `{ \"ignore\": [\"test\"] }` option:\n```js\n/* jest/prefer-lowercase-title: [\"error\", { \"ignore\": [\"test\"] }] */\ntest('Uppercase description');\n```\n\nExample of **correct** code for the `{ \"ignore\": [\"it\"] }` option:\n```js\n/* jest/prefer-lowercase-title: [\"error\", { \"ignore\": [\"it\"] }] */\nit('Uppercase description');\n```"
17475
+ },
17476
+ "ignoreTopLevelDescribe": {
17477
+ "description": "This option can be set to allow only the top-level `describe` blocks to have a\ntitle starting with an upper-case letter.\n\nExample of **correct** code for the `{ \"ignoreTopLevelDescribe\": true }` option:\n```js\n/* jest/prefer-lowercase-title: [\"error\", { \"ignoreTopLevelDescribe\": true }] */\ndescribe('MyClass', () => {\ndescribe('#myMethod', () => {\nit('does things', () => {\n//\n});\n});\n});\n```",
17478
+ "default": false,
17479
+ "type": "boolean",
17480
+ "markdownDescription": "This option can be set to allow only the top-level `describe` blocks to have a\ntitle starting with an upper-case letter.\n\nExample of **correct** code for the `{ \"ignoreTopLevelDescribe\": true }` option:\n```js\n/* jest/prefer-lowercase-title: [\"error\", { \"ignoreTopLevelDescribe\": true }] */\ndescribe('MyClass', () => {\ndescribe('#myMethod', () => {\nit('does things', () => {\n//\n});\n});\n});\n```"
17481
+ },
17482
+ "lowercaseFirstCharacterOnly": {
17483
+ "description": "This option can be set to only validate that the first character of a test name is lowercased.\n\nExample of **correct** code for the `{ \"lowercaseFirstCharacterOnly\": true }` option:\n```js\n/* vitest/prefer-lowercase-title: [\"error\", { \"lowercaseFirstCharacterOnly\": true }] */\ndescribe('myClass', () => {\ndescribe('myMethod', () => {\nit('does things', () => {\n//\n});\n});\n});\n```\n\nExample of **incorrect** code for the `{ \"lowercaseFirstCharacterOnly\": true }` option:\n```js\n/* vitest/prefer-lowercase-title: [\"error\", { \"lowercaseFirstCharacterOnly\": true }] */\ndescribe('MyClass', () => {\ndescribe('MyMethod', () => {\nit('does things', () => {\n//\n});\n});\n});\n```",
17484
+ "default": true,
17485
+ "type": "boolean",
17486
+ "markdownDescription": "This option can be set to only validate that the first character of a test name is lowercased.\n\nExample of **correct** code for the `{ \"lowercaseFirstCharacterOnly\": true }` option:\n```js\n/* vitest/prefer-lowercase-title: [\"error\", { \"lowercaseFirstCharacterOnly\": true }] */\ndescribe('myClass', () => {\ndescribe('myMethod', () => {\nit('does things', () => {\n//\n});\n});\n});\n```\n\nExample of **incorrect** code for the `{ \"lowercaseFirstCharacterOnly\": true }` option:\n```js\n/* vitest/prefer-lowercase-title: [\"error\", { \"lowercaseFirstCharacterOnly\": true }] */\ndescribe('MyClass', () => {\ndescribe('MyMethod', () => {\nit('does things', () => {\n//\n});\n});\n});\n```"
17487
+ }
17488
+ },
17489
+ "additionalProperties": false
17490
+ },
17232
17491
  "PreferNullishCoalescingConfig": {
17233
17492
  "type": "object",
17234
17493
  "properties": {
@@ -18240,6 +18499,27 @@
18240
18499
  },
18241
18500
  "additionalProperties": false
18242
18501
  },
18502
+ "RestrictedGlobal": {
18503
+ "description": "A restricted global with an optional custom message.",
18504
+ "type": "object",
18505
+ "required": [
18506
+ "name"
18507
+ ],
18508
+ "properties": {
18509
+ "message": {
18510
+ "description": "A custom message shown when the restricted global is used.",
18511
+ "type": "string",
18512
+ "markdownDescription": "A custom message shown when the restricted global is used."
18513
+ },
18514
+ "name": {
18515
+ "description": "The name of the restricted global.",
18516
+ "type": "string",
18517
+ "markdownDescription": "The name of the restricted global."
18518
+ }
18519
+ },
18520
+ "additionalProperties": false,
18521
+ "markdownDescription": "A restricted global with an optional custom message."
18522
+ },
18243
18523
  "RestrictedPath": {
18244
18524
  "type": "object",
18245
18525
  "required": [
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.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.`);
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.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.`);
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.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.`);
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.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.`);
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.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.`);
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.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.`);
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.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.`);
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.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.`);
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.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.`);
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.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.`);
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.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.`);
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.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.`);
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.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.`);
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.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.`);
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.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.`);
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.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.`);
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.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.`);
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.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.`);
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.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.`);
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.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.`);
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.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.`);
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.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.`);
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.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.`);
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.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.`);
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.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.`);
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.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.`);
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
@@ -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
  *
@@ -476,9 +479,23 @@ interface Oxlintrc$1 {
476
479
  */
477
480
  env?: OxlintEnv;
478
481
  /**
479
- * Paths of configuration files that this configuration file extends (inherits from). The files
480
- * are resolved relative to the location of the configuration file that contains the `extends`
481
- * 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
482
499
  * overriding the previous ones.
483
500
  */
484
501
  extends?: string[];
@@ -829,6 +846,7 @@ interface DummyRuleMap {
829
846
  "getter-return"?: RuleNoConfig | [AllowWarnDeny, GetterReturn];
830
847
  "grouped-accessor-pairs"?: RuleNoConfig | [AllowWarnDeny, PairOrder] | [AllowWarnDeny, PairOrder, GroupedAccessorPairsConfig];
831
848
  "guard-for-in"?: RuleNoConfig;
849
+ "id-denylist"?: RuleNoConfig | [AllowWarnDeny, string, ...string[]];
832
850
  "id-length"?: RuleNoConfig | [AllowWarnDeny, IdLengthConfig];
833
851
  "id-match"?: RuleNoConfig | [AllowWarnDeny, string] | [AllowWarnDeny, string, IdMatchOptions];
834
852
  "import/consistent-type-specifier-style"?: RuleNoConfig | [AllowWarnDeny, Mode];
@@ -906,7 +924,7 @@ interface DummyRuleMap {
906
924
  "jest/prefer-hooks-on-top"?: RuleNoConfig;
907
925
  "jest/prefer-importing-jest-globals"?: RuleNoConfig | [AllowWarnDeny, PreferImportingJestGlobalsConfig];
908
926
  "jest/prefer-jest-mocked"?: RuleNoConfig;
909
- "jest/prefer-lowercase-title"?: DummyRule;
927
+ "jest/prefer-lowercase-title"?: RuleNoConfig | [AllowWarnDeny, PreferLowercaseTitleConfig];
910
928
  "jest/prefer-mock-promise-shorthand"?: RuleNoConfig;
911
929
  "jest/prefer-mock-return-shorthand"?: RuleNoConfig;
912
930
  "jest/prefer-snapshot-hint"?: RuleNoConfig | [AllowWarnDeny, SnapshotHintMode];
@@ -1090,7 +1108,7 @@ interface DummyRuleMap {
1090
1108
  "no-redeclare"?: RuleNoConfig | [AllowWarnDeny, NoRedeclare];
1091
1109
  "no-regex-spaces"?: RuleNoConfig;
1092
1110
  "no-restricted-exports"?: RuleNoConfig | [AllowWarnDeny, NoRestrictedExportsConfig];
1093
- "no-restricted-globals"?: DummyRule;
1111
+ "no-restricted-globals"?: RuleNoConfig | [AllowWarnDeny, NoRestrictedGlobalsConfigEnum, ...NoRestrictedGlobalsConfigEnum[]];
1094
1112
  "no-restricted-imports"?: RuleNoConfig | [AllowWarnDeny, NoRestrictedImportsConfigEnum, ...NoRestrictedImportsConfigEnum[]];
1095
1113
  "no-restricted-properties"?: RuleNoConfig | [AllowWarnDeny, PropertyDetails, ...PropertyDetails[]];
1096
1114
  "no-return-assign"?: RuleNoConfig | [AllowWarnDeny, NoReturnAssignMode];
@@ -1138,6 +1156,7 @@ interface DummyRuleMap {
1138
1156
  "no-warning-comments"?: RuleNoConfig | [AllowWarnDeny, NoWarningCommentsConfigJson];
1139
1157
  "no-with"?: RuleNoConfig;
1140
1158
  "node/callback-return"?: RuleNoConfig | [AllowWarnDeny, CallbackReturn];
1159
+ "node/exports-style"?: RuleNoConfig | [AllowWarnDeny, ExportsStyleMode] | [AllowWarnDeny, ExportsStyleMode, ExportsStyleOptions];
1141
1160
  "node/global-require"?: RuleNoConfig;
1142
1161
  "node/handle-callback-err"?: RuleNoConfig | [AllowWarnDeny, HandleCallbackErrConfig];
1143
1162
  "node/no-exports-assign"?: RuleNoConfig;
@@ -1154,6 +1173,7 @@ interface DummyRuleMap {
1154
1173
  "oxc/bad-bitwise-operator"?: RuleNoConfig;
1155
1174
  "oxc/bad-char-at-comparison"?: RuleNoConfig;
1156
1175
  "oxc/bad-comparison-sequence"?: RuleNoConfig;
1176
+ "oxc/bad-match-all-arg"?: RuleNoConfig;
1157
1177
  "oxc/bad-min-max-func"?: RuleNoConfig;
1158
1178
  "oxc/bad-object-literal-comparison"?: RuleNoConfig;
1159
1179
  "oxc/bad-replace-all-arg"?: RuleNoConfig;
@@ -1579,7 +1599,7 @@ interface DummyRuleMap {
1579
1599
  "vitest/prefer-hooks-on-top"?: RuleNoConfig;
1580
1600
  "vitest/prefer-import-in-mock"?: RuleNoConfig | [AllowWarnDeny, PreferImportInMockConfig];
1581
1601
  "vitest/prefer-importing-vitest-globals"?: RuleNoConfig;
1582
- "vitest/prefer-lowercase-title"?: DummyRule;
1602
+ "vitest/prefer-lowercase-title"?: RuleNoConfig | [AllowWarnDeny, PreferLowercaseTitleConfig];
1583
1603
  "vitest/prefer-mock-promise-shorthand"?: RuleNoConfig;
1584
1604
  "vitest/prefer-mock-return-shorthand"?: RuleNoConfig;
1585
1605
  "vitest/prefer-snapshot-hint"?: RuleNoConfig | [AllowWarnDeny, SnapshotHintMode];
@@ -2299,6 +2319,96 @@ interface PreferImportingJestGlobalsConfig {
2299
2319
  */
2300
2320
  types?: JestFnType[];
2301
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
+ }
2302
2412
  interface RequireHookConfig {
2303
2413
  /**
2304
2414
  * An array of function names that are allowed to be called outside of hooks.
@@ -3382,6 +3492,38 @@ interface RestrictDefaultExports {
3382
3492
  */
3383
3493
  namespaceFrom?: boolean;
3384
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
+ }
3385
3527
  interface RestrictedPath {
3386
3528
  allowImportNames?: string[];
3387
3529
  allowTypeImports?: boolean;
@@ -3925,6 +4067,12 @@ interface NoWarningCommentsConfigJson {
3925
4067
  location?: Location;
3926
4068
  terms?: string[];
3927
4069
  }
4070
+ interface ExportsStyleOptions {
4071
+ /**
4072
+ * If this option is set to `true`, `module.exports = exports = obj` are allowed.
4073
+ */
4074
+ allowBatchAssign?: boolean;
4075
+ }
3928
4076
  interface NoMixedRequiresOptions {
3929
4077
  allowCall?: boolean;
3930
4078
  grouping?: boolean;
@@ -6741,6 +6889,11 @@ interface VitestPluginSettings {
6741
6889
  type Oxlintrc = Omit<Oxlintrc$1, "$schema" | "extends">;
6742
6890
  type ExternalPluginsConfig = Exclude<Oxlintrc["jsPlugins"], undefined | null>;
6743
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
+ */
6744
6897
  extends?: OxlintConfig[];
6745
6898
  }
6746
6899
  /**
@@ -6749,6 +6902,6 @@ interface OxlintConfig extends Oxlintrc {
6749
6902
  * @param config - Oxlint configuration
6750
6903
  * @returns Config unchanged
6751
6904
  */
6752
- declare function defineConfig<T extends OxlintConfig>(config: T): T;
6905
+ declare function defineConfig<T extends OxlintConfig>(config: T & OxlintConfig): T;
6753
6906
  //#endregion
6754
6907
  export { type AllowWarnDeny, type DummyRule, type DummyRuleMap, type ExternalPluginEntry, type ExternalPluginsConfig, type OxlintConfig, type OxlintEnv, type OxlintGlobals, type OxlintOverride, type RuleCategories, defineConfig };
package/dist/lint.js CHANGED
@@ -562,7 +562,7 @@ const getTokenLoc = getTokenLocTemp, resetLoc = resetLocTemp, TOKEN_TYPES = [
562
562
  * Called by `ast.tokens` getter.
563
563
  */
564
564
  function initTokens() {
565
- allTokensDeserialized || deserializeTokens(), previousTokens.length >= tokensLen ? (previousTokens.length = tokensLen, tokens = previousTokens) : tokens = previousTokens = cachedTokens.slice(0, tokensLen);
565
+ allTokensDeserialized === !1 && deserializeTokens(), previousTokens.length >= tokensLen ? (previousTokens.length = tokensLen, tokens = previousTokens) : tokens = previousTokens = cachedTokens.slice(0, tokensLen);
566
566
  }
567
567
  /**
568
568
  * Deserialize all tokens into `cachedTokens`.
@@ -601,7 +601,7 @@ function initTokensBuffer() {
601
601
  * @returns Deserialized token
602
602
  */
603
603
  function getToken(index) {
604
- if (!allTokensDeserialized) {
604
+ if (allTokensDeserialized === !1) {
605
605
  let token = deserializeTokenIfNeeded(index);
606
606
  if (token !== null) return deserializedTokenIndexes[deserializedTokensLen++] = index, token;
607
607
  }
@@ -723,7 +723,7 @@ const getCommentLoc = getCommentLocTemp, resetCommentLoc = resetCommentLocTemp;
723
723
  * Called by `ast.comments` getter.
724
724
  */
725
725
  function initComments() {
726
- allCommentsDeserialized || deserializeComments(), comments === null && (previousComments.length >= commentsLen ? (previousComments.length = commentsLen, comments = previousComments) : comments = previousComments = cachedComments.slice(0, commentsLen));
726
+ allCommentsDeserialized === !1 && deserializeComments(), comments === null && (previousComments.length >= commentsLen ? (previousComments.length = commentsLen, comments = previousComments) : comments = previousComments = cachedComments.slice(0, commentsLen));
727
727
  }
728
728
  /**
729
729
  * Deserialize all comments into `cachedComments`.
@@ -768,7 +768,7 @@ function initCommentsBuffer() {
768
768
  * @returns Deserialized comment
769
769
  */
770
770
  function getComment(index) {
771
- if (!allCommentsDeserialized) {
771
+ if (allCommentsDeserialized === !1) {
772
772
  let comment = deserializeCommentIfNeeded(index);
773
773
  if (comment !== null) return deserializedCommentIndexes[deserializedCommentsLen++] = index, comment;
774
774
  }
@@ -1282,7 +1282,7 @@ function deserializeImportMeta(pos) {
1282
1282
  end: end = deserializeI32(pos + 4),
1283
1283
  range: [start, end],
1284
1284
  parent
1285
- }, importStart = deserializeI32(pos), importEnd = importStart + 6, importIdent = {
1285
+ }, importStart = deserializeI32(pos), importEnd = deserializeI32(pos + 4) === 0 ? 0 : importStart + 6, importIdent = {
1286
1286
  __proto__: NodeProto,
1287
1287
  type: "Identifier",
1288
1288
  decorators: [],
@@ -1293,7 +1293,7 @@ function deserializeImportMeta(pos) {
1293
1293
  end: importEnd,
1294
1294
  range: [importStart, importEnd],
1295
1295
  parent
1296
- }, metaEnd = deserializeI32(pos + 4), metaStart = metaEnd - 4, metaIdent = {
1296
+ }, metaEnd = deserializeI32(pos + 4), metaStart = metaEnd === 0 ? 0 : metaEnd - 4, metaIdent = {
1297
1297
  __proto__: NodeProto,
1298
1298
  type: "Identifier",
1299
1299
  decorators: [],
@@ -1317,7 +1317,7 @@ function deserializeNewTarget(pos) {
1317
1317
  end: end = deserializeI32(pos + 4),
1318
1318
  range: [start, end],
1319
1319
  parent
1320
- }, newStart = deserializeI32(pos), newEnd = newStart + 3, newIdent = {
1320
+ }, newStart = deserializeI32(pos), newEnd = deserializeI32(pos + 4) === 0 ? 0 : newStart + 3, newIdent = {
1321
1321
  __proto__: NodeProto,
1322
1322
  type: "Identifier",
1323
1323
  decorators: [],
@@ -1328,7 +1328,7 @@ function deserializeNewTarget(pos) {
1328
1328
  end: newEnd,
1329
1329
  range: [newStart, newEnd],
1330
1330
  parent
1331
- }, targetEnd = deserializeI32(pos + 4), targetStart = targetEnd - 6, targetIdent = {
1331
+ }, targetEnd = deserializeI32(pos + 4), targetStart = targetEnd === 0 ? 0 : targetEnd - 6, targetIdent = {
1332
1332
  __proto__: NodeProto,
1333
1333
  type: "Identifier",
1334
1334
  decorators: [],
@@ -5554,7 +5554,7 @@ function getTokensAndComments() {
5554
5554
  if (tokensAndComments !== null) return tokensAndComments;
5555
5555
  if (tokensInt32 === null && initTokensBuffer(), commentsInt32 === null && initCommentsBuffer(), commentsLen === 0) return tokens === null && initTokens(), tokensAndComments = tokens;
5556
5556
  if (tokensLen === 0) return comments === null && initComments(), tokensAndComments = comments;
5557
- allTokensDeserialized || deserializeTokens(), allCommentsDeserialized || deserializeComments(), tokensAndCommentsInt32 === null && initTokensAndCommentsBuffer(), previousTokensAndComments.length >= tokensAndCommentsLen ? (tokensAndComments = previousTokensAndComments, tokensAndComments.length = tokensAndCommentsLen) : (tokensAndComments = previousTokensAndComments = Array(tokensAndCommentsLen).fill(0), tokensAndComments[0] = null);
5557
+ allTokensDeserialized === !1 && deserializeTokens(), allCommentsDeserialized === !1 && deserializeComments(), tokensAndCommentsInt32 === null && initTokensAndCommentsBuffer(), previousTokensAndComments.length >= tokensAndCommentsLen ? (tokensAndComments = previousTokensAndComments, tokensAndComments.length = tokensAndCommentsLen) : (tokensAndComments = previousTokensAndComments = Array(tokensAndCommentsLen).fill(0), tokensAndComments[0] = null);
5558
5558
  for (let i = 0; i < tokensAndCommentsLen; i++) {
5559
5559
  let pos32 = i << 2, originalIndex = tokensAndCommentsInt32[pos32 + 1];
5560
5560
  tokensAndComments[i] = tokensAndCommentsInt32[pos32 + 2] === 0 ? cachedTokens[originalIndex] : cachedComments[originalIndex];
@@ -5689,32 +5689,30 @@ function getJSDocComment(node) {
5689
5689
  }
5690
5690
  //#endregion
5691
5691
  //#region src-js/plugins/directives.ts
5692
- const LABEL_PATTERN = /^\s*(?<label>(?:eslint|oxlint)-(?:disable(?:(?:-next)?-line)?|enable))(?:\s|$)/u, LINE_DIRECTIVE_PATTERN = /^(?:eslint|oxlint)-disable-(?:-next)?-line$/u, JUSTIFICATION_SEP_PATTERN = /\s-{2,}\s/u;
5692
+ const LABEL_PATTERN = /^\s*((?:eslint|oxlint)-(disable(?:(?:-next)?-line)?|enable))(?:\s|$)/u, JUSTIFICATION_SEP_PATTERN = /\s-{2,}\s/u;
5693
5693
  function getDisableDirectives() {
5694
- let problems = [], directives = [];
5695
- return getAllComments().forEach((comment) => {
5696
- if (comment.type === "Shebang") return;
5697
- let match = LABEL_PATTERN.exec(comment.value);
5698
- if (!match?.groups?.label || comment.type === "Line" && LINE_DIRECTIVE_PATTERN.test(match.groups.label)) return;
5699
- let { label } = match.groups;
5700
- if ((label === "eslint-disable-line" || label === "oxlint-disable-line") && comment.loc.start.line !== comment.loc.end.line) {
5694
+ let problems = [], directives = [], comments = getAllComments(), i = +(comments.length > 0 && comments[0].type === "Shebang");
5695
+ for (; i < comments.length; i++) {
5696
+ let comment = comments[i], match = LABEL_PATTERN.exec(comment.value);
5697
+ if (match === null) continue;
5698
+ let label = match[1], type = match[2];
5699
+ if (type === "disable-line" && comment.loc.start.line !== comment.loc.end.line) {
5701
5700
  problems.push({
5702
5701
  ruleId: null,
5703
5702
  message: `${label} comment should not span multiple lines.`,
5704
5703
  loc: comment.loc
5705
5704
  });
5706
- return;
5705
+ continue;
5707
5706
  }
5708
- let rest = comment.value.slice(match[0].length).trim();
5709
- match = JUSTIFICATION_SEP_PATTERN.exec(rest);
5710
- let [value, justification] = match ? [rest.slice(0, match.index).trim(), rest.slice(match.index + match[0].length).trim()] : [rest, ""];
5711
- directives.push({
5712
- type: label.slice(7),
5707
+ let rest = comment.value.slice(match[0].length).trim(), sepMatch = JUSTIFICATION_SEP_PATTERN.exec(rest), value = rest, justification = "";
5708
+ sepMatch !== null && (value = rest.slice(0, sepMatch.index).trim(), justification = rest.slice(sepMatch.index + sepMatch[0].length).trim()), directives.push({
5709
+ type,
5713
5710
  node: comment,
5714
5711
  value,
5715
5712
  justification
5716
5713
  });
5717
- }), {
5714
+ }
5715
+ return {
5718
5716
  problems,
5719
5717
  directives
5720
5718
  };
@@ -14176,7 +14174,7 @@ function resetSettings() {
14176
14174
  }
14177
14175
  //#endregion
14178
14176
  //#region package.json
14179
- var version = "1.75.0";
14177
+ var version = "1.76.0";
14180
14178
  //#endregion
14181
14179
  //#region src-js/plugins/context.ts
14182
14180
  const ObjectFreeze$1 = Object.freeze, ObjectCreate = Object.create, ObjectAssign = Object.assign, ObjectPreventExtensions = Object.preventExtensions;
@@ -3020,7 +3020,7 @@ interface Directive {
3020
3020
  type: DirectiveType;
3021
3021
  node: CommentType;
3022
3022
  value: string;
3023
- justification?: string;
3023
+ justification: string;
3024
3024
  }
3025
3025
  declare function getDisableDirectives(): {
3026
3026
  problems: Problem[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depup/oxlint",
3
- "version": "1.75.0-depup.0",
3
+ "version": "1.76.0-depup.0",
4
4
  "description": "Linter for the JavaScript Oxidation Compiler (with updated dependencies)",
5
5
  "keywords": [
6
6
  "oxlint",
@@ -93,32 +93,32 @@
93
93
  },
94
94
  "preferUnplugged": true,
95
95
  "optionalDependencies": {
96
- "@oxlint/binding-darwin-arm64": "1.75.0",
97
- "@oxlint/binding-android-arm64": "1.75.0",
98
- "@oxlint/binding-win32-arm64-msvc": "1.75.0",
99
- "@oxlint/binding-linux-arm64-gnu": "1.75.0",
100
- "@oxlint/binding-linux-arm64-musl": "1.75.0",
101
- "@oxlint/binding-openharmony-arm64": "1.75.0",
102
- "@oxlint/binding-android-arm-eabi": "1.75.0",
103
- "@oxlint/binding-linux-arm-gnueabihf": "1.75.0",
104
- "@oxlint/binding-linux-arm-musleabihf": "1.75.0",
105
- "@oxlint/binding-win32-ia32-msvc": "1.75.0",
106
- "@oxlint/binding-linux-ppc64-gnu": "1.75.0",
107
- "@oxlint/binding-linux-riscv64-gnu": "1.75.0",
108
- "@oxlint/binding-linux-riscv64-musl": "1.75.0",
109
- "@oxlint/binding-linux-s390x-gnu": "1.75.0",
110
- "@oxlint/binding-darwin-x64": "1.75.0",
111
- "@oxlint/binding-win32-x64-msvc": "1.75.0",
112
- "@oxlint/binding-freebsd-x64": "1.75.0",
113
- "@oxlint/binding-linux-x64-gnu": "1.75.0",
114
- "@oxlint/binding-linux-x64-musl": "1.75.0"
96
+ "@oxlint/binding-darwin-arm64": "1.76.0",
97
+ "@oxlint/binding-android-arm64": "1.76.0",
98
+ "@oxlint/binding-win32-arm64-msvc": "1.76.0",
99
+ "@oxlint/binding-linux-arm64-gnu": "1.76.0",
100
+ "@oxlint/binding-linux-arm64-musl": "1.76.0",
101
+ "@oxlint/binding-openharmony-arm64": "1.76.0",
102
+ "@oxlint/binding-android-arm-eabi": "1.76.0",
103
+ "@oxlint/binding-linux-arm-gnueabihf": "1.76.0",
104
+ "@oxlint/binding-linux-arm-musleabihf": "1.76.0",
105
+ "@oxlint/binding-win32-ia32-msvc": "1.76.0",
106
+ "@oxlint/binding-linux-ppc64-gnu": "1.76.0",
107
+ "@oxlint/binding-linux-riscv64-gnu": "1.76.0",
108
+ "@oxlint/binding-linux-riscv64-musl": "1.76.0",
109
+ "@oxlint/binding-linux-s390x-gnu": "1.76.0",
110
+ "@oxlint/binding-darwin-x64": "1.76.0",
111
+ "@oxlint/binding-win32-x64-msvc": "1.76.0",
112
+ "@oxlint/binding-freebsd-x64": "1.76.0",
113
+ "@oxlint/binding-linux-x64-gnu": "1.76.0",
114
+ "@oxlint/binding-linux-x64-musl": "1.76.0"
115
115
  },
116
116
  "depup": {
117
117
  "changes": {},
118
118
  "depsUpdated": 0,
119
119
  "originalPackage": "oxlint",
120
- "originalVersion": "1.75.0",
121
- "processedAt": "2026-07-22T00:38:03.055Z",
120
+ "originalVersion": "1.76.0",
121
+ "processedAt": "2026-07-27T16:46:00.956Z",
122
122
  "smokeTest": "passed"
123
123
  }
124
124
  }