@depup/oxlint 1.81.0-depup.0 → 1.82.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 +16 -30
- package/dist/plugins-dev.d.ts +128 -31
- 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.82.0 |
|
|
17
|
+
| Processed | 2026-09-07 |
|
|
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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.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.82.0") throw Error(`WASI binding package version mismatch, expected 1.82.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
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1140,7 +1140,7 @@ interface DummyRuleMap {
|
|
|
1140
1140
|
"no-undefined"?: RuleNoConfig;
|
|
1141
1141
|
"no-underscore-dangle"?: RuleNoConfig | [AllowWarnDeny, NoUnderscoreDangleConfig];
|
|
1142
1142
|
"no-unexpected-multiline"?: RuleNoConfig;
|
|
1143
|
-
"no-unmodified-loop-condition"?: RuleNoConfig;
|
|
1143
|
+
"no-unmodified-loop-condition"?: RuleNoConfig | [AllowWarnDeny, NoUnmodifiedLoopCondition];
|
|
1144
1144
|
"no-unneeded-ternary"?: RuleNoConfig | [AllowWarnDeny, NoUnneededTernary];
|
|
1145
1145
|
"no-unreachable"?: RuleNoConfig;
|
|
1146
1146
|
"no-unreachable-loop"?: RuleNoConfig | [AllowWarnDeny, NoUnreachableLoopConfig];
|
|
@@ -1706,7 +1706,7 @@ interface DummyRuleMap {
|
|
|
1706
1706
|
"vue/valid-define-props"?: RuleNoConfig;
|
|
1707
1707
|
"vue/valid-next-tick"?: RuleNoConfig;
|
|
1708
1708
|
yoda?: RuleNoConfig | [AllowWarnDeny, AllowYoda] | [AllowWarnDeny, AllowYoda, YodaOptions];
|
|
1709
|
-
[k: string]: DummyRule | RuleNoConfig | [AllowWarnDeny, AccessorPairsConfig] | [AllowWarnDeny, ArrayCallbackReturn] | [AllowWarnDeny, Mode2] | [AllowWarnDeny, Mode2, ArrowBodyStyleConfig] | [AllowWarnDeny, AlwaysNever] | [AllowWarnDeny, AlwaysNever, OptionsJsonEnum] | [AllowWarnDeny, ClassMethodsUseThisConfig] | [AllowWarnDeny, ComplexityConfigEnum] | [AllowWarnDeny, CurlyType] | [AllowWarnDeny, CurlyType, CurlyConsistent] | [AllowWarnDeny, DefaultCaseConfig] | [AllowWarnDeny, CompareType] | [AllowWarnDeny, CompareType, EqeqeqOptions] | [AllowWarnDeny, FuncNameMatchingMode] | [AllowWarnDeny, FuncNameMatchingMode, FuncNameMatchingConfig] | [AllowWarnDeny, FuncNameMatchingMode] | [AllowWarnDeny, FuncNameMatchingConfig] | [AllowWarnDeny, FuncNamesConfigType] | [AllowWarnDeny, FuncNamesConfigType, FuncNamesGeneratorsConfig] | [AllowWarnDeny, Style] | [AllowWarnDeny, Style, FuncStyleConfig] | [AllowWarnDeny, GetterReturn] | [AllowWarnDeny, PairOrder] | [AllowWarnDeny, PairOrder, GroupedAccessorPairsConfig] | [AllowWarnDeny, ...string[]] | [AllowWarnDeny, IdLengthConfig] | [AllowWarnDeny, string] | [AllowWarnDeny, string, IdMatchOptions] | [AllowWarnDeny, Mode] | [AllowWarnDeny, ExtensionRule] | [AllowWarnDeny, ExtensionRule, ImportExtensionsObject] | [AllowWarnDeny, ExtensionRule] | [AllowWarnDeny, ImportExtensionsObject] | [AllowWarnDeny, AbsoluteFirst] | [AllowWarnDeny, MaxDependenciesConfigJson] | [AllowWarnDeny, Namespace] | [AllowWarnDeny, NewlineAfterImport] | [AllowWarnDeny, NoAbsolutePath] | [AllowWarnDeny, NoAnonymousDefaultExport] | [AllowWarnDeny, NoCommonjs] | [AllowWarnDeny, NoCycle] | [AllowWarnDeny, NoDuplicates] | [AllowWarnDeny, NoDynamicRequire] | [AllowWarnDeny, NoNamespaceConfig] | [AllowWarnDeny, NoNodejsModulesConfig] | [AllowWarnDeny, NoUnassignedImportConfig] | [AllowWarnDeny, PreferDefaultExport] | [AllowWarnDeny, AlwaysNever] | [AllowWarnDeny, AlwaysNever, InitDeclarationsConfig] | [AllowWarnDeny, ConsistentTestItConfig] | [AllowWarnDeny, ExpectExpectConfig] | [AllowWarnDeny, MaxExpectsConfig] | [AllowWarnDeny, MaxNestedDescribeConfig] | [AllowWarnDeny, NoDeprecatedFunctionsConfig] | [AllowWarnDeny, NoHooksConfig] | [AllowWarnDeny, NoLargeSnapshotsConfig] | [AllowWarnDeny, NoRestrictedTestMethodsConfig] | [AllowWarnDeny, NoRestrictedMatchersConfig] | [AllowWarnDeny, NoStandaloneExpectConfig] | [AllowWarnDeny, PreferEndingWithAnExpectConfig] | [AllowWarnDeny, PreferExpectAssertionsConfig] | [AllowWarnDeny, PreferImportingJestGlobalsConfig] | [AllowWarnDeny, PreferLowercaseTitleConfig] | [AllowWarnDeny, SnapshotHintMode] | [AllowWarnDeny, RequireHookConfig] | [AllowWarnDeny, RequireTopLevelDescribeConfig] | [AllowWarnDeny, ValidExpectConfig] | [AllowWarnDeny, CheckTagNamesConfig] | [AllowWarnDeny, EmptyTagsConfig] | [AllowWarnDeny, NoBlankBlocks] | [AllowWarnDeny, NoDefaultsConfig] | [AllowWarnDeny, RequireParamConfig] | [AllowWarnDeny, RequireParamDescriptionConfig] | [AllowWarnDeny, RequireParamTypeConfig] | [AllowWarnDeny, RequireReturnsConfig] | [AllowWarnDeny, RequireYieldsConfig] | [AllowWarnDeny, AltTextConfigSchema] | [AllowWarnDeny, AnchorAmbiguousTextConfig] | [AllowWarnDeny, AnchorHasContentConfig] | [AllowWarnDeny, AnchorIsValidConfig] | [AllowWarnDeny, AriaRoleConfig] | [AllowWarnDeny, AutocompleteValidConfig] | [AllowWarnDeny, ControlHasAssociatedLabelConfig] | [AllowWarnDeny, HeadingHasContentConfig] | [AllowWarnDeny, ImgRedundantAltConfig] | [AllowWarnDeny, InteractiveSupportsFocusConfig] | [AllowWarnDeny, LabelHasAssociatedControlConfig] | [AllowWarnDeny, MediaHasCaptionConfig] | [AllowWarnDeny, MouseEventsHaveKeyEventsConfig] | [AllowWarnDeny, NoAutofocus] | [AllowWarnDeny, NoDistractingElementsConfig] | [AllowWarnDeny, NoInteractiveElementToNoninteractiveRoleConfig] | [AllowWarnDeny, NoNoninteractiveElementInteractionsConfig] | [AllowWarnDeny, NoNoninteractiveElementToInteractiveRoleConfig] | [AllowWarnDeny, NoNoninteractiveTabindexConfig] | [AllowWarnDeny, NoRedundantRolesConfig] | [AllowWarnDeny, NoStaticElementInteractionsConfig] | [AllowWarnDeny, AlwaysNever] | [AllowWarnDeny, AlwaysNever, LogicalAssignmentOperatorsConfig] | [AllowWarnDeny, MaxClassesPerFileConfigEnum] | [AllowWarnDeny, MaxDepthConfigEnum] | [AllowWarnDeny, MaxLinesConfigEnum] | [AllowWarnDeny, MaxLinesPerFunctionConfigEnum] | [AllowWarnDeny, MaxNestedCallbacksConfigEnum] | [AllowWarnDeny, MaxParamsConfigEnum] | [AllowWarnDeny, MaxStatementsConfigEnum] | [AllowWarnDeny, NewCapConfig] | [AllowWarnDeny, NoBitwiseConfig] | [AllowWarnDeny, NoCondAssignConfig] | [AllowWarnDeny, NoConsoleConfig] | [AllowWarnDeny, NoConstantBinaryExpressionConfig] | [AllowWarnDeny, NoConstantCondition] | [AllowWarnDeny, NoDuplicateImports] | [AllowWarnDeny, NoElseReturn] | [AllowWarnDeny, NoEmpty] | [AllowWarnDeny, NoEmptyFunctionConfig] | [AllowWarnDeny, NoEmptyPattern] | [AllowWarnDeny, NoEval] | [AllowWarnDeny, NoExtendNativeConfig] | [AllowWarnDeny, NoExtraBooleanCast] | [AllowWarnDeny, NoFallthroughConfig] | [AllowWarnDeny, NoGlobalAssignConfig] | [AllowWarnDeny, NoImplicitCoercionConfig] | [AllowWarnDeny, NoImplicitGlobalsConfig] | [AllowWarnDeny, NoInlineCommentsConfig] | [AllowWarnDeny, NoInnerDeclarationsConfig] | [AllowWarnDeny, NoInnerDeclarationsConfig, NoInnerDeclarationsOptions] | [AllowWarnDeny, NoInvalidRegexpConfig] | [AllowWarnDeny, NoIrregularWhitespaceConfig] | [AllowWarnDeny, NoLabels] | [AllowWarnDeny, NoMagicNumbersConfig] | [AllowWarnDeny, NoMisleadingCharacterClass] | [AllowWarnDeny, NoMultiAssign] | [AllowWarnDeny, NoParamReassignConfig] | [AllowWarnDeny, NoPlusplus] | [AllowWarnDeny, NoPromiseExecutorReturnConfig] | [AllowWarnDeny, NoRedeclare] | [AllowWarnDeny, NoRestrictedExportsConfig] | [AllowWarnDeny, ...NoRestrictedGlobalsConfigEnum[]] | [AllowWarnDeny, ...NoRestrictedImportsConfigEnum[]] | [AllowWarnDeny, ...PropertyDetails[]] | [AllowWarnDeny, NoReturnAssignMode] | [AllowWarnDeny, NoSelfAssign] | [AllowWarnDeny, NoSequences] | [AllowWarnDeny, NoShadowConfig] | [AllowWarnDeny, NoShadowRestrictedNamesConfig] | [AllowWarnDeny, NoUndef] | [AllowWarnDeny, NoUnderscoreDangleConfig] | [AllowWarnDeny, NoUnneededTernary] | [AllowWarnDeny, NoUnreachableLoopConfig] | [AllowWarnDeny, NoUnsafeNegation] | [AllowWarnDeny, NoUnsafeOptionalChaining] | [AllowWarnDeny, NoUnusedExpressionsConfig] | [AllowWarnDeny, NoUnusedVarsConfig] | [AllowWarnDeny, NoUseBeforeDefineConfigJson] | [AllowWarnDeny, NoUselessComputedKey] | [AllowWarnDeny, NoUselessEscapeConfig] | [AllowWarnDeny, NoUselessRenameConfig] | [AllowWarnDeny, NoVoid] | [AllowWarnDeny, NoWarningCommentsConfig] | [AllowWarnDeny, CallbackReturn] | [AllowWarnDeny, ExportsStyleMode] | [AllowWarnDeny, ExportsStyleMode, ExportsStyleOptions] | [AllowWarnDeny, HandleCallbackErrConfig] | [AllowWarnDeny, NoMixedRequiresConfig] | [AllowWarnDeny, NoProcessEnvConfig] | [AllowWarnDeny, NoSyncConfig] | [AllowWarnDeny, NoTopLevelAwaitConfig] | [AllowWarnDeny, ShorthandType] | [AllowWarnDeny, ShorthandType, ObjectShorthandOptions] | [AllowWarnDeny, OneVar] | [AllowWarnDeny, AlwaysNever] | [AllowWarnDeny, NoAsyncEndpointHandlersConfig] | [AllowWarnDeny, NoBarrelFile] | [AllowWarnDeny, NoMapSpreadConfig] | [AllowWarnDeny, NoOptionalChainingConfig] | [AllowWarnDeny, NoRestSpreadPropertiesOptions] | [AllowWarnDeny, PreferArrowCallbackConfig] | [AllowWarnDeny, PreferConstConfig] | [AllowWarnDeny, PreferDestructuringOption] | [AllowWarnDeny, PreferDestructuringOption, PreferDestructuringEnforcementConfig] | [AllowWarnDeny, PreferPromiseRejectErrors] | [AllowWarnDeny, PreferRegexLiteralsConfig] | [AllowWarnDeny, PreserveCaughtErrorOptions] | [AllowWarnDeny, AlwaysReturnConfig] | [AllowWarnDeny, CatchOrReturnConfig] | [AllowWarnDeny, NoCallbackInPromiseConfig] | [AllowWarnDeny, NoPromiseInCallbackConfig] | [AllowWarnDeny, NoReturnWrap] | [AllowWarnDeny, ParamNamesConfig] | [AllowWarnDeny, PreferAwaitToThenConfig] | [AllowWarnDeny, SpecOnlyConfig] | [AllowWarnDeny, RadixType] | [AllowWarnDeny, ReactPerfConfig] | [AllowWarnDeny, ButtonHasType] | [AllowWarnDeny, CheckedRequiresOnchangeOrReadonly] | [AllowWarnDeny, DisplayNameConfig] | [AllowWarnDeny, ExhaustiveDepsConfig] | [AllowWarnDeny, ForbidComponentPropsConfig] | [AllowWarnDeny, ForbidDomPropsConfig] | [AllowWarnDeny, ForbidElementsConfig] | [AllowWarnDeny, FunctionComponentDefinitionConfig] | [AllowWarnDeny, HookUseStateConfig] | [AllowWarnDeny, EnforceBooleanAttribute] | [AllowWarnDeny, EnforceBooleanAttribute, JsxBooleanValueOptions] | [AllowWarnDeny, JsxCurlyBracePresenceConfig] | [AllowWarnDeny, JsxFilenameExtensionConfig] | [AllowWarnDeny, FragmentMode] | [AllowWarnDeny, JsxHandlerNamesConfig] | [AllowWarnDeny, JsxKeyConfig] | [AllowWarnDeny, JsxMaxDepthConfig] | [AllowWarnDeny, JsxNoLiteralsConfig] | [AllowWarnDeny, JsxNoScriptUrlComponent[]] | [AllowWarnDeny, JsxNoScriptUrlComponent[], JsxNoScriptUrlOptions] | [AllowWarnDeny, JsxNoScriptUrlOptions] | [AllowWarnDeny, JsxNoTargetBlank] | [AllowWarnDeny, JsxNoUselessFragment] | [AllowWarnDeny, JsxPascalCaseConfig] | [AllowWarnDeny, JsxPropsNoSpreadingConfig] | [AllowWarnDeny, AllowedOrDisallowInFunc] | [AllowWarnDeny, NoMultiCompConfig] | [AllowWarnDeny, NoStringRefs] | [AllowWarnDeny, NoUnknownPropertyConfig] | [AllowWarnDeny, NoUnsafeConfig] | [AllowWarnDeny, NoUnstableNestedComponentsConfig] | [AllowWarnDeny, OnlyExportComponentsConfig] | [AllowWarnDeny, PreferFunctionComponent] | [AllowWarnDeny, SelfClosingComp] | [AllowWarnDeny, StylePropObjectConfig] | [AllowWarnDeny, RequireUnicodeRegexpConfig] | [AllowWarnDeny, SortImportsOptions] | [AllowWarnDeny, SortOrder] | [AllowWarnDeny, SortOrder, SortKeysOptions] | [AllowWarnDeny, SortVars] | [AllowWarnDeny, ArrayTypeConfig] | [AllowWarnDeny, BanTsCommentConfig] | [AllowWarnDeny, ClassLiteralPropertyStyleOption] | [AllowWarnDeny, PreferGenericType] | [AllowWarnDeny, ConsistentIndexedObjectStyleConfig] | [AllowWarnDeny, ConsistentReturnConfig] | [AllowWarnDeny, ConsistentTypeAssertionsConfig] | [AllowWarnDeny, ConsistentTypeDefinitionsConfig] | [AllowWarnDeny, ConsistentTypeExportsConfig] | [AllowWarnDeny, ConsistentTypeImportsConfig] | [AllowWarnDeny, DotNotationConfig] | [AllowWarnDeny, ExplicitFunctionReturnTypeConfig] | [AllowWarnDeny, ExplicitMemberAccessibilityConfig] | [AllowWarnDeny, ExplicitModuleBoundaryTypesConfig] | [AllowWarnDeny, MethodSignatureStyleConfig] | [AllowWarnDeny, NoBaseToStringConfig] | [AllowWarnDeny, NoConfusingVoidExpressionConfig] | [AllowWarnDeny, NoDeprecatedConfig] | [AllowWarnDeny, NoDuplicateTypeConstituentsConfig] | [AllowWarnDeny, NoEmptyInterface] | [AllowWarnDeny, NoEmptyObjectTypeConfig] | [AllowWarnDeny, NoExplicitAny] | [AllowWarnDeny, NoExtraneousClass] | [AllowWarnDeny, NoFloatingPromisesConfig] | [AllowWarnDeny, NoInferrableTypes] | [AllowWarnDeny, NoInvalidVoidTypeConfig] | [AllowWarnDeny, NoMeaninglessVoidOperatorConfig] | [AllowWarnDeny, NoMisusedPromisesConfig] | [AllowWarnDeny, NoMisusedSpreadConfig] | [AllowWarnDeny, NoNamespace] | [AllowWarnDeny, NoRequireImportsConfig] | [AllowWarnDeny, NoRestrictedTypesConfig] | [AllowWarnDeny, NoThisAliasConfig] | [AllowWarnDeny, NoUnnecessaryBooleanLiteralCompareConfig] | [AllowWarnDeny, NoUnnecessaryConditionConfig] | [AllowWarnDeny, NoUnnecessaryTypeAssertionConfig] | [AllowWarnDeny, NoUnsafeMemberAccessConfig] | [AllowWarnDeny, OnlyThrowErrorConfig] | [AllowWarnDeny, ParameterPropertiesConfig] | [AllowWarnDeny, PreferLiteralEnumMember] | [AllowWarnDeny, PreferNullishCoalescingConfig] | [AllowWarnDeny, PreferOptionalChainConfig] | [AllowWarnDeny, PreferPromiseRejectErrorsConfig] | [AllowWarnDeny, PreferReadonlyConfig] | [AllowWarnDeny, PreferReadonlyParameterTypesConfig] | [AllowWarnDeny, PreferStringStartsEndsWithConfig] | [AllowWarnDeny, PromiseFunctionAsyncConfig] | [AllowWarnDeny, RequireArraySortCompareConfig] | [AllowWarnDeny, RestrictPlusOperandsConfig] | [AllowWarnDeny, RestrictTemplateExpressionsConfig] | [AllowWarnDeny, ReturnAwaitOption] | [AllowWarnDeny, StrictBooleanExpressionsConfig] | [AllowWarnDeny, StrictVoidReturnConfig] | [AllowWarnDeny, SwitchExhaustivenessCheckConfig] | [AllowWarnDeny, TripleSlashReferenceConfig] | [AllowWarnDeny, UnboundMethodConfig] | [AllowWarnDeny, UnifiedSignaturesOptions] | [AllowWarnDeny, BomOptionType] | [AllowWarnDeny, CatchErrorNameConfig] | [AllowWarnDeny, ConsistentFunctionScoping] | [AllowWarnDeny, ExplicitLengthCheck] | [AllowWarnDeny, ExplicitTimerDelayMode] | [AllowWarnDeny, ImportStyleConfig] | [AllowWarnDeny, MaxNestedCalls] | [AllowWarnDeny, NoArrayReduce] | [AllowWarnDeny, NoArrayReverse] | [AllowWarnDeny, NoArraySort] | [AllowWarnDeny, NoInstanceofBuiltinsConfig] | [AllowWarnDeny, NoNull] | [AllowWarnDeny, NoTypeofUndefined] | [AllowWarnDeny, NoUselessPromiseResolveRejectOptions] | [AllowWarnDeny, NoUselessUndefined] | [AllowWarnDeny, NumericSeparatorsStyleConfig] | [AllowWarnDeny, PreferAtConfig] | [AllowWarnDeny, PreferExportFrom] | [AllowWarnDeny, PreferNumberPropertiesConfig] | [AllowWarnDeny, PreferObjectFromEntriesConfig] | [AllowWarnDeny, PreferSingleCallConfig] | [AllowWarnDeny, PreferStructuredCloneConfig] | [AllowWarnDeny, PreferTernaryOption] | [AllowWarnDeny, RelativeUrlStyleConfig] | [AllowWarnDeny, SwitchCaseBracesConfig] | [AllowWarnDeny, TextEncodingIdentifierCase] | [AllowWarnDeny, UseIsnan] | [AllowWarnDeny, ValidTypeof] | [AllowWarnDeny, ConsistentEachForJson] | [AllowWarnDeny, ConsistentTestFilenameConfig] | [AllowWarnDeny, ConsistentVitestConfig] | [AllowWarnDeny, PreferImportInMockConfig] | [AllowWarnDeny, RequireMockTypeParametersConfig] | [AllowWarnDeny, CaseType] | [AllowWarnDeny, DeclarationStyle] | [AllowWarnDeny, DeclarationStyle2] | [AllowWarnDeny, DefinePropsDestructuring] | [AllowWarnDeny, MaxProps] | [AllowWarnDeny, NextTickOption] | [AllowWarnDeny, NoAsyncInComputedPropertiesConfig] | [AllowWarnDeny, NoDeprecatedModelDefinitionConfig] | [AllowWarnDeny, NoDupeKeysConfig] | [AllowWarnDeny, NoReservedComponentNames] | [AllowWarnDeny, NoReservedKeysConfig] | [AllowWarnDeny, NoReservedPropsConfig] | [AllowWarnDeny, CaseType2] | [AllowWarnDeny, CaseType2, Options] | [AllowWarnDeny, RequireDirectExport] | [AllowWarnDeny, ReturnInComputedPropertyConfig] | [AllowWarnDeny, AllowYoda] | [AllowWarnDeny, AllowYoda, YodaOptions] | undefined;
|
|
1709
|
+
[k: string]: DummyRule | RuleNoConfig | [AllowWarnDeny, AccessorPairsConfig] | [AllowWarnDeny, ArrayCallbackReturn] | [AllowWarnDeny, Mode2] | [AllowWarnDeny, Mode2, ArrowBodyStyleConfig] | [AllowWarnDeny, AlwaysNever] | [AllowWarnDeny, AlwaysNever, OptionsJsonEnum] | [AllowWarnDeny, ClassMethodsUseThisConfig] | [AllowWarnDeny, ComplexityConfigEnum] | [AllowWarnDeny, CurlyType] | [AllowWarnDeny, CurlyType, CurlyConsistent] | [AllowWarnDeny, DefaultCaseConfig] | [AllowWarnDeny, CompareType] | [AllowWarnDeny, CompareType, EqeqeqOptions] | [AllowWarnDeny, FuncNameMatchingMode] | [AllowWarnDeny, FuncNameMatchingMode, FuncNameMatchingConfig] | [AllowWarnDeny, FuncNameMatchingMode] | [AllowWarnDeny, FuncNameMatchingConfig] | [AllowWarnDeny, FuncNamesConfigType] | [AllowWarnDeny, FuncNamesConfigType, FuncNamesGeneratorsConfig] | [AllowWarnDeny, Style] | [AllowWarnDeny, Style, FuncStyleConfig] | [AllowWarnDeny, GetterReturn] | [AllowWarnDeny, PairOrder] | [AllowWarnDeny, PairOrder, GroupedAccessorPairsConfig] | [AllowWarnDeny, ...string[]] | [AllowWarnDeny, IdLengthConfig] | [AllowWarnDeny, string] | [AllowWarnDeny, string, IdMatchOptions] | [AllowWarnDeny, Mode] | [AllowWarnDeny, ExtensionRule] | [AllowWarnDeny, ExtensionRule, ImportExtensionsObject] | [AllowWarnDeny, ExtensionRule] | [AllowWarnDeny, ImportExtensionsObject] | [AllowWarnDeny, AbsoluteFirst] | [AllowWarnDeny, MaxDependenciesConfigJson] | [AllowWarnDeny, Namespace] | [AllowWarnDeny, NewlineAfterImport] | [AllowWarnDeny, NoAbsolutePath] | [AllowWarnDeny, NoAnonymousDefaultExport] | [AllowWarnDeny, NoCommonjs] | [AllowWarnDeny, NoCycle] | [AllowWarnDeny, NoDuplicates] | [AllowWarnDeny, NoDynamicRequire] | [AllowWarnDeny, NoNamespaceConfig] | [AllowWarnDeny, NoNodejsModulesConfig] | [AllowWarnDeny, NoUnassignedImportConfig] | [AllowWarnDeny, PreferDefaultExport] | [AllowWarnDeny, AlwaysNever] | [AllowWarnDeny, AlwaysNever, InitDeclarationsConfig] | [AllowWarnDeny, ConsistentTestItConfig] | [AllowWarnDeny, ExpectExpectConfig] | [AllowWarnDeny, MaxExpectsConfig] | [AllowWarnDeny, MaxNestedDescribeConfig] | [AllowWarnDeny, NoDeprecatedFunctionsConfig] | [AllowWarnDeny, NoHooksConfig] | [AllowWarnDeny, NoLargeSnapshotsConfig] | [AllowWarnDeny, NoRestrictedTestMethodsConfig] | [AllowWarnDeny, NoRestrictedMatchersConfig] | [AllowWarnDeny, NoStandaloneExpectConfig] | [AllowWarnDeny, PreferEndingWithAnExpectConfig] | [AllowWarnDeny, PreferExpectAssertionsConfig] | [AllowWarnDeny, PreferImportingJestGlobalsConfig] | [AllowWarnDeny, PreferLowercaseTitleConfig] | [AllowWarnDeny, SnapshotHintMode] | [AllowWarnDeny, RequireHookConfig] | [AllowWarnDeny, RequireTopLevelDescribeConfig] | [AllowWarnDeny, ValidExpectConfig] | [AllowWarnDeny, CheckTagNamesConfig] | [AllowWarnDeny, EmptyTagsConfig] | [AllowWarnDeny, NoBlankBlocks] | [AllowWarnDeny, NoDefaultsConfig] | [AllowWarnDeny, RequireParamConfig] | [AllowWarnDeny, RequireParamDescriptionConfig] | [AllowWarnDeny, RequireParamTypeConfig] | [AllowWarnDeny, RequireReturnsConfig] | [AllowWarnDeny, RequireYieldsConfig] | [AllowWarnDeny, AltTextConfigSchema] | [AllowWarnDeny, AnchorAmbiguousTextConfig] | [AllowWarnDeny, AnchorHasContentConfig] | [AllowWarnDeny, AnchorIsValidConfig] | [AllowWarnDeny, AriaRoleConfig] | [AllowWarnDeny, AutocompleteValidConfig] | [AllowWarnDeny, ControlHasAssociatedLabelConfig] | [AllowWarnDeny, HeadingHasContentConfig] | [AllowWarnDeny, ImgRedundantAltConfig] | [AllowWarnDeny, InteractiveSupportsFocusConfig] | [AllowWarnDeny, LabelHasAssociatedControlConfig] | [AllowWarnDeny, MediaHasCaptionConfig] | [AllowWarnDeny, MouseEventsHaveKeyEventsConfig] | [AllowWarnDeny, NoAutofocus] | [AllowWarnDeny, NoDistractingElementsConfig] | [AllowWarnDeny, NoInteractiveElementToNoninteractiveRoleConfig] | [AllowWarnDeny, NoNoninteractiveElementInteractionsConfig] | [AllowWarnDeny, NoNoninteractiveElementToInteractiveRoleConfig] | [AllowWarnDeny, NoNoninteractiveTabindexConfig] | [AllowWarnDeny, NoRedundantRolesConfig] | [AllowWarnDeny, NoStaticElementInteractionsConfig] | [AllowWarnDeny, AlwaysNever] | [AllowWarnDeny, AlwaysNever, LogicalAssignmentOperatorsConfig] | [AllowWarnDeny, MaxClassesPerFileConfigEnum] | [AllowWarnDeny, MaxDepthConfigEnum] | [AllowWarnDeny, MaxLinesConfigEnum] | [AllowWarnDeny, MaxLinesPerFunctionConfigEnum] | [AllowWarnDeny, MaxNestedCallbacksConfigEnum] | [AllowWarnDeny, MaxParamsConfigEnum] | [AllowWarnDeny, MaxStatementsConfigEnum] | [AllowWarnDeny, NewCapConfig] | [AllowWarnDeny, NoBitwiseConfig] | [AllowWarnDeny, NoCondAssignConfig] | [AllowWarnDeny, NoConsoleConfig] | [AllowWarnDeny, NoConstantBinaryExpressionConfig] | [AllowWarnDeny, NoConstantCondition] | [AllowWarnDeny, NoDuplicateImports] | [AllowWarnDeny, NoElseReturn] | [AllowWarnDeny, NoEmpty] | [AllowWarnDeny, NoEmptyFunctionConfig] | [AllowWarnDeny, NoEmptyPattern] | [AllowWarnDeny, NoEval] | [AllowWarnDeny, NoExtendNativeConfig] | [AllowWarnDeny, NoExtraBooleanCast] | [AllowWarnDeny, NoFallthroughConfig] | [AllowWarnDeny, NoGlobalAssignConfig] | [AllowWarnDeny, NoImplicitCoercionConfig] | [AllowWarnDeny, NoImplicitGlobalsConfig] | [AllowWarnDeny, NoInlineCommentsConfig] | [AllowWarnDeny, NoInnerDeclarationsConfig] | [AllowWarnDeny, NoInnerDeclarationsConfig, NoInnerDeclarationsOptions] | [AllowWarnDeny, NoInvalidRegexpConfig] | [AllowWarnDeny, NoIrregularWhitespaceConfig] | [AllowWarnDeny, NoLabels] | [AllowWarnDeny, NoMagicNumbersConfig] | [AllowWarnDeny, NoMisleadingCharacterClass] | [AllowWarnDeny, NoMultiAssign] | [AllowWarnDeny, NoParamReassignConfig] | [AllowWarnDeny, NoPlusplus] | [AllowWarnDeny, NoPromiseExecutorReturnConfig] | [AllowWarnDeny, NoRedeclare] | [AllowWarnDeny, NoRestrictedExportsConfig] | [AllowWarnDeny, ...NoRestrictedGlobalsConfigEnum[]] | [AllowWarnDeny, ...NoRestrictedImportsConfigEnum[]] | [AllowWarnDeny, ...PropertyDetails[]] | [AllowWarnDeny, NoReturnAssignMode] | [AllowWarnDeny, NoSelfAssign] | [AllowWarnDeny, NoSequences] | [AllowWarnDeny, NoShadowConfig] | [AllowWarnDeny, NoShadowRestrictedNamesConfig] | [AllowWarnDeny, NoUndef] | [AllowWarnDeny, NoUnderscoreDangleConfig] | [AllowWarnDeny, NoUnmodifiedLoopCondition] | [AllowWarnDeny, NoUnneededTernary] | [AllowWarnDeny, NoUnreachableLoopConfig] | [AllowWarnDeny, NoUnsafeNegation] | [AllowWarnDeny, NoUnsafeOptionalChaining] | [AllowWarnDeny, NoUnusedExpressionsConfig] | [AllowWarnDeny, NoUnusedVarsConfig] | [AllowWarnDeny, NoUseBeforeDefineConfigJson] | [AllowWarnDeny, NoUselessComputedKey] | [AllowWarnDeny, NoUselessEscapeConfig] | [AllowWarnDeny, NoUselessRenameConfig] | [AllowWarnDeny, NoVoid] | [AllowWarnDeny, NoWarningCommentsConfig] | [AllowWarnDeny, CallbackReturn] | [AllowWarnDeny, ExportsStyleMode] | [AllowWarnDeny, ExportsStyleMode, ExportsStyleOptions] | [AllowWarnDeny, HandleCallbackErrConfig] | [AllowWarnDeny, NoMixedRequiresConfig] | [AllowWarnDeny, NoProcessEnvConfig] | [AllowWarnDeny, NoSyncConfig] | [AllowWarnDeny, NoTopLevelAwaitConfig] | [AllowWarnDeny, ShorthandType] | [AllowWarnDeny, ShorthandType, ObjectShorthandOptions] | [AllowWarnDeny, OneVar] | [AllowWarnDeny, AlwaysNever] | [AllowWarnDeny, NoAsyncEndpointHandlersConfig] | [AllowWarnDeny, NoBarrelFile] | [AllowWarnDeny, NoMapSpreadConfig] | [AllowWarnDeny, NoOptionalChainingConfig] | [AllowWarnDeny, NoRestSpreadPropertiesOptions] | [AllowWarnDeny, PreferArrowCallbackConfig] | [AllowWarnDeny, PreferConstConfig] | [AllowWarnDeny, PreferDestructuringOption] | [AllowWarnDeny, PreferDestructuringOption, PreferDestructuringEnforcementConfig] | [AllowWarnDeny, PreferPromiseRejectErrors] | [AllowWarnDeny, PreferRegexLiteralsConfig] | [AllowWarnDeny, PreserveCaughtErrorOptions] | [AllowWarnDeny, AlwaysReturnConfig] | [AllowWarnDeny, CatchOrReturnConfig] | [AllowWarnDeny, NoCallbackInPromiseConfig] | [AllowWarnDeny, NoPromiseInCallbackConfig] | [AllowWarnDeny, NoReturnWrap] | [AllowWarnDeny, ParamNamesConfig] | [AllowWarnDeny, PreferAwaitToThenConfig] | [AllowWarnDeny, SpecOnlyConfig] | [AllowWarnDeny, RadixType] | [AllowWarnDeny, ReactPerfConfig] | [AllowWarnDeny, ButtonHasType] | [AllowWarnDeny, CheckedRequiresOnchangeOrReadonly] | [AllowWarnDeny, DisplayNameConfig] | [AllowWarnDeny, ExhaustiveDepsConfig] | [AllowWarnDeny, ForbidComponentPropsConfig] | [AllowWarnDeny, ForbidDomPropsConfig] | [AllowWarnDeny, ForbidElementsConfig] | [AllowWarnDeny, FunctionComponentDefinitionConfig] | [AllowWarnDeny, HookUseStateConfig] | [AllowWarnDeny, EnforceBooleanAttribute] | [AllowWarnDeny, EnforceBooleanAttribute, JsxBooleanValueOptions] | [AllowWarnDeny, JsxCurlyBracePresenceConfig] | [AllowWarnDeny, JsxFilenameExtensionConfig] | [AllowWarnDeny, FragmentMode] | [AllowWarnDeny, JsxHandlerNamesConfig] | [AllowWarnDeny, JsxKeyConfig] | [AllowWarnDeny, JsxMaxDepthConfig] | [AllowWarnDeny, JsxNoLiteralsConfig] | [AllowWarnDeny, JsxNoScriptUrlComponent[]] | [AllowWarnDeny, JsxNoScriptUrlComponent[], JsxNoScriptUrlOptions] | [AllowWarnDeny, JsxNoScriptUrlOptions] | [AllowWarnDeny, JsxNoTargetBlank] | [AllowWarnDeny, JsxNoUselessFragment] | [AllowWarnDeny, JsxPascalCaseConfig] | [AllowWarnDeny, JsxPropsNoSpreadingConfig] | [AllowWarnDeny, AllowedOrDisallowInFunc] | [AllowWarnDeny, NoMultiCompConfig] | [AllowWarnDeny, NoStringRefs] | [AllowWarnDeny, NoUnknownPropertyConfig] | [AllowWarnDeny, NoUnsafeConfig] | [AllowWarnDeny, NoUnstableNestedComponentsConfig] | [AllowWarnDeny, OnlyExportComponentsConfig] | [AllowWarnDeny, PreferFunctionComponent] | [AllowWarnDeny, SelfClosingComp] | [AllowWarnDeny, StylePropObjectConfig] | [AllowWarnDeny, RequireUnicodeRegexpConfig] | [AllowWarnDeny, SortImportsOptions] | [AllowWarnDeny, SortOrder] | [AllowWarnDeny, SortOrder, SortKeysOptions] | [AllowWarnDeny, SortVars] | [AllowWarnDeny, ArrayTypeConfig] | [AllowWarnDeny, BanTsCommentConfig] | [AllowWarnDeny, ClassLiteralPropertyStyleOption] | [AllowWarnDeny, PreferGenericType] | [AllowWarnDeny, ConsistentIndexedObjectStyleConfig] | [AllowWarnDeny, ConsistentReturnConfig] | [AllowWarnDeny, ConsistentTypeAssertionsConfig] | [AllowWarnDeny, ConsistentTypeDefinitionsConfig] | [AllowWarnDeny, ConsistentTypeExportsConfig] | [AllowWarnDeny, ConsistentTypeImportsConfig] | [AllowWarnDeny, DotNotationConfig] | [AllowWarnDeny, ExplicitFunctionReturnTypeConfig] | [AllowWarnDeny, ExplicitMemberAccessibilityConfig] | [AllowWarnDeny, ExplicitModuleBoundaryTypesConfig] | [AllowWarnDeny, MethodSignatureStyleConfig] | [AllowWarnDeny, NoBaseToStringConfig] | [AllowWarnDeny, NoConfusingVoidExpressionConfig] | [AllowWarnDeny, NoDeprecatedConfig] | [AllowWarnDeny, NoDuplicateTypeConstituentsConfig] | [AllowWarnDeny, NoEmptyInterface] | [AllowWarnDeny, NoEmptyObjectTypeConfig] | [AllowWarnDeny, NoExplicitAny] | [AllowWarnDeny, NoExtraneousClass] | [AllowWarnDeny, NoFloatingPromisesConfig] | [AllowWarnDeny, NoInferrableTypes] | [AllowWarnDeny, NoInvalidVoidTypeConfig] | [AllowWarnDeny, NoMeaninglessVoidOperatorConfig] | [AllowWarnDeny, NoMisusedPromisesConfig] | [AllowWarnDeny, NoMisusedSpreadConfig] | [AllowWarnDeny, NoNamespace] | [AllowWarnDeny, NoRequireImportsConfig] | [AllowWarnDeny, NoRestrictedTypesConfig] | [AllowWarnDeny, NoThisAliasConfig] | [AllowWarnDeny, NoUnnecessaryBooleanLiteralCompareConfig] | [AllowWarnDeny, NoUnnecessaryConditionConfig] | [AllowWarnDeny, NoUnnecessaryTypeAssertionConfig] | [AllowWarnDeny, NoUnsafeMemberAccessConfig] | [AllowWarnDeny, OnlyThrowErrorConfig] | [AllowWarnDeny, ParameterPropertiesConfig] | [AllowWarnDeny, PreferLiteralEnumMember] | [AllowWarnDeny, PreferNullishCoalescingConfig] | [AllowWarnDeny, PreferOptionalChainConfig] | [AllowWarnDeny, PreferPromiseRejectErrorsConfig] | [AllowWarnDeny, PreferReadonlyConfig] | [AllowWarnDeny, PreferReadonlyParameterTypesConfig] | [AllowWarnDeny, PreferStringStartsEndsWithConfig] | [AllowWarnDeny, PromiseFunctionAsyncConfig] | [AllowWarnDeny, RequireArraySortCompareConfig] | [AllowWarnDeny, RestrictPlusOperandsConfig] | [AllowWarnDeny, RestrictTemplateExpressionsConfig] | [AllowWarnDeny, ReturnAwaitOption] | [AllowWarnDeny, StrictBooleanExpressionsConfig] | [AllowWarnDeny, StrictVoidReturnConfig] | [AllowWarnDeny, SwitchExhaustivenessCheckConfig] | [AllowWarnDeny, TripleSlashReferenceConfig] | [AllowWarnDeny, UnboundMethodConfig] | [AllowWarnDeny, UnifiedSignaturesOptions] | [AllowWarnDeny, BomOptionType] | [AllowWarnDeny, CatchErrorNameConfig] | [AllowWarnDeny, ConsistentFunctionScoping] | [AllowWarnDeny, ExplicitLengthCheck] | [AllowWarnDeny, ExplicitTimerDelayMode] | [AllowWarnDeny, ImportStyleConfig] | [AllowWarnDeny, MaxNestedCalls] | [AllowWarnDeny, NoArrayReduce] | [AllowWarnDeny, NoArrayReverse] | [AllowWarnDeny, NoArraySort] | [AllowWarnDeny, NoInstanceofBuiltinsConfig] | [AllowWarnDeny, NoNull] | [AllowWarnDeny, NoTypeofUndefined] | [AllowWarnDeny, NoUselessPromiseResolveRejectOptions] | [AllowWarnDeny, NoUselessUndefined] | [AllowWarnDeny, NumericSeparatorsStyleConfig] | [AllowWarnDeny, PreferAtConfig] | [AllowWarnDeny, PreferExportFrom] | [AllowWarnDeny, PreferNumberPropertiesConfig] | [AllowWarnDeny, PreferObjectFromEntriesConfig] | [AllowWarnDeny, PreferSingleCallConfig] | [AllowWarnDeny, PreferStructuredCloneConfig] | [AllowWarnDeny, PreferTernaryOption] | [AllowWarnDeny, RelativeUrlStyleConfig] | [AllowWarnDeny, SwitchCaseBracesConfig] | [AllowWarnDeny, TextEncodingIdentifierCase] | [AllowWarnDeny, UseIsnan] | [AllowWarnDeny, ValidTypeof] | [AllowWarnDeny, ConsistentEachForJson] | [AllowWarnDeny, ConsistentTestFilenameConfig] | [AllowWarnDeny, ConsistentVitestConfig] | [AllowWarnDeny, PreferImportInMockConfig] | [AllowWarnDeny, RequireMockTypeParametersConfig] | [AllowWarnDeny, CaseType] | [AllowWarnDeny, DeclarationStyle] | [AllowWarnDeny, DeclarationStyle2] | [AllowWarnDeny, DefinePropsDestructuring] | [AllowWarnDeny, MaxProps] | [AllowWarnDeny, NextTickOption] | [AllowWarnDeny, NoAsyncInComputedPropertiesConfig] | [AllowWarnDeny, NoDeprecatedModelDefinitionConfig] | [AllowWarnDeny, NoDupeKeysConfig] | [AllowWarnDeny, NoReservedComponentNames] | [AllowWarnDeny, NoReservedKeysConfig] | [AllowWarnDeny, NoReservedPropsConfig] | [AllowWarnDeny, CaseType2] | [AllowWarnDeny, CaseType2, Options] | [AllowWarnDeny, RequireDirectExport] | [AllowWarnDeny, ReturnInComputedPropertyConfig] | [AllowWarnDeny, AllowYoda] | [AllowWarnDeny, AllowYoda, YodaOptions] | undefined;
|
|
1710
1710
|
}
|
|
1711
1711
|
interface AccessorPairsConfig {
|
|
1712
1712
|
/**
|
|
@@ -3720,6 +3720,13 @@ interface NoUnderscoreDangleConfig {
|
|
|
3720
3720
|
*/
|
|
3721
3721
|
enforceInMethodNames?: boolean;
|
|
3722
3722
|
}
|
|
3723
|
+
interface NoUnmodifiedLoopCondition {
|
|
3724
|
+
/**
|
|
3725
|
+
* Whether references in each branch of a conditional expression should be checked
|
|
3726
|
+
* independently instead of checking the result of the entire expression.
|
|
3727
|
+
*/
|
|
3728
|
+
checkConditionalExpressions?: boolean;
|
|
3729
|
+
}
|
|
3723
3730
|
interface NoUnneededTernary {
|
|
3724
3731
|
/**
|
|
3725
3732
|
* Whether to allow the default assignment pattern `x ? x : y`.
|
|
@@ -6401,12 +6408,48 @@ interface NumericSeparatorsStyleConfig {
|
|
|
6401
6408
|
* Configuration for binary literals (e.g. `0b1010_0001` and bigint variants).
|
|
6402
6409
|
* Controls how digits are grouped and when separators are applied.
|
|
6403
6410
|
*/
|
|
6404
|
-
binary?:
|
|
6411
|
+
binary?: {
|
|
6412
|
+
/**
|
|
6413
|
+
* The number of digits per group when inserting numeric separators.
|
|
6414
|
+
* For example, a `groupLength` of 3 formats `1234567` as `1_234_567`.
|
|
6415
|
+
*/
|
|
6416
|
+
groupLength?: number;
|
|
6417
|
+
/**
|
|
6418
|
+
* The minimum number of digits required before grouping is applied.
|
|
6419
|
+
* Values with fewer digits than this threshold will not be grouped.
|
|
6420
|
+
*/
|
|
6421
|
+
minimumDigits?: number;
|
|
6422
|
+
/**
|
|
6423
|
+
* Only enforce the rule when the numeric literal already contains a separator (`_`).
|
|
6424
|
+
*
|
|
6425
|
+
* When `true`, numbers without separators are left as-is; when `false` (default),
|
|
6426
|
+
* grouping will be enforced for eligible numbers even if they don't include separators yet.
|
|
6427
|
+
*/
|
|
6428
|
+
onlyIfContainsSeparator?: boolean;
|
|
6429
|
+
};
|
|
6405
6430
|
/**
|
|
6406
6431
|
* Configuration for hexadecimal literals (e.g. `0xAB_CD`, `0Xab_cd`, and bigint variants).
|
|
6407
6432
|
* Controls how digits are grouped and when separators are applied.
|
|
6408
6433
|
*/
|
|
6409
|
-
hexadecimal?:
|
|
6434
|
+
hexadecimal?: {
|
|
6435
|
+
/**
|
|
6436
|
+
* The number of digits per group when inserting numeric separators.
|
|
6437
|
+
* For example, a `groupLength` of 3 formats `1234567` as `1_234_567`.
|
|
6438
|
+
*/
|
|
6439
|
+
groupLength?: number;
|
|
6440
|
+
/**
|
|
6441
|
+
* The minimum number of digits required before grouping is applied.
|
|
6442
|
+
* Values with fewer digits than this threshold will not be grouped.
|
|
6443
|
+
*/
|
|
6444
|
+
minimumDigits?: number;
|
|
6445
|
+
/**
|
|
6446
|
+
* Only enforce the rule when the numeric literal already contains a separator (`_`).
|
|
6447
|
+
*
|
|
6448
|
+
* When `true`, numbers without separators are left as-is; when `false` (default),
|
|
6449
|
+
* grouping will be enforced for eligible numbers even if they don't include separators yet.
|
|
6450
|
+
*/
|
|
6451
|
+
onlyIfContainsSeparator?: boolean;
|
|
6452
|
+
};
|
|
6410
6453
|
/**
|
|
6411
6454
|
* Configuration for decimal numbers (integers, fraction parts, and exponents).
|
|
6412
6455
|
* Controls how digits are grouped and when separators are applied.
|
|
@@ -6416,26 +6459,25 @@ interface NumericSeparatorsStyleConfig {
|
|
|
6416
6459
|
* Configuration for octal literals (e.g. `0o1234_5670` and bigint variants).
|
|
6417
6460
|
* Controls how digits are grouped and when separators are applied.
|
|
6418
6461
|
*/
|
|
6419
|
-
octal?:
|
|
6420
|
-
|
|
6421
|
-
|
|
6422
|
-
|
|
6423
|
-
|
|
6424
|
-
|
|
6425
|
-
|
|
6426
|
-
|
|
6427
|
-
|
|
6428
|
-
|
|
6429
|
-
|
|
6430
|
-
|
|
6431
|
-
|
|
6432
|
-
|
|
6433
|
-
|
|
6434
|
-
|
|
6435
|
-
|
|
6436
|
-
|
|
6437
|
-
|
|
6438
|
-
minimumDigits?: number;
|
|
6462
|
+
octal?: {
|
|
6463
|
+
/**
|
|
6464
|
+
* The number of digits per group when inserting numeric separators.
|
|
6465
|
+
* For example, a `groupLength` of 3 formats `1234567` as `1_234_567`.
|
|
6466
|
+
*/
|
|
6467
|
+
groupLength?: number;
|
|
6468
|
+
/**
|
|
6469
|
+
* The minimum number of digits required before grouping is applied.
|
|
6470
|
+
* Values with fewer digits than this threshold will not be grouped.
|
|
6471
|
+
*/
|
|
6472
|
+
minimumDigits?: number;
|
|
6473
|
+
/**
|
|
6474
|
+
* Only enforce the rule when the numeric literal already contains a separator (`_`).
|
|
6475
|
+
*
|
|
6476
|
+
* When `true`, numbers without separators are left as-is; when `false` (default),
|
|
6477
|
+
* grouping will be enforced for eligible numbers even if they don't include separators yet.
|
|
6478
|
+
*/
|
|
6479
|
+
onlyIfContainsSeparator?: boolean;
|
|
6480
|
+
};
|
|
6439
6481
|
/**
|
|
6440
6482
|
* Only enforce the rule when the numeric literal already contains a separator (`_`).
|
|
6441
6483
|
*
|
|
@@ -7013,6 +7055,6 @@ interface OxlintConfig extends Oxlintrc {
|
|
|
7013
7055
|
* @param config - Oxlint configuration
|
|
7014
7056
|
* @returns Config unchanged
|
|
7015
7057
|
*/
|
|
7016
|
-
declare function defineConfig<T extends OxlintConfig>(config: T & OxlintConfig): T;
|
|
7058
|
+
export declare function defineConfig<T extends OxlintConfig>(config: T & OxlintConfig): T;
|
|
7017
7059
|
//#endregion
|
|
7018
|
-
export {
|
|
7060
|
+
export type { AllowWarnDeny, DummyRule, DummyRuleMap, ExternalPluginEntry, ExternalPluginsConfig, OxlintConfig, OxlintEnv, OxlintGlobals, OxlintOverride, RuleCategories };
|
package/dist/lint.js
CHANGED
|
@@ -1,19 +1,7 @@
|
|
|
1
|
+
import { i as __toESM, r as __require, t as __commonJSMin } from "./rolldown-runtime.js";
|
|
1
2
|
import { a as setCurrentWorkspace, n as currentWorkspace, o as workspaces, r as currentWorkspaceUri } from "./workspace2.js";
|
|
2
3
|
import { t as getErrorMessage } from "./utils.js";
|
|
3
|
-
import { createRequire } from "node:module";
|
|
4
4
|
import "node:assert";
|
|
5
|
-
//#region \0rolldown/runtime.js
|
|
6
|
-
var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports), __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from == "object" || typeof from == "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) key = keys[i], !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
8
|
-
get: ((k) => from[k]).bind(null, key),
|
|
9
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
10
|
-
});
|
|
11
|
-
return to;
|
|
12
|
-
}, __toESM = (mod, isNodeMode, target) => (target = mod == null ? {} : __create(__getProtoOf(mod)), __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
13
|
-
value: mod,
|
|
14
|
-
enumerable: !0
|
|
15
|
-
}) : target, mod)), __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
16
|
-
//#endregion
|
|
17
5
|
//#region src-js/generated/constants.ts
|
|
18
6
|
/**
|
|
19
7
|
* Total size of the allocator block (including metadata and allocator `ChunkFooter`).
|
|
@@ -14202,7 +14190,7 @@ const ArrayIsArray$4 = Array.isArray, ObjectFreeze$2 = Object.freeze;
|
|
|
14202
14190
|
* @param value - The value to deep freeze
|
|
14203
14191
|
*/
|
|
14204
14192
|
function deepFreezeJsonValue(value) {
|
|
14205
|
-
typeof value
|
|
14193
|
+
typeof value == "object" && value && (ArrayIsArray$4(value) ? deepFreezeJsonArray(value) : deepFreezeJsonObject(value));
|
|
14206
14194
|
}
|
|
14207
14195
|
/**
|
|
14208
14196
|
* Deep freeze a JSON object, recursively freezing all nested objects and arrays.
|
|
@@ -14243,7 +14231,7 @@ function deepCloneJsonObject(obj) {
|
|
|
14243
14231
|
let cloned = { ...obj };
|
|
14244
14232
|
for (let key in cloned) {
|
|
14245
14233
|
let value = cloned[key];
|
|
14246
|
-
typeof value
|
|
14234
|
+
typeof value == "object" && value && (cloned[key] = ArrayIsArray$4(value) ? deepCloneJsonArray(value) : deepCloneJsonObject(value));
|
|
14247
14235
|
}
|
|
14248
14236
|
return cloned;
|
|
14249
14237
|
}
|
|
@@ -14286,7 +14274,7 @@ function resetSettings() {
|
|
|
14286
14274
|
}
|
|
14287
14275
|
//#endregion
|
|
14288
14276
|
//#region package.json
|
|
14289
|
-
var version = "1.
|
|
14277
|
+
var version = "1.82.0";
|
|
14290
14278
|
//#endregion
|
|
14291
14279
|
//#region src-js/plugins/context.ts
|
|
14292
14280
|
const ObjectFreeze$1 = Object.freeze, ObjectCreate = Object.create, ObjectAssign = Object.assign, ObjectPreventExtensions = Object.preventExtensions;
|
|
@@ -16822,8 +16810,7 @@ var require_uri_all = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
16822
16810
|
module.exports = function(metaSchema, keywordsJsonPointers) {
|
|
16823
16811
|
for (var i = 0; i < keywordsJsonPointers.length; i++) {
|
|
16824
16812
|
metaSchema = JSON.parse(JSON.stringify(metaSchema));
|
|
16825
|
-
var segments = keywordsJsonPointers[i].split("/"), keywords = metaSchema, j;
|
|
16826
|
-
for (j = 1; j < segments.length; j++) keywords = keywords[segments[j]];
|
|
16813
|
+
for (var segments = keywordsJsonPointers[i].split("/"), keywords = metaSchema, j = 1; j < segments.length; j++) keywords = keywords[segments[j]];
|
|
16827
16814
|
for (j = 0; j < KEYWORDS.length; j++) {
|
|
16828
16815
|
var key = KEYWORDS[j], schema = keywords[key];
|
|
16829
16816
|
schema && (keywords[key] = { anyOf: [schema, { $ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#" }] });
|
|
@@ -17992,7 +17979,7 @@ function conformHookFn(hookFn, hookName) {
|
|
|
17992
17979
|
return hookFn;
|
|
17993
17980
|
}
|
|
17994
17981
|
//#endregion
|
|
17995
|
-
//#region ../../node_modules/.pnpm/eslint@10.
|
|
17982
|
+
//#region ../../node_modules/.pnpm/eslint@10.9.1/node_modules/eslint/lib/shared/assert.js
|
|
17996
17983
|
/**
|
|
17997
17984
|
* @fileoverview Assertion utilities equivalent to the Node.js node:asserts module.
|
|
17998
17985
|
* @author Josh Goldberg
|
|
@@ -19637,7 +19624,7 @@ var require_assert = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
19637
19624
|
let forkContext = this.forkContext;
|
|
19638
19625
|
if (!forkContext.reachable) return;
|
|
19639
19626
|
let context = getThrowContext(this);
|
|
19640
|
-
context
|
|
19627
|
+
context !== this && context.thrownForkContext.empty && (context.position === "try" || context.position === "catch" && context.hasFinalizer) && (context.thrownForkContext.add(forkContext.head), forkContext.replaceHead(forkContext.makeNext(-1, -1)));
|
|
19641
19628
|
}
|
|
19642
19629
|
/**
|
|
19643
19630
|
* Creates a context object of a loop statement and stacks it.
|
|
@@ -22248,14 +22235,13 @@ const resetWeakMaps = resetWeakMapsFn, { matches: esqueryMatches, parse: esquery
|
|
|
22248
22235
|
return new f().traverse(e, t);
|
|
22249
22236
|
}
|
|
22250
22237
|
function m(e, t) {
|
|
22251
|
-
var r
|
|
22252
|
-
|
|
22253
|
-
var r, n, o, a;
|
|
22254
|
-
for (n = e.length, o = 0; n;) t(e[a = o + (r = n >>> 1)]) ? n = r : (o = a + 1, n -= r + 1);
|
|
22238
|
+
var r = function(e, t) {
|
|
22239
|
+
for (var r, n = e.length, o = 0, a; n;) t(e[a = o + (r = n >>> 1)]) ? n = r : (o = a + 1, n -= r + 1);
|
|
22255
22240
|
return o;
|
|
22256
22241
|
}(t, (function(t) {
|
|
22257
22242
|
return t.range[0] > e.range[0];
|
|
22258
|
-
}))
|
|
22243
|
+
}));
|
|
22244
|
+
return e.extendedRange = [e.range[0], e.range[1]], r !== t.length && (e.extendedRange[1] = t[r].range[0]), --r >= 0 && (e.extendedRange[0] = t[r].range[1]), e;
|
|
22259
22245
|
}
|
|
22260
22246
|
return r = {
|
|
22261
22247
|
AssignmentExpression: "AssignmentExpression",
|
|
@@ -22482,14 +22468,14 @@ const resetWeakMaps = resetWeakMapsFn, { matches: esqueryMatches, parse: esquery
|
|
|
22482
22468
|
}, f.prototype.type = function() {
|
|
22483
22469
|
return this.current().type || this.__current.wrap;
|
|
22484
22470
|
}, f.prototype.parents = function() {
|
|
22485
|
-
var e, t, r;
|
|
22486
|
-
for (
|
|
22471
|
+
var e, t, r = [];
|
|
22472
|
+
for (e = 1, t = this.__leavelist.length; e < t; ++e) r.push(this.__leavelist[e].node);
|
|
22487
22473
|
return r;
|
|
22488
22474
|
}, f.prototype.current = function() {
|
|
22489
22475
|
return this.__current.node;
|
|
22490
22476
|
}, f.prototype.__execute = function(e, t) {
|
|
22491
|
-
var r, n;
|
|
22492
|
-
return
|
|
22477
|
+
var r, n = void 0;
|
|
22478
|
+
return r = this.__current, this.__current = t, this.__state = null, e && (n = e.call(this, t.node, this.__leavelist[this.__leavelist.length - 1].node)), this.__current = r, n;
|
|
22493
22479
|
}, f.prototype.notify = function(e) {
|
|
22494
22480
|
this.__state = e;
|
|
22495
22481
|
}, f.prototype.skip = function() {
|
|
@@ -23960,4 +23946,4 @@ function resetStateAfterError() {
|
|
|
23960
23946
|
runAfterHooks(!1), finalizeCompiledVisitor(), resetCompiledVisitor(), diagnostics.length = 0, ancestors.length = 0, resetFile(), resetCfgWalk();
|
|
23961
23947
|
}
|
|
23962
23948
|
//#endregion
|
|
23963
|
-
export {
|
|
23949
|
+
export { BLOCK_ALIGN as _, loadPlugin as a, DATA_POINTER_POS_32 as b, registeredRules as c, PLACEHOLDER_REGEX as d, diagnostics as f, ACTIVE_SIZE as g, getNodeByRangeIndex as h, resetStateAfterError as i, allOptions as l, getLineColumnFromOffset as m, lintFile as n, registerPlugin as o, replacePlaceholders as p, lintFileImpl as r, registeredPluginNames as s, buffers as t, setOptions as u, BLOCK_SIZE as v, BUFFER_SIZE as y };
|
package/dist/plugins-dev.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
1
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/is-any.d.ts
|
|
2
2
|
/**
|
|
3
3
|
Returns a boolean for whether the given type is `any`.
|
|
4
4
|
|
|
@@ -29,7 +29,7 @@ const anyA = get(anyObject, 'a');
|
|
|
29
29
|
*/
|
|
30
30
|
type IsAny<T> = 0 extends 1 & NoInfer<T> ? true : false;
|
|
31
31
|
//#endregion
|
|
32
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
32
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/is-optional-key-of.d.ts
|
|
33
33
|
/**
|
|
34
34
|
Returns a boolean for whether the given key is an optional key of type.
|
|
35
35
|
|
|
@@ -72,7 +72,7 @@ type T5 = IsOptionalKeyOf<User | Admin, 'surname'>;
|
|
|
72
72
|
*/
|
|
73
73
|
type IsOptionalKeyOf<Type extends object, Key extends keyof Type> = IsAny<Type | Key> extends true ? never : Key extends keyof Type ? Type extends Record<Key, Type[Key]> ? false : true : false;
|
|
74
74
|
//#endregion
|
|
75
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
75
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/optional-keys-of.d.ts
|
|
76
76
|
/**
|
|
77
77
|
Extract all optional keys from the given type.
|
|
78
78
|
|
|
@@ -110,7 +110,7 @@ type OptionalKeysOf<Type extends object> = Type extends unknown // For distribut
|
|
|
110
110
|
? (keyof { [Key in keyof Type as IsOptionalKeyOf<Type, Key> extends false ? never : Key]: never; }) & keyof Type // Intersect with `keyof Type` to ensure result of `OptionalKeysOf<Type>` is always assignable to `keyof Type`
|
|
111
111
|
: never; // Should never happen
|
|
112
112
|
//#endregion
|
|
113
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
113
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/required-keys-of.d.ts
|
|
114
114
|
/**
|
|
115
115
|
Extract all required keys from the given type.
|
|
116
116
|
|
|
@@ -144,7 +144,7 @@ const validator3 = createValidation<User>('luckyNumber', value => value > 0);
|
|
|
144
144
|
type RequiredKeysOf<Type extends object> = Type extends unknown // For distributing `Type`
|
|
145
145
|
? Exclude<keyof Type, OptionalKeysOf<Type>> : never; // Should never happen
|
|
146
146
|
//#endregion
|
|
147
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
147
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/is-never.d.ts
|
|
148
148
|
/**
|
|
149
149
|
Returns a boolean for whether the given type is `never`.
|
|
150
150
|
|
|
@@ -200,7 +200,7 @@ type B = IsTrueFixed<never>;
|
|
|
200
200
|
*/
|
|
201
201
|
type IsNever<T> = [T] extends [never] ? true : false;
|
|
202
202
|
//#endregion
|
|
203
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
203
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/if.d.ts
|
|
204
204
|
/**
|
|
205
205
|
An if-else-like type that resolves depending on whether the given `boolean` type is `true` or `false`.
|
|
206
206
|
|
|
@@ -295,7 +295,7 @@ type Works = IncludesWithoutIf<HundredZeroes, '1'>;
|
|
|
295
295
|
*/
|
|
296
296
|
type If<Type extends boolean, IfBranch, ElseBranch> = IsNever<Type> extends true ? ElseBranch : Type extends true ? IfBranch : ElseBranch;
|
|
297
297
|
//#endregion
|
|
298
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
298
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/internal/type.d.ts
|
|
299
299
|
/**
|
|
300
300
|
An if-else-like type that resolves depending on whether the given type is `any` or `never`.
|
|
301
301
|
|
|
@@ -346,7 +346,7 @@ type IfNotAnyOrNever<T, Cases extends {
|
|
|
346
346
|
ifNever?: unknown;
|
|
347
347
|
}> = IsAny<T> extends true ? 'ifAny' extends keyof Cases ? Cases['ifAny'] : any : IsNever<T> extends true ? 'ifNever' extends keyof Cases ? Cases['ifNever'] : never : Cases['ifNot'];
|
|
348
348
|
//#endregion
|
|
349
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
349
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/simplify.d.ts
|
|
350
350
|
/**
|
|
351
351
|
Useful to flatten the type output to improve type hints shown in editors. And also to transform an interface into a type to aide with assignability.
|
|
352
352
|
|
|
@@ -407,7 +407,7 @@ fn(someInterface as Simplify<SomeInterface>); // Good: transform an `interface`
|
|
|
407
407
|
*/
|
|
408
408
|
type Simplify<T> = { [KeyType in keyof T]: T[KeyType]; } & {};
|
|
409
409
|
//#endregion
|
|
410
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
410
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/is-equal.d.ts
|
|
411
411
|
/**
|
|
412
412
|
Returns a boolean for whether the two given types are equal.
|
|
413
413
|
|
|
@@ -438,7 +438,7 @@ type IsEqual<A, B> = [A] extends [B] ? [B] extends [A] ? _IsEqual<A, B> : false
|
|
|
438
438
|
// This version fails the `equalWrappedTupleIntersectionToBeNeverAndNeverExpanded` test in `test-d/is-equal.ts`.
|
|
439
439
|
type _IsEqual<A, B> = (<G>() => G extends A & G | G ? 1 : 2) extends (<G>() => G extends B & G | G ? 1 : 2) ? true : false;
|
|
440
440
|
//#endregion
|
|
441
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
441
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/omit-index-signature.d.ts
|
|
442
442
|
/**
|
|
443
443
|
Omit any index signatures from the given object type, leaving only explicitly defined properties.
|
|
444
444
|
|
|
@@ -532,7 +532,7 @@ type ExampleWithoutIndexSignatures = OmitIndexSignature<Example>;
|
|
|
532
532
|
*/
|
|
533
533
|
type OmitIndexSignature<ObjectType> = { [KeyType in keyof ObjectType as {} extends Record<KeyType, unknown> ? never : KeyType]: ObjectType[KeyType]; };
|
|
534
534
|
//#endregion
|
|
535
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
535
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/pick-index-signature.d.ts
|
|
536
536
|
/**
|
|
537
537
|
Pick only index signatures from the given object type, leaving out all explicitly defined properties.
|
|
538
538
|
|
|
@@ -580,7 +580,7 @@ type ExampleIndexSignature = PickIndexSignature<Example>;
|
|
|
580
580
|
*/
|
|
581
581
|
type PickIndexSignature<ObjectType> = { [KeyType in keyof ObjectType as {} extends Record<KeyType, unknown> ? KeyType : never]: ObjectType[KeyType]; };
|
|
582
582
|
//#endregion
|
|
583
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
583
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/merge.d.ts
|
|
584
584
|
// Merges two objects without worrying about index signatures.
|
|
585
585
|
type SimpleMerge<Destination, Source> = Simplify<{ [Key in keyof Destination as Key extends keyof Source ? never : Key]: Destination[Key]; } & Source>;
|
|
586
586
|
/**
|
|
@@ -651,7 +651,7 @@ type Merge<Destination, Source> = Destination extends unknown // For distributin
|
|
|
651
651
|
: never; // Should never happen
|
|
652
652
|
type _Merge<Destination, Source> = Simplify<SimpleMerge<PickIndexSignature<Destination>, PickIndexSignature<Source>> & SimpleMerge<OmitIndexSignature<Destination>, OmitIndexSignature<Source>>>;
|
|
653
653
|
//#endregion
|
|
654
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
654
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/internal/object.d.ts
|
|
655
655
|
/**
|
|
656
656
|
Merges user specified options with default options.
|
|
657
657
|
|
|
@@ -708,7 +708,7 @@ type ApplyDefaultOptions<Options extends object, Defaults extends Simplify<Omit<
|
|
|
708
708
|
) ? Result : never;
|
|
709
709
|
type _ApplyDefaultOptions<Options, Defaults, SpecifiedOptions> = If<IsAny<SpecifiedOptions>, Defaults, If<IsNever<SpecifiedOptions>, Defaults, Merge<Defaults, { [Key in keyof SpecifiedOptions as undefined extends Required<Options>[Key & keyof Options] ? Key : undefined extends SpecifiedOptions[Key] ? never : Key]: SpecifiedOptions[Key]; }>>>;
|
|
710
710
|
//#endregion
|
|
711
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
711
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/except.d.ts
|
|
712
712
|
/**
|
|
713
713
|
Filter out keys from an object.
|
|
714
714
|
|
|
@@ -808,7 +808,7 @@ type PostPayloadFixed = Except<UserData, 'email'>;
|
|
|
808
808
|
type Except<ObjectType, KeysType extends keyof ObjectType, Options extends ExceptOptions = {}> = _Except<ObjectType, KeysType, ApplyDefaultOptions<ExceptOptions, DefaultExceptOptions, Options>>;
|
|
809
809
|
type _Except<ObjectType, KeysType extends keyof ObjectType, Options extends Required<ExceptOptions>> = { [KeyType in keyof ObjectType as Filter<KeyType, KeysType>]: ObjectType[KeyType]; } & (Options['requireExactProps'] extends true ? Partial<Record<KeysType, never>> : {});
|
|
810
810
|
//#endregion
|
|
811
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
811
|
+
//#region ../../node_modules/.pnpm/type-fest@5.9.0/node_modules/type-fest/source/require-at-least-one.d.ts
|
|
812
812
|
/**
|
|
813
813
|
Create a type that requires at least one of the given keys, while keeping the remaining keys as is.
|
|
814
814
|
|
|
@@ -1239,8 +1239,9 @@ type VisitorWithHooks = VisitorObject & {
|
|
|
1239
1239
|
};
|
|
1240
1240
|
interface Node$1 extends Span {}
|
|
1241
1241
|
type NodeOrToken = Node$1 | TokenType | CommentType;
|
|
1242
|
-
|
|
1243
|
-
|
|
1242
|
+
declare namespace location_d_exports {
|
|
1243
|
+
export { LineColumn, Location, Range, Ranged, Span, computeLoc, debugAssertLinesIsInitialized, getLineColumnFromOffset, getLoc, getNodeByRangeIndex, getNodeLoc, getOffsetFromLineColumn, getRange, initLines, lineStartIndices, lines, resetLinesAndLocs };
|
|
1244
|
+
}
|
|
1244
1245
|
/**
|
|
1245
1246
|
* Range of source offsets.
|
|
1246
1247
|
*/
|
|
@@ -1274,6 +1275,22 @@ interface LineColumn {
|
|
|
1274
1275
|
line: number;
|
|
1275
1276
|
column: number;
|
|
1276
1277
|
}
|
|
1278
|
+
declare const lines: string[];
|
|
1279
|
+
declare const lineStartIndices: number[];
|
|
1280
|
+
/**
|
|
1281
|
+
* Split source text into lines.
|
|
1282
|
+
*/
|
|
1283
|
+
declare function initLines(): void;
|
|
1284
|
+
/**
|
|
1285
|
+
* Debug assert that `lines` and `lineStartIndices` are initialized.
|
|
1286
|
+
* No-op in release build - TSDown will remove this function and all calls to it.
|
|
1287
|
+
*/
|
|
1288
|
+
declare function debugAssertLinesIsInitialized(): void;
|
|
1289
|
+
/**
|
|
1290
|
+
* Reset lines after file has been linted, to free memory.
|
|
1291
|
+
* Reset `Location` object pool.
|
|
1292
|
+
*/
|
|
1293
|
+
declare function resetLinesAndLocs(): void;
|
|
1277
1294
|
/**
|
|
1278
1295
|
* Convert a source text index into a (line, column) pair.
|
|
1279
1296
|
* @param offset - The index of a character in a file.
|
|
@@ -1301,6 +1318,32 @@ declare function getRange(nodeOrToken: NodeOrToken): Range;
|
|
|
1301
1318
|
* @returns Location of the node or token
|
|
1302
1319
|
*/
|
|
1303
1320
|
declare function getLoc(nodeOrToken: NodeOrToken): Location;
|
|
1321
|
+
/**
|
|
1322
|
+
* Calculate the `Location` for an AST node, and cache it on the node.
|
|
1323
|
+
*
|
|
1324
|
+
* Used in `loc` getter on AST nodes (not tokens or comments - they use their own caching
|
|
1325
|
+
* via `Token` / `Comment` class private fields).
|
|
1326
|
+
*
|
|
1327
|
+
* Defines a `loc` property on the node with the calculated `Location`, so accessing `loc` twice on same node
|
|
1328
|
+
* results in the same object each time.
|
|
1329
|
+
*
|
|
1330
|
+
* For internal use only.
|
|
1331
|
+
*
|
|
1332
|
+
* @param node - AST node
|
|
1333
|
+
* @returns Location
|
|
1334
|
+
*/
|
|
1335
|
+
declare function getNodeLoc(node: Node$1): Location;
|
|
1336
|
+
/**
|
|
1337
|
+
* Compute a `Location` from `start` and `end` source offsets.
|
|
1338
|
+
*
|
|
1339
|
+
* Returns a recycled `Location` object from the pool when possible, allocating only during warmup.
|
|
1340
|
+
* Initializes `lines` and `lineStartIndices` tables if they haven't been already.
|
|
1341
|
+
*
|
|
1342
|
+
* @param start - Start offset
|
|
1343
|
+
* @param end - End offset
|
|
1344
|
+
* @returns Location
|
|
1345
|
+
*/
|
|
1346
|
+
declare function computeLoc(start: number, end: number): Location;
|
|
1304
1347
|
/**
|
|
1305
1348
|
* Get the deepest node containing a range index.
|
|
1306
1349
|
* @param offset - Range index of the desired node
|
|
@@ -1316,8 +1359,9 @@ interface CommentType extends Span {
|
|
|
1316
1359
|
type: "Line" | "Block" | "Shebang";
|
|
1317
1360
|
value: string;
|
|
1318
1361
|
}
|
|
1319
|
-
|
|
1320
|
-
|
|
1362
|
+
declare namespace types_d_exports {
|
|
1363
|
+
export { AccessorProperty, AccessorPropertyType, Argument, ArrayAssignmentTarget, ArrayExpression, ArrayExpressionElement, ArrayPattern, ArrowFunctionExpression, AssignmentExpression, AssignmentOperator, AssignmentPattern, AssignmentTarget, AssignmentTargetMaybeDefault, AssignmentTargetPattern, AssignmentTargetProperty, AssignmentTargetPropertyIdentifier, AssignmentTargetPropertyProperty, AssignmentTargetRest, AssignmentTargetWithDefault, AwaitExpression, BigIntLiteral, BinaryExpression, BinaryOperator, BindingIdentifier, BindingPattern, BindingProperty, BindingRestElement, BlockStatement, BooleanLiteral, BreakStatement, CallExpression, CatchClause, ChainElement, ChainExpression, Class, ClassBody, ClassElement, ClassType, CommentType as Comment, ComputedMemberExpression, ConditionalExpression, ContinueStatement, DebuggerStatement, Declaration, Decorator, Directive$1 as Directive, DoWhileStatement, EmptyStatement, ExportAllDeclaration, ExportDefaultDeclaration, ExportDefaultDeclarationKind, ExportNamedDeclaration, ExportSpecifier, Expression, ExpressionStatement, ForInStatement, ForOfStatement, ForStatement, ForStatementInit, ForStatementLeft, FormalParameter, FormalParameterRest, Function$1 as Function, FunctionBody, FunctionType, Hashbang, IdentifierName, IdentifierReference, IfStatement, ImportAttribute, ImportAttributeKey, ImportDeclaration, ImportDeclarationSpecifier, ImportDefaultSpecifier, ImportExpression, ImportNamespaceSpecifier, ImportOrExportKind, ImportPhase, ImportSpecifier, JSDocNonNullableType, JSDocNullableType, JSDocUnknownType, JSXAttribute, JSXAttributeItem, JSXAttributeName, JSXAttributeValue, JSXChild, JSXClosingElement, JSXClosingFragment, JSXElement, JSXElementName, JSXEmptyExpression, JSXExpression, JSXExpressionContainer, JSXFragment, JSXIdentifier, JSXMemberExpression, JSXMemberExpressionObject, JSXNamespacedName, JSXOpeningElement, JSXOpeningFragment, JSXSpreadAttribute, JSXSpreadChild, JSXText, LabelIdentifier, LabeledStatement, LogicalExpression, LogicalOperator, MemberExpression, MetaProperty, MethodDefinition, MethodDefinitionKind, MethodDefinitionType, ModuleDeclaration, ModuleExportName, ModuleKind, NewExpression, Node, NullLiteral, NumericLiteral, ObjectAssignmentTarget, ObjectExpression, ObjectPattern, ObjectProperty, ObjectPropertyKind, ParamPattern, ParenthesizedExpression, PrivateFieldExpression, PrivateIdentifier, PrivateInExpression, Program, PropertyDefinition, PropertyDefinitionType, PropertyKey$1 as PropertyKey, PropertyKind, RegExpLiteral, ReturnStatement, SequenceExpression, SimpleAssignmentTarget, Span, SpreadElement, Statement, StaticBlock, StaticMemberExpression, StringLiteral, Super, SwitchCase, SwitchStatement, TSAccessibility, TSAnyKeyword, TSArrayType, TSAsExpression, TSBigIntKeyword, TSBooleanKeyword, TSCallSignatureDeclaration, TSClassImplements, TSConditionalType, TSConstructSignatureDeclaration, TSConstructorType, TSEnumBody, TSEnumDeclaration, TSEnumMember, TSEnumMemberName, TSExportAssignment, TSExternalModuleReference, TSFunctionType, TSGlobalDeclaration, TSImportEqualsDeclaration, TSImportType, TSImportTypeQualifiedName, TSImportTypeQualifier, TSIndexSignature, TSIndexSignatureName, TSIndexedAccessType, TSInferType, TSInstantiationExpression, TSInterfaceBody, TSInterfaceDeclaration, TSInterfaceHeritage, TSIntersectionType, TSIntrinsicKeyword, TSLiteral, TSLiteralType, TSMappedType, TSMappedTypeModifierOperator, TSMethodSignature, TSMethodSignatureKind, TSModuleBlock, TSModuleDeclaration, TSModuleDeclarationKind, TSModuleReference, TSNamedTupleMember, TSNamespaceExportDeclaration, TSNeverKeyword, TSNonNullExpression, TSNullKeyword, TSNumberKeyword, TSObjectKeyword, TSOptionalType, TSParameterProperty, TSParenthesizedType, TSPropertySignature, TSQualifiedName, TSRestType, TSSatisfiesExpression, TSSignature, TSStringKeyword, TSSymbolKeyword, TSTemplateLiteralType, TSThisParameter, TSThisType, TSTupleElement, TSTupleType, TSType, TSTypeAliasDeclaration, TSTypeAnnotation, TSTypeAssertion, TSTypeLiteral, TSTypeName, TSTypeOperator, TSTypeOperatorOperator, TSTypeParameter, TSTypeParameterDeclaration, TSTypeParameterInstantiation, TSTypePredicate, TSTypePredicateName, TSTypeQuery, TSTypeQueryExprName, TSTypeReference, TSUndefinedKeyword, TSUnionType, TSUnknownKeyword, TSVoidKeyword, TaggedTemplateExpression, TemplateElement, TemplateElementValue, TemplateLiteral, ThisExpression, ThrowStatement, TokenType as Token, TryStatement, UnaryExpression, UnaryOperator, UpdateExpression, UpdateOperator, V8IntrinsicExpression, VariableDeclaration, VariableDeclarationKind, VariableDeclarator, WhileStatement, WithStatement, YieldExpression };
|
|
1364
|
+
}
|
|
1321
1365
|
interface Program extends Span {
|
|
1322
1366
|
type: "Program";
|
|
1323
1367
|
body: Array<Directive$1 | Statement>;
|
|
@@ -2609,8 +2653,9 @@ type LogicalOperator = "||" | "&&" | "??";
|
|
|
2609
2653
|
type UnaryOperator = "+" | "-" | "!" | "~" | "typeof" | "void" | "delete";
|
|
2610
2654
|
type UpdateOperator = "++" | "--";
|
|
2611
2655
|
type Node = Program | IdentifierName | IdentifierReference | BindingIdentifier | LabelIdentifier | ThisExpression | ArrayExpression | ObjectExpression | ObjectProperty | TemplateLiteral | TaggedTemplateExpression | TemplateElement | ComputedMemberExpression | StaticMemberExpression | PrivateFieldExpression | CallExpression | NewExpression | MetaProperty | SpreadElement | UpdateExpression | UnaryExpression | BinaryExpression | PrivateInExpression | LogicalExpression | ConditionalExpression | AssignmentExpression | ArrayAssignmentTarget | ObjectAssignmentTarget | AssignmentTargetRest | AssignmentTargetWithDefault | AssignmentTargetPropertyIdentifier | AssignmentTargetPropertyProperty | SequenceExpression | Super | AwaitExpression | ChainExpression | ParenthesizedExpression | Directive$1 | Hashbang | BlockStatement | VariableDeclaration | VariableDeclarator | EmptyStatement | ExpressionStatement | IfStatement | DoWhileStatement | WhileStatement | ForStatement | ForInStatement | ForOfStatement | ContinueStatement | BreakStatement | ReturnStatement | WithStatement | SwitchStatement | SwitchCase | LabeledStatement | ThrowStatement | TryStatement | CatchClause | DebuggerStatement | AssignmentPattern | ObjectPattern | BindingProperty | ArrayPattern | BindingRestElement | Function$1 | FunctionBody | ArrowFunctionExpression | YieldExpression | Class | ClassBody | MethodDefinition | PropertyDefinition | PrivateIdentifier | StaticBlock | AccessorProperty | ImportExpression | ImportDeclaration | ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportAttribute | ExportNamedDeclaration | ExportDefaultDeclaration | ExportAllDeclaration | ExportSpecifier | V8IntrinsicExpression | BooleanLiteral | NullLiteral | NumericLiteral | StringLiteral | BigIntLiteral | RegExpLiteral | JSXElement | JSXOpeningElement | JSXClosingElement | JSXFragment | JSXOpeningFragment | JSXClosingFragment | JSXNamespacedName | JSXMemberExpression | JSXExpressionContainer | JSXEmptyExpression | JSXAttribute | JSXSpreadAttribute | JSXIdentifier | JSXSpreadChild | JSXText | TSThisParameter | TSEnumDeclaration | TSEnumBody | TSEnumMember | TSTypeAnnotation | TSLiteralType | TSConditionalType | TSUnionType | TSIntersectionType | TSParenthesizedType | TSTypeOperator | TSArrayType | TSIndexedAccessType | TSTupleType | TSNamedTupleMember | TSOptionalType | TSRestType | TSAnyKeyword | TSStringKeyword | TSBooleanKeyword | TSNumberKeyword | TSNeverKeyword | TSIntrinsicKeyword | TSUnknownKeyword | TSNullKeyword | TSUndefinedKeyword | TSVoidKeyword | TSSymbolKeyword | TSThisType | TSObjectKeyword | TSBigIntKeyword | TSTypeReference | TSQualifiedName | TSTypeParameterInstantiation | TSTypeParameter | TSTypeParameterDeclaration | TSTypeAliasDeclaration | TSClassImplements | TSInterfaceDeclaration | TSInterfaceBody | TSPropertySignature | TSIndexSignature | TSCallSignatureDeclaration | TSMethodSignature | TSConstructSignatureDeclaration | TSIndexSignatureName | TSInterfaceHeritage | TSTypePredicate | TSModuleDeclaration | TSGlobalDeclaration | TSModuleBlock | TSTypeLiteral | TSInferType | TSTypeQuery | TSImportType | TSImportTypeQualifiedName | TSFunctionType | TSConstructorType | TSMappedType | TSTemplateLiteralType | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSImportEqualsDeclaration | TSExternalModuleReference | TSNonNullExpression | Decorator | TSExportAssignment | TSNamespaceExportDeclaration | TSInstantiationExpression | JSDocNullableType | JSDocNonNullableType | JSDocUnknownType | ParamPattern;
|
|
2612
|
-
|
|
2613
|
-
|
|
2656
|
+
declare namespace scope_d_exports {
|
|
2657
|
+
export { Definition, DefinitionType, Reference, SCOPE_MANAGER, Scope, ScopeManager, ScopeType, Variable, getDeclaredVariables, getScope, isGlobalReference, markVariableAsUsed, resetScopeManager };
|
|
2658
|
+
}
|
|
2614
2659
|
interface Scope {
|
|
2615
2660
|
type: ScopeType;
|
|
2616
2661
|
isStrict: boolean;
|
|
@@ -2656,6 +2701,38 @@ interface Definition {
|
|
|
2656
2701
|
}
|
|
2657
2702
|
type DefinitionType = "CatchClause" | "ClassName" | "FunctionName" | "ImplicitGlobalVariable" | "ImportBinding" | "Parameter" | "Variable";
|
|
2658
2703
|
type Identifier = IdentifierName | IdentifierReference | BindingIdentifier | LabelIdentifier | TSThisParameter | TSIndexSignatureName;
|
|
2704
|
+
/**
|
|
2705
|
+
* Discard TS-ESLint `ScopeManager`, to free memory.
|
|
2706
|
+
*/
|
|
2707
|
+
declare function resetScopeManager(): void;
|
|
2708
|
+
declare const SCOPE_MANAGER: Readonly<{
|
|
2709
|
+
/**
|
|
2710
|
+
* All scopes.
|
|
2711
|
+
*/
|
|
2712
|
+
readonly scopes: Scope[];
|
|
2713
|
+
/**
|
|
2714
|
+
* The root scope.
|
|
2715
|
+
*/
|
|
2716
|
+
readonly globalScope: Scope | null;
|
|
2717
|
+
/**
|
|
2718
|
+
* Get the variables that a given AST node defines.
|
|
2719
|
+
* The returned variables' `def[].node` / `def[].parent` property is the node.
|
|
2720
|
+
* If the node does not define any variable, this returns an empty array.
|
|
2721
|
+
* @param node AST node to get variables of.
|
|
2722
|
+
*/
|
|
2723
|
+
getDeclaredVariables(node: Node): Variable[];
|
|
2724
|
+
/**
|
|
2725
|
+
* Get the scope of a given AST node. The returned scope's `block` property is the node.
|
|
2726
|
+
* This method never returns `function-expression-name` scope.
|
|
2727
|
+
* If the node does not have a scope, returns `null`.
|
|
2728
|
+
*
|
|
2729
|
+
* @param node An AST node to get their scope.
|
|
2730
|
+
* @param inner If the node has multiple scopes, this returns the outermost scope normally.
|
|
2731
|
+
* If `inner` is `true` then this returns the innermost scope.
|
|
2732
|
+
*/
|
|
2733
|
+
acquire(node: Node, inner?: boolean): Scope | null;
|
|
2734
|
+
}>;
|
|
2735
|
+
type ScopeManager = typeof SCOPE_MANAGER;
|
|
2659
2736
|
/**
|
|
2660
2737
|
* Determine whether the given identifier node is a reference to a global variable.
|
|
2661
2738
|
* @param node - `Identifier` node to check.
|
|
@@ -2688,8 +2765,9 @@ declare function getScope(node: Node): Scope;
|
|
|
2688
2765
|
* @returns `true` if a variable with the given name was found and marked as used, otherwise `false`
|
|
2689
2766
|
*/
|
|
2690
2767
|
declare function markVariableAsUsed(name: string, refNode?: Node): boolean;
|
|
2691
|
-
|
|
2692
|
-
|
|
2768
|
+
declare namespace comments_methods_d_exports {
|
|
2769
|
+
export { commentsExistBetween, getAllComments, getCommentsAfter, getCommentsBefore, getCommentsInside, getJSDocComment };
|
|
2770
|
+
}
|
|
2693
2771
|
/**
|
|
2694
2772
|
* Retrieve an array containing all comments in the source code.
|
|
2695
2773
|
* @returns Array of `Comment`s in order they appear in source.
|
|
@@ -2757,8 +2835,9 @@ declare function getJSDocComment(node: Node$1): CommentType | null;
|
|
|
2757
2835
|
//#endregion
|
|
2758
2836
|
//#region src-js/plugins/tokens_and_comments.d.ts
|
|
2759
2837
|
type TokenOrComment = TokenType | CommentType;
|
|
2760
|
-
|
|
2761
|
-
|
|
2838
|
+
declare namespace tokens_methods_d_exports {
|
|
2839
|
+
export { CountOptions, FilterFn, RangeOptions, SkipOptions, firstTokenAtOrAfter, getFirstToken, getFirstTokenBetween, getFirstTokens, getFirstTokensBetween, getLastToken, getLastTokenBetween, getLastTokens, getLastTokensBetween, getTokenAfter, getTokenBefore, getTokenByRangeStart, getTokenOrCommentAfter, getTokenOrCommentBefore, getTokens, getTokensAfter, getTokensBefore, getTokensBetween, isSpaceBetween, isSpaceBetweenTokens };
|
|
2840
|
+
}
|
|
2762
2841
|
/**
|
|
2763
2842
|
* Options for various `SourceCode` methods e.g. `getFirstToken`.
|
|
2764
2843
|
*/
|
|
@@ -3008,8 +3087,27 @@ declare function isSpaceBetween(first: NodeOrToken, second: NodeOrToken): boolea
|
|
|
3008
3087
|
* any of the tokens found between the two given nodes or tokens.
|
|
3009
3088
|
*/
|
|
3010
3089
|
declare function isSpaceBetweenTokens(first: NodeOrToken, second: NodeOrToken): boolean;
|
|
3011
|
-
|
|
3012
|
-
|
|
3090
|
+
/**
|
|
3091
|
+
* Find the index of the first entry in a `Int32Array` buffer whose `start` is >= `offset`, via binary search.
|
|
3092
|
+
*
|
|
3093
|
+
* Each entry occupies 4 x u32s (16 bytes), with `start` as the first u32.
|
|
3094
|
+
* Searched range starts at `startIndex` and ends at `length`.
|
|
3095
|
+
*
|
|
3096
|
+
* Returns `length` if all entries have `start` < `offset`.
|
|
3097
|
+
*
|
|
3098
|
+
* Note: Source text is limited to 1 GiB max, so number of tokens cannot exceed 2^30.
|
|
3099
|
+
* This makes it safe to use `>> 1` for division by 2 below (which is faster than `>>> 1`).
|
|
3100
|
+
*
|
|
3101
|
+
* @param int32 - `Int32Array` buffer (tokens, comments, or tokensAndComments)
|
|
3102
|
+
* @param offset - Source offset to search for
|
|
3103
|
+
* @param startIndex - Starting entry index for the search
|
|
3104
|
+
* @param length - Total number of entries in the buffer
|
|
3105
|
+
* @returns Index of first entry with `start >= offset`
|
|
3106
|
+
*/
|
|
3107
|
+
declare function firstTokenAtOrAfter(int32: Int32Array, offset: number, startIndex: number, length: number): number;
|
|
3108
|
+
declare namespace directives_d_exports {
|
|
3109
|
+
export { getDisableDirectives };
|
|
3110
|
+
}
|
|
3013
3111
|
interface Problem {
|
|
3014
3112
|
ruleId: string | null;
|
|
3015
3113
|
message: string;
|
|
@@ -4185,7 +4283,7 @@ interface TestCases {
|
|
|
4185
4283
|
/**
|
|
4186
4284
|
* Utility class for testing rules.
|
|
4187
4285
|
*/
|
|
4188
|
-
declare class RuleTester {
|
|
4286
|
+
export declare class RuleTester {
|
|
4189
4287
|
#private;
|
|
4190
4288
|
/**
|
|
4191
4289
|
* Creates a new instance of RuleTester.
|
|
@@ -4246,7 +4344,7 @@ type _InvalidTestCase = InvalidTestCase;
|
|
|
4246
4344
|
type _TestCases = TestCases;
|
|
4247
4345
|
type _Error = Error;
|
|
4248
4346
|
type _ErrorSuggestion = ErrorSuggestion;
|
|
4249
|
-
declare namespace RuleTester {
|
|
4347
|
+
export declare namespace RuleTester {
|
|
4250
4348
|
type Config = _Config;
|
|
4251
4349
|
type LanguageOptions = _LanguageOptions;
|
|
4252
4350
|
type Globals = _Globals;
|
|
@@ -4263,5 +4361,4 @@ declare namespace RuleTester {
|
|
|
4263
4361
|
type Error = _Error;
|
|
4264
4362
|
type ErrorSuggestion = _ErrorSuggestion;
|
|
4265
4363
|
}
|
|
4266
|
-
//#endregion
|
|
4267
|
-
export { RuleTester };
|
|
4364
|
+
//#endregion
|
package/dist/plugins-dev.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as __toESM, t as __commonJSMin } from "./rolldown-runtime.js";
|
|
2
2
|
import { a as rawTransferSupported$1, i as parseRawSync, n as getBufferOffset, t as applyFixes } from "./bindings.js";
|
|
3
|
+
import { _ as BLOCK_ALIGN, c as registeredRules, d as PLACEHOLDER_REGEX, f as diagnostics, g as ACTIVE_SIZE, h as getNodeByRangeIndex, i as resetStateAfterError, l as allOptions, m as getLineColumnFromOffset, o as registerPlugin, p as replacePlaceholders, r as lintFileImpl, s as registeredPluginNames, t as buffers, u as setOptions, v as BLOCK_SIZE, y as BUFFER_SIZE } from "./lint.js";
|
|
3
4
|
import assert, { AssertionError } from "node:assert";
|
|
4
5
|
import { dirname, isAbsolute, join } from "node:path";
|
|
5
6
|
import util from "node:util";
|
|
@@ -855,7 +856,7 @@ function isSerializable(value, seenObjects = /* @__PURE__ */ new Set()) {
|
|
|
855
856
|
for (let property in value) {
|
|
856
857
|
if (!ObjectHasOwn(value, property)) continue;
|
|
857
858
|
let prop = value[property];
|
|
858
|
-
if (!isSerializablePrimitiveOrPlainObject(prop) ||
|
|
859
|
+
if (!isSerializablePrimitiveOrPlainObject(prop) || typeof prop == "object" && prop && !isSerializable(prop, /* @__PURE__ */ new Set([...seenObjects, value]))) return !1;
|
|
859
860
|
}
|
|
860
861
|
return !0;
|
|
861
862
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
3
|
+
var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports), __exportAll = (all, no_symbols) => {
|
|
4
|
+
let target = {};
|
|
5
|
+
for (var name in all) __defProp(target, name, {
|
|
6
|
+
get: all[name],
|
|
7
|
+
enumerable: !0
|
|
8
|
+
});
|
|
9
|
+
return no_symbols || __defProp(target, Symbol.toStringTag, { value: "Module" }), target;
|
|
10
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from == "object" || typeof from == "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) key = keys[i], !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
12
|
+
get: ((k) => from[k]).bind(null, key),
|
|
13
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
14
|
+
});
|
|
15
|
+
return to;
|
|
16
|
+
}, __toESM = (mod, isNodeMode, target) => (target = mod == null ? {} : __create(__getProtoOf(mod)), __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
17
|
+
value: mod,
|
|
18
|
+
enumerable: !0
|
|
19
|
+
}) : target, mod)), __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
20
|
+
//#endregion
|
|
21
|
+
export { __toESM as i, __exportAll as n, __require as r, __commonJSMin as t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depup/oxlint",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.82.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.
|
|
97
|
-
"@oxlint/binding-android-arm64": "1.
|
|
98
|
-
"@oxlint/binding-win32-arm64-msvc": "1.
|
|
99
|
-
"@oxlint/binding-linux-arm64-gnu": "1.
|
|
100
|
-
"@oxlint/binding-linux-arm64-musl": "1.
|
|
101
|
-
"@oxlint/binding-openharmony-arm64": "1.
|
|
102
|
-
"@oxlint/binding-android-arm-eabi": "1.
|
|
103
|
-
"@oxlint/binding-linux-arm-gnueabihf": "1.
|
|
104
|
-
"@oxlint/binding-linux-arm-musleabihf": "1.
|
|
105
|
-
"@oxlint/binding-win32-ia32-msvc": "1.
|
|
106
|
-
"@oxlint/binding-linux-ppc64-gnu": "1.
|
|
107
|
-
"@oxlint/binding-linux-riscv64-gnu": "1.
|
|
108
|
-
"@oxlint/binding-linux-riscv64-musl": "1.
|
|
109
|
-
"@oxlint/binding-linux-s390x-gnu": "1.
|
|
110
|
-
"@oxlint/binding-darwin-x64": "1.
|
|
111
|
-
"@oxlint/binding-win32-x64-msvc": "1.
|
|
112
|
-
"@oxlint/binding-freebsd-x64": "1.
|
|
113
|
-
"@oxlint/binding-linux-x64-gnu": "1.
|
|
114
|
-
"@oxlint/binding-linux-x64-musl": "1.
|
|
96
|
+
"@oxlint/binding-darwin-arm64": "1.82.0",
|
|
97
|
+
"@oxlint/binding-android-arm64": "1.82.0",
|
|
98
|
+
"@oxlint/binding-win32-arm64-msvc": "1.82.0",
|
|
99
|
+
"@oxlint/binding-linux-arm64-gnu": "1.82.0",
|
|
100
|
+
"@oxlint/binding-linux-arm64-musl": "1.82.0",
|
|
101
|
+
"@oxlint/binding-openharmony-arm64": "1.82.0",
|
|
102
|
+
"@oxlint/binding-android-arm-eabi": "1.82.0",
|
|
103
|
+
"@oxlint/binding-linux-arm-gnueabihf": "1.82.0",
|
|
104
|
+
"@oxlint/binding-linux-arm-musleabihf": "1.82.0",
|
|
105
|
+
"@oxlint/binding-win32-ia32-msvc": "1.82.0",
|
|
106
|
+
"@oxlint/binding-linux-ppc64-gnu": "1.82.0",
|
|
107
|
+
"@oxlint/binding-linux-riscv64-gnu": "1.82.0",
|
|
108
|
+
"@oxlint/binding-linux-riscv64-musl": "1.82.0",
|
|
109
|
+
"@oxlint/binding-linux-s390x-gnu": "1.82.0",
|
|
110
|
+
"@oxlint/binding-darwin-x64": "1.82.0",
|
|
111
|
+
"@oxlint/binding-win32-x64-msvc": "1.82.0",
|
|
112
|
+
"@oxlint/binding-freebsd-x64": "1.82.0",
|
|
113
|
+
"@oxlint/binding-linux-x64-gnu": "1.82.0",
|
|
114
|
+
"@oxlint/binding-linux-x64-musl": "1.82.0"
|
|
115
115
|
},
|
|
116
116
|
"depup": {
|
|
117
117
|
"changes": {},
|
|
118
118
|
"depsUpdated": 0,
|
|
119
119
|
"originalPackage": "oxlint",
|
|
120
|
-
"originalVersion": "1.
|
|
121
|
-
"processedAt": "2026-09-
|
|
120
|
+
"originalVersion": "1.82.0",
|
|
121
|
+
"processedAt": "2026-09-07T16:11:55.722Z",
|
|
122
122
|
"smokeTest": "passed"
|
|
123
123
|
}
|
|
124
124
|
}
|