@depup/oxlint 1.81.0-depup.0 → 1.83.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 +2 -2
- package/changes.json +1 -1
- package/configuration_schema.json +104 -42
- package/dist/bindings.js +28 -30
- package/dist/index.d.ts +68 -26
- package/dist/lint.js +23 -37
- package/dist/plugins-dev.d.ts +1589 -1546
- package/dist/plugins-dev.js +3 -2
- package/dist/rolldown-runtime.js +21 -0
- package/package.json +22 -22
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.
|
|
17
|
-
| Processed | 2026-09-
|
|
16
|
+
| Original | [oxlint](https://www.npmjs.com/package/oxlint) @ 1.83.0 |
|
|
17
|
+
| Processed | 2026-09-14 |
|
|
18
18
|
| Smoke test | passed |
|
|
19
19
|
| Deps updated | 0 |
|
|
20
20
|
|
package/changes.json
CHANGED
|
@@ -5434,7 +5434,24 @@
|
|
|
5434
5434
|
"$ref": "#/definitions/RuleNoConfig"
|
|
5435
5435
|
},
|
|
5436
5436
|
"no-unmodified-loop-condition": {
|
|
5437
|
-
"
|
|
5437
|
+
"anyOf": [
|
|
5438
|
+
{
|
|
5439
|
+
"$ref": "#/definitions/RuleNoConfig"
|
|
5440
|
+
},
|
|
5441
|
+
{
|
|
5442
|
+
"type": "array",
|
|
5443
|
+
"items": [
|
|
5444
|
+
{
|
|
5445
|
+
"$ref": "#/definitions/AllowWarnDeny"
|
|
5446
|
+
},
|
|
5447
|
+
{
|
|
5448
|
+
"$ref": "#/definitions/NoUnmodifiedLoopCondition"
|
|
5449
|
+
}
|
|
5450
|
+
],
|
|
5451
|
+
"maxItems": 2,
|
|
5452
|
+
"minItems": 2
|
|
5453
|
+
}
|
|
5454
|
+
]
|
|
5438
5455
|
},
|
|
5439
5456
|
"no-unneeded-ternary": {
|
|
5440
5457
|
"anyOf": [
|
|
@@ -15875,6 +15892,18 @@
|
|
|
15875
15892
|
},
|
|
15876
15893
|
"additionalProperties": false
|
|
15877
15894
|
},
|
|
15895
|
+
"NoUnmodifiedLoopCondition": {
|
|
15896
|
+
"type": "object",
|
|
15897
|
+
"properties": {
|
|
15898
|
+
"checkConditionalExpressions": {
|
|
15899
|
+
"description": "Whether references in each branch of a conditional expression should be checked\nindependently instead of checking the result of the entire expression.",
|
|
15900
|
+
"default": false,
|
|
15901
|
+
"type": "boolean",
|
|
15902
|
+
"markdownDescription": "Whether references in each branch of a conditional expression should be checked\nindependently instead of checking the result of the entire expression."
|
|
15903
|
+
}
|
|
15904
|
+
},
|
|
15905
|
+
"additionalProperties": false
|
|
15906
|
+
},
|
|
15878
15907
|
"NoUnnecessaryBooleanLiteralCompareConfig": {
|
|
15879
15908
|
"type": "object",
|
|
15880
15909
|
"properties": {
|
|
@@ -16508,33 +16537,6 @@
|
|
|
16508
16537
|
}
|
|
16509
16538
|
]
|
|
16510
16539
|
},
|
|
16511
|
-
"NumericBaseConfig": {
|
|
16512
|
-
"type": "object",
|
|
16513
|
-
"properties": {
|
|
16514
|
-
"groupLength": {
|
|
16515
|
-
"description": "The number of digits per group when inserting numeric separators.\nFor example, a `groupLength` of 3 formats `1234567` as `1_234_567`.",
|
|
16516
|
-
"default": 0,
|
|
16517
|
-
"type": "integer",
|
|
16518
|
-
"format": "uint32",
|
|
16519
|
-
"minimum": 0.0,
|
|
16520
|
-
"markdownDescription": "The number of digits per group when inserting numeric separators.\nFor example, a `groupLength` of 3 formats `1234567` as `1_234_567`."
|
|
16521
|
-
},
|
|
16522
|
-
"minimumDigits": {
|
|
16523
|
-
"description": "The minimum number of digits required before grouping is applied.\nValues with fewer digits than this threshold will not be grouped.",
|
|
16524
|
-
"default": 0,
|
|
16525
|
-
"type": "integer",
|
|
16526
|
-
"format": "uint32",
|
|
16527
|
-
"minimum": 0.0,
|
|
16528
|
-
"markdownDescription": "The minimum number of digits required before grouping is applied.\nValues with fewer digits than this threshold will not be grouped."
|
|
16529
|
-
},
|
|
16530
|
-
"onlyIfContainsSeparator": {
|
|
16531
|
-
"description": "Only enforce the rule when the numeric literal already contains a separator (`_`).\n\nWhen `true`, numbers without separators are left as-is; when `false` (default),\ngrouping will be enforced for eligible numbers even if they don't include separators yet.",
|
|
16532
|
-
"type": "boolean",
|
|
16533
|
-
"markdownDescription": "Only enforce the rule when the numeric literal already contains a separator (`_`).\n\nWhen `true`, numbers without separators are left as-is; when `false` (default),\ngrouping will be enforced for eligible numbers even if they don't include separators yet."
|
|
16534
|
-
}
|
|
16535
|
-
},
|
|
16536
|
-
"additionalProperties": false
|
|
16537
|
-
},
|
|
16538
16540
|
"NumericNumberConfig": {
|
|
16539
16541
|
"type": "object",
|
|
16540
16542
|
"properties": {
|
|
@@ -16548,7 +16550,7 @@
|
|
|
16548
16550
|
},
|
|
16549
16551
|
"groupLength": {
|
|
16550
16552
|
"description": "The number of digits per group when inserting numeric separators.\nFor example, a `groupLength` of 3 formats `1234567` as `1_234_567`.",
|
|
16551
|
-
"default":
|
|
16553
|
+
"default": 3,
|
|
16552
16554
|
"type": "integer",
|
|
16553
16555
|
"format": "uint32",
|
|
16554
16556
|
"minimum": 0.0,
|
|
@@ -16556,7 +16558,7 @@
|
|
|
16556
16558
|
},
|
|
16557
16559
|
"minimumDigits": {
|
|
16558
16560
|
"description": "The minimum number of digits required before grouping is applied.\nValues with fewer digits than this threshold will not be grouped.",
|
|
16559
|
-
"default":
|
|
16561
|
+
"default": 5,
|
|
16560
16562
|
"type": "integer",
|
|
16561
16563
|
"format": "uint32",
|
|
16562
16564
|
"minimum": 0.0,
|
|
@@ -16579,11 +16581,31 @@
|
|
|
16579
16581
|
"groupLength": 4,
|
|
16580
16582
|
"minimumDigits": 0
|
|
16581
16583
|
},
|
|
16582
|
-
"
|
|
16583
|
-
|
|
16584
|
-
|
|
16584
|
+
"type": "object",
|
|
16585
|
+
"properties": {
|
|
16586
|
+
"groupLength": {
|
|
16587
|
+
"description": "The number of digits per group when inserting numeric separators.\nFor example, a `groupLength` of 3 formats `1234567` as `1_234_567`.",
|
|
16588
|
+
"default": 4,
|
|
16589
|
+
"type": "integer",
|
|
16590
|
+
"format": "uint32",
|
|
16591
|
+
"minimum": 0.0,
|
|
16592
|
+
"markdownDescription": "The number of digits per group when inserting numeric separators.\nFor example, a `groupLength` of 3 formats `1234567` as `1_234_567`."
|
|
16593
|
+
},
|
|
16594
|
+
"minimumDigits": {
|
|
16595
|
+
"description": "The minimum number of digits required before grouping is applied.\nValues with fewer digits than this threshold will not be grouped.",
|
|
16596
|
+
"default": 0,
|
|
16597
|
+
"type": "integer",
|
|
16598
|
+
"format": "uint32",
|
|
16599
|
+
"minimum": 0.0,
|
|
16600
|
+
"markdownDescription": "The minimum number of digits required before grouping is applied.\nValues with fewer digits than this threshold will not be grouped."
|
|
16601
|
+
},
|
|
16602
|
+
"onlyIfContainsSeparator": {
|
|
16603
|
+
"description": "Only enforce the rule when the numeric literal already contains a separator (`_`).\n\nWhen `true`, numbers without separators are left as-is; when `false` (default),\ngrouping will be enforced for eligible numbers even if they don't include separators yet.",
|
|
16604
|
+
"type": "boolean",
|
|
16605
|
+
"markdownDescription": "Only enforce the rule when the numeric literal already contains a separator (`_`).\n\nWhen `true`, numbers without separators are left as-is; when `false` (default),\ngrouping will be enforced for eligible numbers even if they don't include separators yet."
|
|
16585
16606
|
}
|
|
16586
|
-
|
|
16607
|
+
},
|
|
16608
|
+
"additionalProperties": false,
|
|
16587
16609
|
"markdownDescription": "Configuration for binary literals (e.g. `0b1010_0001` and bigint variants).\nControls how digits are grouped and when separators are applied."
|
|
16588
16610
|
},
|
|
16589
16611
|
"hexadecimal": {
|
|
@@ -16592,11 +16614,31 @@
|
|
|
16592
16614
|
"groupLength": 2,
|
|
16593
16615
|
"minimumDigits": 0
|
|
16594
16616
|
},
|
|
16595
|
-
"
|
|
16596
|
-
|
|
16597
|
-
|
|
16617
|
+
"type": "object",
|
|
16618
|
+
"properties": {
|
|
16619
|
+
"groupLength": {
|
|
16620
|
+
"description": "The number of digits per group when inserting numeric separators.\nFor example, a `groupLength` of 3 formats `1234567` as `1_234_567`.",
|
|
16621
|
+
"default": 2,
|
|
16622
|
+
"type": "integer",
|
|
16623
|
+
"format": "uint32",
|
|
16624
|
+
"minimum": 0.0,
|
|
16625
|
+
"markdownDescription": "The number of digits per group when inserting numeric separators.\nFor example, a `groupLength` of 3 formats `1234567` as `1_234_567`."
|
|
16626
|
+
},
|
|
16627
|
+
"minimumDigits": {
|
|
16628
|
+
"description": "The minimum number of digits required before grouping is applied.\nValues with fewer digits than this threshold will not be grouped.",
|
|
16629
|
+
"default": 0,
|
|
16630
|
+
"type": "integer",
|
|
16631
|
+
"format": "uint32",
|
|
16632
|
+
"minimum": 0.0,
|
|
16633
|
+
"markdownDescription": "The minimum number of digits required before grouping is applied.\nValues with fewer digits than this threshold will not be grouped."
|
|
16634
|
+
},
|
|
16635
|
+
"onlyIfContainsSeparator": {
|
|
16636
|
+
"description": "Only enforce the rule when the numeric literal already contains a separator (`_`).\n\nWhen `true`, numbers without separators are left as-is; when `false` (default),\ngrouping will be enforced for eligible numbers even if they don't include separators yet.",
|
|
16637
|
+
"type": "boolean",
|
|
16638
|
+
"markdownDescription": "Only enforce the rule when the numeric literal already contains a separator (`_`).\n\nWhen `true`, numbers without separators are left as-is; when `false` (default),\ngrouping will be enforced for eligible numbers even if they don't include separators yet."
|
|
16598
16639
|
}
|
|
16599
|
-
|
|
16640
|
+
},
|
|
16641
|
+
"additionalProperties": false,
|
|
16600
16642
|
"markdownDescription": "Configuration for hexadecimal literals (e.g. `0xAB_CD`, `0Xab_cd`, and bigint variants).\nControls how digits are grouped and when separators are applied."
|
|
16601
16643
|
},
|
|
16602
16644
|
"number": {
|
|
@@ -16614,11 +16656,31 @@
|
|
|
16614
16656
|
"groupLength": 4,
|
|
16615
16657
|
"minimumDigits": 0
|
|
16616
16658
|
},
|
|
16617
|
-
"
|
|
16618
|
-
|
|
16619
|
-
|
|
16659
|
+
"type": "object",
|
|
16660
|
+
"properties": {
|
|
16661
|
+
"groupLength": {
|
|
16662
|
+
"description": "The number of digits per group when inserting numeric separators.\nFor example, a `groupLength` of 3 formats `1234567` as `1_234_567`.",
|
|
16663
|
+
"default": 4,
|
|
16664
|
+
"type": "integer",
|
|
16665
|
+
"format": "uint32",
|
|
16666
|
+
"minimum": 0.0,
|
|
16667
|
+
"markdownDescription": "The number of digits per group when inserting numeric separators.\nFor example, a `groupLength` of 3 formats `1234567` as `1_234_567`."
|
|
16668
|
+
},
|
|
16669
|
+
"minimumDigits": {
|
|
16670
|
+
"description": "The minimum number of digits required before grouping is applied.\nValues with fewer digits than this threshold will not be grouped.",
|
|
16671
|
+
"default": 0,
|
|
16672
|
+
"type": "integer",
|
|
16673
|
+
"format": "uint32",
|
|
16674
|
+
"minimum": 0.0,
|
|
16675
|
+
"markdownDescription": "The minimum number of digits required before grouping is applied.\nValues with fewer digits than this threshold will not be grouped."
|
|
16676
|
+
},
|
|
16677
|
+
"onlyIfContainsSeparator": {
|
|
16678
|
+
"description": "Only enforce the rule when the numeric literal already contains a separator (`_`).\n\nWhen `true`, numbers without separators are left as-is; when `false` (default),\ngrouping will be enforced for eligible numbers even if they don't include separators yet.",
|
|
16679
|
+
"type": "boolean",
|
|
16680
|
+
"markdownDescription": "Only enforce the rule when the numeric literal already contains a separator (`_`).\n\nWhen `true`, numbers without separators are left as-is; when `false` (default),\ngrouping will be enforced for eligible numbers even if they don't include separators yet."
|
|
16620
16681
|
}
|
|
16621
|
-
|
|
16682
|
+
},
|
|
16683
|
+
"additionalProperties": false,
|
|
16622
16684
|
"markdownDescription": "Configuration for octal literals (e.g. `0o1234_5670` and bigint variants).\nControls how digits are grouped and when separators are applied."
|
|
16623
16685
|
},
|
|
16624
16686
|
"onlyIfContainsSeparator": {
|
package/dist/bindings.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { createRequire } from "module";
|
|
2
2
|
//#region src-js/bindings.js
|
|
3
|
-
const ArrayIsArray = Array.isArray, require = createRequire(import.meta.url);
|
|
4
|
-
new URL(".", import.meta.url).pathname;
|
|
5
|
-
const { readFileSync } = require("fs");
|
|
3
|
+
const ArrayIsArray = Array.isArray, require = createRequire(import.meta.url), { readFileSync } = require("fs");
|
|
6
4
|
let nativeBinding = null;
|
|
7
5
|
const loadErrors = [], isMusl = () => {
|
|
8
6
|
let musl = !1;
|
|
@@ -38,7 +36,7 @@ function requireNative() {
|
|
|
38
36
|
}
|
|
39
37
|
try {
|
|
40
38
|
let binding = require("@oxlint/binding-android-arm64"), bindingPackageVersion = require("@oxlint/binding-android-arm64/package.json").version;
|
|
41
|
-
if (bindingPackageVersion !== "1.
|
|
39
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
42
40
|
return binding;
|
|
43
41
|
} catch (e) {
|
|
44
42
|
loadErrors.push(e);
|
|
@@ -51,7 +49,7 @@ function requireNative() {
|
|
|
51
49
|
}
|
|
52
50
|
try {
|
|
53
51
|
let binding = require("@oxlint/binding-android-arm-eabi"), bindingPackageVersion = require("@oxlint/binding-android-arm-eabi/package.json").version;
|
|
54
|
-
if (bindingPackageVersion !== "1.
|
|
52
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
55
53
|
return binding;
|
|
56
54
|
} catch (e) {
|
|
57
55
|
loadErrors.push(e);
|
|
@@ -67,7 +65,7 @@ function requireNative() {
|
|
|
67
65
|
}
|
|
68
66
|
try {
|
|
69
67
|
let binding = require("@oxlint/binding-win32-x64-gnu"), bindingPackageVersion = require("@oxlint/binding-win32-x64-gnu/package.json").version;
|
|
70
|
-
if (bindingPackageVersion !== "1.
|
|
68
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
71
69
|
return binding;
|
|
72
70
|
} catch (e) {
|
|
73
71
|
loadErrors.push(e);
|
|
@@ -80,7 +78,7 @@ function requireNative() {
|
|
|
80
78
|
}
|
|
81
79
|
try {
|
|
82
80
|
let binding = require("@oxlint/binding-win32-x64-msvc"), bindingPackageVersion = require("@oxlint/binding-win32-x64-msvc/package.json").version;
|
|
83
|
-
if (bindingPackageVersion !== "1.
|
|
81
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
84
82
|
return binding;
|
|
85
83
|
} catch (e) {
|
|
86
84
|
loadErrors.push(e);
|
|
@@ -94,7 +92,7 @@ function requireNative() {
|
|
|
94
92
|
}
|
|
95
93
|
try {
|
|
96
94
|
let binding = require("@oxlint/binding-win32-ia32-msvc"), bindingPackageVersion = require("@oxlint/binding-win32-ia32-msvc/package.json").version;
|
|
97
|
-
if (bindingPackageVersion !== "1.
|
|
95
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
98
96
|
return binding;
|
|
99
97
|
} catch (e) {
|
|
100
98
|
loadErrors.push(e);
|
|
@@ -107,7 +105,7 @@ function requireNative() {
|
|
|
107
105
|
}
|
|
108
106
|
try {
|
|
109
107
|
let binding = require("@oxlint/binding-win32-arm64-msvc"), bindingPackageVersion = require("@oxlint/binding-win32-arm64-msvc/package.json").version;
|
|
110
|
-
if (bindingPackageVersion !== "1.
|
|
108
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
111
109
|
return binding;
|
|
112
110
|
} catch (e) {
|
|
113
111
|
loadErrors.push(e);
|
|
@@ -121,7 +119,7 @@ function requireNative() {
|
|
|
121
119
|
}
|
|
122
120
|
try {
|
|
123
121
|
let binding = require("@oxlint/binding-darwin-universal"), bindingPackageVersion = require("@oxlint/binding-darwin-universal/package.json").version;
|
|
124
|
-
if (bindingPackageVersion !== "1.
|
|
122
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
125
123
|
return binding;
|
|
126
124
|
} catch (e) {
|
|
127
125
|
loadErrors.push(e);
|
|
@@ -134,7 +132,7 @@ function requireNative() {
|
|
|
134
132
|
}
|
|
135
133
|
try {
|
|
136
134
|
let binding = require("@oxlint/binding-darwin-x64"), bindingPackageVersion = require("@oxlint/binding-darwin-x64/package.json").version;
|
|
137
|
-
if (bindingPackageVersion !== "1.
|
|
135
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
138
136
|
return binding;
|
|
139
137
|
} catch (e) {
|
|
140
138
|
loadErrors.push(e);
|
|
@@ -147,7 +145,7 @@ function requireNative() {
|
|
|
147
145
|
}
|
|
148
146
|
try {
|
|
149
147
|
let binding = require("@oxlint/binding-darwin-arm64"), bindingPackageVersion = require("@oxlint/binding-darwin-arm64/package.json").version;
|
|
150
|
-
if (bindingPackageVersion !== "1.
|
|
148
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
151
149
|
return binding;
|
|
152
150
|
} catch (e) {
|
|
153
151
|
loadErrors.push(e);
|
|
@@ -162,7 +160,7 @@ function requireNative() {
|
|
|
162
160
|
}
|
|
163
161
|
try {
|
|
164
162
|
let binding = require("@oxlint/binding-freebsd-x64"), bindingPackageVersion = require("@oxlint/binding-freebsd-x64/package.json").version;
|
|
165
|
-
if (bindingPackageVersion !== "1.
|
|
163
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
166
164
|
return binding;
|
|
167
165
|
} catch (e) {
|
|
168
166
|
loadErrors.push(e);
|
|
@@ -175,7 +173,7 @@ function requireNative() {
|
|
|
175
173
|
}
|
|
176
174
|
try {
|
|
177
175
|
let binding = require("@oxlint/binding-freebsd-arm64"), bindingPackageVersion = require("@oxlint/binding-freebsd-arm64/package.json").version;
|
|
178
|
-
if (bindingPackageVersion !== "1.
|
|
176
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
179
177
|
return binding;
|
|
180
178
|
} catch (e) {
|
|
181
179
|
loadErrors.push(e);
|
|
@@ -191,7 +189,7 @@ function requireNative() {
|
|
|
191
189
|
}
|
|
192
190
|
try {
|
|
193
191
|
let binding = require("@oxlint/binding-linux-x64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-x64-musl/package.json").version;
|
|
194
|
-
if (bindingPackageVersion !== "1.
|
|
192
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
195
193
|
return binding;
|
|
196
194
|
} catch (e) {
|
|
197
195
|
loadErrors.push(e);
|
|
@@ -204,7 +202,7 @@ function requireNative() {
|
|
|
204
202
|
}
|
|
205
203
|
try {
|
|
206
204
|
let binding = require("@oxlint/binding-linux-x64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-x64-gnu/package.json").version;
|
|
207
|
-
if (bindingPackageVersion !== "1.
|
|
205
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
208
206
|
return binding;
|
|
209
207
|
} catch (e) {
|
|
210
208
|
loadErrors.push(e);
|
|
@@ -219,7 +217,7 @@ function requireNative() {
|
|
|
219
217
|
}
|
|
220
218
|
try {
|
|
221
219
|
let binding = require("@oxlint/binding-linux-arm64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-arm64-musl/package.json").version;
|
|
222
|
-
if (bindingPackageVersion !== "1.
|
|
220
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
223
221
|
return binding;
|
|
224
222
|
} catch (e) {
|
|
225
223
|
loadErrors.push(e);
|
|
@@ -232,7 +230,7 @@ function requireNative() {
|
|
|
232
230
|
}
|
|
233
231
|
try {
|
|
234
232
|
let binding = require("@oxlint/binding-linux-arm64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-arm64-gnu/package.json").version;
|
|
235
|
-
if (bindingPackageVersion !== "1.
|
|
233
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
236
234
|
return binding;
|
|
237
235
|
} catch (e) {
|
|
238
236
|
loadErrors.push(e);
|
|
@@ -247,7 +245,7 @@ function requireNative() {
|
|
|
247
245
|
}
|
|
248
246
|
try {
|
|
249
247
|
let binding = require("@oxlint/binding-linux-arm-musleabihf"), bindingPackageVersion = require("@oxlint/binding-linux-arm-musleabihf/package.json").version;
|
|
250
|
-
if (bindingPackageVersion !== "1.
|
|
248
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
251
249
|
return binding;
|
|
252
250
|
} catch (e) {
|
|
253
251
|
loadErrors.push(e);
|
|
@@ -260,7 +258,7 @@ function requireNative() {
|
|
|
260
258
|
}
|
|
261
259
|
try {
|
|
262
260
|
let binding = require("@oxlint/binding-linux-arm-gnueabihf"), bindingPackageVersion = require("@oxlint/binding-linux-arm-gnueabihf/package.json").version;
|
|
263
|
-
if (bindingPackageVersion !== "1.
|
|
261
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
264
262
|
return binding;
|
|
265
263
|
} catch (e) {
|
|
266
264
|
loadErrors.push(e);
|
|
@@ -275,7 +273,7 @@ function requireNative() {
|
|
|
275
273
|
}
|
|
276
274
|
try {
|
|
277
275
|
let binding = require("@oxlint/binding-linux-loong64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-loong64-musl/package.json").version;
|
|
278
|
-
if (bindingPackageVersion !== "1.
|
|
276
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
279
277
|
return binding;
|
|
280
278
|
} catch (e) {
|
|
281
279
|
loadErrors.push(e);
|
|
@@ -288,7 +286,7 @@ function requireNative() {
|
|
|
288
286
|
}
|
|
289
287
|
try {
|
|
290
288
|
let binding = require("@oxlint/binding-linux-loong64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-loong64-gnu/package.json").version;
|
|
291
|
-
if (bindingPackageVersion !== "1.
|
|
289
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
292
290
|
return binding;
|
|
293
291
|
} catch (e) {
|
|
294
292
|
loadErrors.push(e);
|
|
@@ -303,7 +301,7 @@ function requireNative() {
|
|
|
303
301
|
}
|
|
304
302
|
try {
|
|
305
303
|
let binding = require("@oxlint/binding-linux-riscv64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-riscv64-musl/package.json").version;
|
|
306
|
-
if (bindingPackageVersion !== "1.
|
|
304
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
307
305
|
return binding;
|
|
308
306
|
} catch (e) {
|
|
309
307
|
loadErrors.push(e);
|
|
@@ -316,7 +314,7 @@ function requireNative() {
|
|
|
316
314
|
}
|
|
317
315
|
try {
|
|
318
316
|
let binding = require("@oxlint/binding-linux-riscv64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-riscv64-gnu/package.json").version;
|
|
319
|
-
if (bindingPackageVersion !== "1.
|
|
317
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
320
318
|
return binding;
|
|
321
319
|
} catch (e) {
|
|
322
320
|
loadErrors.push(e);
|
|
@@ -330,7 +328,7 @@ function requireNative() {
|
|
|
330
328
|
}
|
|
331
329
|
try {
|
|
332
330
|
let binding = require("@oxlint/binding-linux-ppc64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-ppc64-gnu/package.json").version;
|
|
333
|
-
if (bindingPackageVersion !== "1.
|
|
331
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
334
332
|
return binding;
|
|
335
333
|
} catch (e) {
|
|
336
334
|
loadErrors.push(e);
|
|
@@ -343,7 +341,7 @@ function requireNative() {
|
|
|
343
341
|
}
|
|
344
342
|
try {
|
|
345
343
|
let binding = require("@oxlint/binding-linux-s390x-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-s390x-gnu/package.json").version;
|
|
346
|
-
if (bindingPackageVersion !== "1.
|
|
344
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
347
345
|
return binding;
|
|
348
346
|
} catch (e) {
|
|
349
347
|
loadErrors.push(e);
|
|
@@ -358,7 +356,7 @@ function requireNative() {
|
|
|
358
356
|
}
|
|
359
357
|
try {
|
|
360
358
|
let binding = require("@oxlint/binding-openharmony-arm64"), bindingPackageVersion = require("@oxlint/binding-openharmony-arm64/package.json").version;
|
|
361
|
-
if (bindingPackageVersion !== "1.
|
|
359
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
362
360
|
return binding;
|
|
363
361
|
} catch (e) {
|
|
364
362
|
loadErrors.push(e);
|
|
@@ -371,7 +369,7 @@ function requireNative() {
|
|
|
371
369
|
}
|
|
372
370
|
try {
|
|
373
371
|
let binding = require("@oxlint/binding-openharmony-x64"), bindingPackageVersion = require("@oxlint/binding-openharmony-x64/package.json").version;
|
|
374
|
-
if (bindingPackageVersion !== "1.
|
|
372
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
375
373
|
return binding;
|
|
376
374
|
} catch (e) {
|
|
377
375
|
loadErrors.push(e);
|
|
@@ -384,7 +382,7 @@ function requireNative() {
|
|
|
384
382
|
}
|
|
385
383
|
try {
|
|
386
384
|
let binding = require("@oxlint/binding-openharmony-arm"), bindingPackageVersion = require("@oxlint/binding-openharmony-arm/package.json").version;
|
|
387
|
-
if (bindingPackageVersion !== "1.
|
|
385
|
+
if (bindingPackageVersion !== "1.83.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
388
386
|
return binding;
|
|
389
387
|
} catch (e) {
|
|
390
388
|
loadErrors.push(e);
|
|
@@ -451,7 +449,7 @@ if (forceWasi || (nativeBinding = requireNative()), !nativeBinding || forceWasi)
|
|
|
451
449
|
if (candidateError = __napiWasiResolveCandidate("@oxlint/binding-wasm32-wasi", !0, void 0), candidateFailed = candidateError !== null, !candidateFailed) {
|
|
452
450
|
if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
453
451
|
let bindingPackageVersion = require("@oxlint/binding-wasm32-wasi/package.json").version;
|
|
454
|
-
if (bindingPackageVersion !== "1.
|
|
452
|
+
if (bindingPackageVersion !== "1.83.0") throw Error(`WASI binding package version mismatch, expected 1.83.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
455
453
|
}
|
|
456
454
|
wasiBinding = require("@oxlint/binding-wasm32-wasi"), nativeBinding = wasiBinding, wasiBindingLoaded = !0;
|
|
457
455
|
}
|