oxlint 1.74.0 → 1.75.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 +0 -3
- package/configuration_schema.json +145 -12
- package/dist/bindings.js +26 -26
- package/dist/index.d.ts +23 -3
- package/dist/lint.js +299 -234
- package/dist/plugins-dev.d.ts +1 -1
- package/package.json +21 -21
package/README.md
CHANGED
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
[![MIT licensed][license-badge]][license-url]
|
|
19
19
|
[![Build Status][ci-badge]][ci-url]
|
|
20
20
|
[![Code Coverage][code-coverage-badge]][code-coverage-url]
|
|
21
|
-
[![Sponsors][sponsors-badge]][sponsors-url]
|
|
22
21
|
|
|
23
22
|
[![Discord chat][discord-badge]][discord-url]
|
|
24
23
|
[![Playground][playground-badge]][playground-url]
|
|
@@ -35,8 +34,6 @@
|
|
|
35
34
|
[code-size-url]: https://github.com/oxc-project/oxc
|
|
36
35
|
[code-coverage-badge]: https://codecov.io/github/oxc-project/oxc/branch/main/graph/badge.svg
|
|
37
36
|
[code-coverage-url]: https://codecov.io/gh/oxc-project/oxc
|
|
38
|
-
[sponsors-badge]: https://img.shields.io/github/sponsors/Boshen
|
|
39
|
-
[sponsors-url]: https://github.com/sponsors/Boshen
|
|
40
37
|
[playground-badge]: https://img.shields.io/badge/Playground-blue?color=9BE4E0
|
|
41
38
|
[playground-url]: https://playground.oxc.rs/
|
|
42
39
|
|
|
@@ -5726,6 +5726,26 @@
|
|
|
5726
5726
|
}
|
|
5727
5727
|
]
|
|
5728
5728
|
},
|
|
5729
|
+
"node/no-top-level-await": {
|
|
5730
|
+
"anyOf": [
|
|
5731
|
+
{
|
|
5732
|
+
"$ref": "#/definitions/RuleNoConfig"
|
|
5733
|
+
},
|
|
5734
|
+
{
|
|
5735
|
+
"type": "array",
|
|
5736
|
+
"items": [
|
|
5737
|
+
{
|
|
5738
|
+
"$ref": "#/definitions/AllowWarnDeny"
|
|
5739
|
+
},
|
|
5740
|
+
{
|
|
5741
|
+
"$ref": "#/definitions/NoTopLevelAwaitConfig"
|
|
5742
|
+
}
|
|
5743
|
+
],
|
|
5744
|
+
"maxItems": 2,
|
|
5745
|
+
"minItems": 2
|
|
5746
|
+
}
|
|
5747
|
+
]
|
|
5748
|
+
},
|
|
5729
5749
|
"object-shorthand": {
|
|
5730
5750
|
"anyOf": [
|
|
5731
5751
|
{
|
|
@@ -5987,7 +6007,7 @@
|
|
|
5987
6007
|
"$ref": "#/definitions/PreferDestructuringOption"
|
|
5988
6008
|
},
|
|
5989
6009
|
{
|
|
5990
|
-
"$ref": "#/definitions/
|
|
6010
|
+
"$ref": "#/definitions/PreferDestructuringEnforcementConfig"
|
|
5991
6011
|
}
|
|
5992
6012
|
],
|
|
5993
6013
|
"maxItems": 3,
|
|
@@ -6506,6 +6526,26 @@
|
|
|
6506
6526
|
"react/forward-ref-uses-ref": {
|
|
6507
6527
|
"$ref": "#/definitions/RuleNoConfig"
|
|
6508
6528
|
},
|
|
6529
|
+
"react/function-component-definition": {
|
|
6530
|
+
"anyOf": [
|
|
6531
|
+
{
|
|
6532
|
+
"$ref": "#/definitions/RuleNoConfig"
|
|
6533
|
+
},
|
|
6534
|
+
{
|
|
6535
|
+
"type": "array",
|
|
6536
|
+
"items": [
|
|
6537
|
+
{
|
|
6538
|
+
"$ref": "#/definitions/AllowWarnDeny"
|
|
6539
|
+
},
|
|
6540
|
+
{
|
|
6541
|
+
"$ref": "#/definitions/FunctionComponentDefinition"
|
|
6542
|
+
}
|
|
6543
|
+
],
|
|
6544
|
+
"maxItems": 2,
|
|
6545
|
+
"minItems": 2
|
|
6546
|
+
}
|
|
6547
|
+
]
|
|
6548
|
+
},
|
|
6509
6549
|
"react/hook-use-state": {
|
|
6510
6550
|
"anyOf": [
|
|
6511
6551
|
{
|
|
@@ -9777,6 +9817,9 @@
|
|
|
9777
9817
|
"vitest/padding-around-after-all-blocks": {
|
|
9778
9818
|
"$ref": "#/definitions/RuleNoConfig"
|
|
9779
9819
|
},
|
|
9820
|
+
"vitest/padding-around-test-blocks": {
|
|
9821
|
+
"$ref": "#/definitions/RuleNoConfig"
|
|
9822
|
+
},
|
|
9780
9823
|
"vitest/prefer-called-exactly-once-with": {
|
|
9781
9824
|
"$ref": "#/definitions/RuleNoConfig"
|
|
9782
9825
|
},
|
|
@@ -11210,6 +11253,31 @@
|
|
|
11210
11253
|
},
|
|
11211
11254
|
"additionalProperties": false
|
|
11212
11255
|
},
|
|
11256
|
+
"FunctionComponentDefinition": {
|
|
11257
|
+
"$ref": "#/definitions/FunctionComponentDefinitionConfig"
|
|
11258
|
+
},
|
|
11259
|
+
"FunctionComponentDefinitionConfig": {
|
|
11260
|
+
"type": "object",
|
|
11261
|
+
"properties": {
|
|
11262
|
+
"namedComponents": {
|
|
11263
|
+
"default": "function-declaration",
|
|
11264
|
+
"allOf": [
|
|
11265
|
+
{
|
|
11266
|
+
"$ref": "#/definitions/NamedComponents"
|
|
11267
|
+
}
|
|
11268
|
+
]
|
|
11269
|
+
},
|
|
11270
|
+
"unnamedComponents": {
|
|
11271
|
+
"default": "function-expression",
|
|
11272
|
+
"allOf": [
|
|
11273
|
+
{
|
|
11274
|
+
"$ref": "#/definitions/UnnamedComponents"
|
|
11275
|
+
}
|
|
11276
|
+
]
|
|
11277
|
+
}
|
|
11278
|
+
},
|
|
11279
|
+
"additionalProperties": false
|
|
11280
|
+
},
|
|
11213
11281
|
"GetterReturn": {
|
|
11214
11282
|
"type": "object",
|
|
11215
11283
|
"properties": {
|
|
@@ -12903,6 +12971,14 @@
|
|
|
12903
12971
|
"prefer-inline"
|
|
12904
12972
|
],
|
|
12905
12973
|
"markdownDescription": "Prefer `import { type Foo } from 'foo'` for type imports."
|
|
12974
|
+
},
|
|
12975
|
+
{
|
|
12976
|
+
"description": "Prefer `import type { Foo } from 'foo'` when all named imports are types, but allow\n`import { type Foo, bar } from 'foo'` when value imports are present.",
|
|
12977
|
+
"type": "string",
|
|
12978
|
+
"enum": [
|
|
12979
|
+
"prefer-top-level-if-only-type-imports"
|
|
12980
|
+
],
|
|
12981
|
+
"markdownDescription": "Prefer `import type { Foo } from 'foo'` when all named imports are types, but allow\n`import { type Foo, bar } from 'foo'` when value imports are present."
|
|
12906
12982
|
}
|
|
12907
12983
|
]
|
|
12908
12984
|
},
|
|
@@ -13033,6 +13109,27 @@
|
|
|
13033
13109
|
],
|
|
13034
13110
|
"markdownDescription": "Name specifier that can be a single string or array of strings"
|
|
13035
13111
|
},
|
|
13112
|
+
"NamedComponentStyle": {
|
|
13113
|
+
"type": "string",
|
|
13114
|
+
"enum": [
|
|
13115
|
+
"function-declaration",
|
|
13116
|
+
"arrow-function",
|
|
13117
|
+
"function-expression"
|
|
13118
|
+
]
|
|
13119
|
+
},
|
|
13120
|
+
"NamedComponents": {
|
|
13121
|
+
"anyOf": [
|
|
13122
|
+
{
|
|
13123
|
+
"$ref": "#/definitions/NamedComponentStyle"
|
|
13124
|
+
},
|
|
13125
|
+
{
|
|
13126
|
+
"type": "array",
|
|
13127
|
+
"items": {
|
|
13128
|
+
"$ref": "#/definitions/NamedComponentStyle"
|
|
13129
|
+
}
|
|
13130
|
+
}
|
|
13131
|
+
]
|
|
13132
|
+
},
|
|
13036
13133
|
"NamedExports": {
|
|
13037
13134
|
"type": "string",
|
|
13038
13135
|
"enum": [
|
|
@@ -15276,6 +15373,18 @@
|
|
|
15276
15373
|
},
|
|
15277
15374
|
"additionalProperties": false
|
|
15278
15375
|
},
|
|
15376
|
+
"NoTopLevelAwaitConfig": {
|
|
15377
|
+
"type": "object",
|
|
15378
|
+
"properties": {
|
|
15379
|
+
"ignoreBin": {
|
|
15380
|
+
"description": "If `true`, top-level `await` is allowed in files that start with a\nhashbang (`#!`), which marks them as executable scripts rather than\nimportable modules.",
|
|
15381
|
+
"default": false,
|
|
15382
|
+
"type": "boolean",
|
|
15383
|
+
"markdownDescription": "If `true`, top-level `await` is allowed in files that start with a\nhashbang (`#!`), which marks them as executable scripts rather than\nimportable modules."
|
|
15384
|
+
}
|
|
15385
|
+
},
|
|
15386
|
+
"additionalProperties": false
|
|
15387
|
+
},
|
|
15279
15388
|
"NoTypeofUndefined": {
|
|
15280
15389
|
"type": "object",
|
|
15281
15390
|
"properties": {
|
|
@@ -16939,12 +17048,26 @@
|
|
|
16939
17048
|
"$ref": "#/definitions/PreferDestructuringOption"
|
|
16940
17049
|
},
|
|
16941
17050
|
{
|
|
16942
|
-
"$ref": "#/definitions/
|
|
17051
|
+
"$ref": "#/definitions/PreferDestructuringEnforcementConfig"
|
|
16943
17052
|
}
|
|
16944
17053
|
],
|
|
16945
17054
|
"maxItems": 2,
|
|
16946
17055
|
"minItems": 2
|
|
16947
17056
|
},
|
|
17057
|
+
"PreferDestructuringEnforcementConfig": {
|
|
17058
|
+
"type": "object",
|
|
17059
|
+
"properties": {
|
|
17060
|
+
"enforceForDeclarationWithTypeAnnotation": {
|
|
17061
|
+
"default": false,
|
|
17062
|
+
"type": "boolean"
|
|
17063
|
+
},
|
|
17064
|
+
"enforceForRenamedProperties": {
|
|
17065
|
+
"default": false,
|
|
17066
|
+
"type": "boolean"
|
|
17067
|
+
}
|
|
17068
|
+
},
|
|
17069
|
+
"additionalProperties": false
|
|
17070
|
+
},
|
|
16948
17071
|
"PreferDestructuringOption": {
|
|
16949
17072
|
"anyOf": [
|
|
16950
17073
|
{
|
|
@@ -16955,16 +17078,6 @@
|
|
|
16955
17078
|
}
|
|
16956
17079
|
]
|
|
16957
17080
|
},
|
|
16958
|
-
"PreferDestructuringRenamedPropertiesConfig": {
|
|
16959
|
-
"type": "object",
|
|
16960
|
-
"properties": {
|
|
16961
|
-
"enforceForRenamedProperties": {
|
|
16962
|
-
"default": false,
|
|
16963
|
-
"type": "boolean"
|
|
16964
|
-
}
|
|
16965
|
-
},
|
|
16966
|
-
"additionalProperties": false
|
|
16967
|
-
},
|
|
16968
17081
|
"PreferDestructuringTargetOption": {
|
|
16969
17082
|
"type": "object",
|
|
16970
17083
|
"properties": {
|
|
@@ -18806,6 +18919,26 @@
|
|
|
18806
18919
|
},
|
|
18807
18920
|
"additionalProperties": false
|
|
18808
18921
|
},
|
|
18922
|
+
"UnnamedComponentStyle": {
|
|
18923
|
+
"type": "string",
|
|
18924
|
+
"enum": [
|
|
18925
|
+
"arrow-function",
|
|
18926
|
+
"function-expression"
|
|
18927
|
+
]
|
|
18928
|
+
},
|
|
18929
|
+
"UnnamedComponents": {
|
|
18930
|
+
"anyOf": [
|
|
18931
|
+
{
|
|
18932
|
+
"$ref": "#/definitions/UnnamedComponentStyle"
|
|
18933
|
+
},
|
|
18934
|
+
{
|
|
18935
|
+
"type": "array",
|
|
18936
|
+
"items": {
|
|
18937
|
+
"$ref": "#/definitions/UnnamedComponentStyle"
|
|
18938
|
+
}
|
|
18939
|
+
}
|
|
18940
|
+
]
|
|
18941
|
+
},
|
|
18809
18942
|
"UseIsnan": {
|
|
18810
18943
|
"type": "object",
|
|
18811
18944
|
"properties": {
|
package/dist/bindings.js
CHANGED
|
@@ -37,7 +37,7 @@ function requireNative() {
|
|
|
37
37
|
}
|
|
38
38
|
try {
|
|
39
39
|
let binding = require("@oxlint/binding-android-arm64"), bindingPackageVersion = require("@oxlint/binding-android-arm64/package.json").version;
|
|
40
|
-
if (bindingPackageVersion !== "1.
|
|
40
|
+
if (bindingPackageVersion !== "1.75.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.75.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
41
41
|
return binding;
|
|
42
42
|
} catch (e) {
|
|
43
43
|
loadErrors.push(e);
|
|
@@ -50,7 +50,7 @@ function requireNative() {
|
|
|
50
50
|
}
|
|
51
51
|
try {
|
|
52
52
|
let binding = require("@oxlint/binding-android-arm-eabi"), bindingPackageVersion = require("@oxlint/binding-android-arm-eabi/package.json").version;
|
|
53
|
-
if (bindingPackageVersion !== "1.
|
|
53
|
+
if (bindingPackageVersion !== "1.75.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.75.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
54
54
|
return binding;
|
|
55
55
|
} catch (e) {
|
|
56
56
|
loadErrors.push(e);
|
|
@@ -64,7 +64,7 @@ function requireNative() {
|
|
|
64
64
|
}
|
|
65
65
|
try {
|
|
66
66
|
let binding = require("@oxlint/binding-win32-x64-gnu"), bindingPackageVersion = require("@oxlint/binding-win32-x64-gnu/package.json").version;
|
|
67
|
-
if (bindingPackageVersion !== "1.
|
|
67
|
+
if (bindingPackageVersion !== "1.75.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.75.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
68
68
|
return binding;
|
|
69
69
|
} catch (e) {
|
|
70
70
|
loadErrors.push(e);
|
|
@@ -77,7 +77,7 @@ function requireNative() {
|
|
|
77
77
|
}
|
|
78
78
|
try {
|
|
79
79
|
let binding = require("@oxlint/binding-win32-x64-msvc"), bindingPackageVersion = require("@oxlint/binding-win32-x64-msvc/package.json").version;
|
|
80
|
-
if (bindingPackageVersion !== "1.
|
|
80
|
+
if (bindingPackageVersion !== "1.75.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.75.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
81
81
|
return binding;
|
|
82
82
|
} catch (e) {
|
|
83
83
|
loadErrors.push(e);
|
|
@@ -91,7 +91,7 @@ function requireNative() {
|
|
|
91
91
|
}
|
|
92
92
|
try {
|
|
93
93
|
let binding = require("@oxlint/binding-win32-ia32-msvc"), bindingPackageVersion = require("@oxlint/binding-win32-ia32-msvc/package.json").version;
|
|
94
|
-
if (bindingPackageVersion !== "1.
|
|
94
|
+
if (bindingPackageVersion !== "1.75.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.75.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
95
95
|
return binding;
|
|
96
96
|
} catch (e) {
|
|
97
97
|
loadErrors.push(e);
|
|
@@ -104,7 +104,7 @@ function requireNative() {
|
|
|
104
104
|
}
|
|
105
105
|
try {
|
|
106
106
|
let binding = require("@oxlint/binding-win32-arm64-msvc"), bindingPackageVersion = require("@oxlint/binding-win32-arm64-msvc/package.json").version;
|
|
107
|
-
if (bindingPackageVersion !== "1.
|
|
107
|
+
if (bindingPackageVersion !== "1.75.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.75.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
108
108
|
return binding;
|
|
109
109
|
} catch (e) {
|
|
110
110
|
loadErrors.push(e);
|
|
@@ -118,7 +118,7 @@ function requireNative() {
|
|
|
118
118
|
}
|
|
119
119
|
try {
|
|
120
120
|
let binding = require("@oxlint/binding-darwin-universal"), bindingPackageVersion = require("@oxlint/binding-darwin-universal/package.json").version;
|
|
121
|
-
if (bindingPackageVersion !== "1.
|
|
121
|
+
if (bindingPackageVersion !== "1.75.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.75.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
122
122
|
return binding;
|
|
123
123
|
} catch (e) {
|
|
124
124
|
loadErrors.push(e);
|
|
@@ -131,7 +131,7 @@ function requireNative() {
|
|
|
131
131
|
}
|
|
132
132
|
try {
|
|
133
133
|
let binding = require("@oxlint/binding-darwin-x64"), bindingPackageVersion = require("@oxlint/binding-darwin-x64/package.json").version;
|
|
134
|
-
if (bindingPackageVersion !== "1.
|
|
134
|
+
if (bindingPackageVersion !== "1.75.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.75.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
135
135
|
return binding;
|
|
136
136
|
} catch (e) {
|
|
137
137
|
loadErrors.push(e);
|
|
@@ -144,7 +144,7 @@ function requireNative() {
|
|
|
144
144
|
}
|
|
145
145
|
try {
|
|
146
146
|
let binding = require("@oxlint/binding-darwin-arm64"), bindingPackageVersion = require("@oxlint/binding-darwin-arm64/package.json").version;
|
|
147
|
-
if (bindingPackageVersion !== "1.
|
|
147
|
+
if (bindingPackageVersion !== "1.75.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.75.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
148
148
|
return binding;
|
|
149
149
|
} catch (e) {
|
|
150
150
|
loadErrors.push(e);
|
|
@@ -158,7 +158,7 @@ function requireNative() {
|
|
|
158
158
|
}
|
|
159
159
|
try {
|
|
160
160
|
let binding = require("@oxlint/binding-freebsd-x64"), bindingPackageVersion = require("@oxlint/binding-freebsd-x64/package.json").version;
|
|
161
|
-
if (bindingPackageVersion !== "1.
|
|
161
|
+
if (bindingPackageVersion !== "1.75.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.75.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
162
162
|
return binding;
|
|
163
163
|
} catch (e) {
|
|
164
164
|
loadErrors.push(e);
|
|
@@ -171,7 +171,7 @@ function requireNative() {
|
|
|
171
171
|
}
|
|
172
172
|
try {
|
|
173
173
|
let binding = require("@oxlint/binding-freebsd-arm64"), bindingPackageVersion = require("@oxlint/binding-freebsd-arm64/package.json").version;
|
|
174
|
-
if (bindingPackageVersion !== "1.
|
|
174
|
+
if (bindingPackageVersion !== "1.75.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.75.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
175
175
|
return binding;
|
|
176
176
|
} catch (e) {
|
|
177
177
|
loadErrors.push(e);
|
|
@@ -185,7 +185,7 @@ function requireNative() {
|
|
|
185
185
|
}
|
|
186
186
|
try {
|
|
187
187
|
let binding = require("@oxlint/binding-linux-x64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-x64-musl/package.json").version;
|
|
188
|
-
if (bindingPackageVersion !== "1.
|
|
188
|
+
if (bindingPackageVersion !== "1.75.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.75.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
189
189
|
return binding;
|
|
190
190
|
} catch (e) {
|
|
191
191
|
loadErrors.push(e);
|
|
@@ -198,7 +198,7 @@ function requireNative() {
|
|
|
198
198
|
}
|
|
199
199
|
try {
|
|
200
200
|
let binding = require("@oxlint/binding-linux-x64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-x64-gnu/package.json").version;
|
|
201
|
-
if (bindingPackageVersion !== "1.
|
|
201
|
+
if (bindingPackageVersion !== "1.75.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.75.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
202
202
|
return binding;
|
|
203
203
|
} catch (e) {
|
|
204
204
|
loadErrors.push(e);
|
|
@@ -212,7 +212,7 @@ function requireNative() {
|
|
|
212
212
|
}
|
|
213
213
|
try {
|
|
214
214
|
let binding = require("@oxlint/binding-linux-arm64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-arm64-musl/package.json").version;
|
|
215
|
-
if (bindingPackageVersion !== "1.
|
|
215
|
+
if (bindingPackageVersion !== "1.75.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.75.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
216
216
|
return binding;
|
|
217
217
|
} catch (e) {
|
|
218
218
|
loadErrors.push(e);
|
|
@@ -225,7 +225,7 @@ function requireNative() {
|
|
|
225
225
|
}
|
|
226
226
|
try {
|
|
227
227
|
let binding = require("@oxlint/binding-linux-arm64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-arm64-gnu/package.json").version;
|
|
228
|
-
if (bindingPackageVersion !== "1.
|
|
228
|
+
if (bindingPackageVersion !== "1.75.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.75.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
229
229
|
return binding;
|
|
230
230
|
} catch (e) {
|
|
231
231
|
loadErrors.push(e);
|
|
@@ -239,7 +239,7 @@ function requireNative() {
|
|
|
239
239
|
}
|
|
240
240
|
try {
|
|
241
241
|
let binding = require("@oxlint/binding-linux-arm-musleabihf"), bindingPackageVersion = require("@oxlint/binding-linux-arm-musleabihf/package.json").version;
|
|
242
|
-
if (bindingPackageVersion !== "1.
|
|
242
|
+
if (bindingPackageVersion !== "1.75.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.75.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
243
243
|
return binding;
|
|
244
244
|
} catch (e) {
|
|
245
245
|
loadErrors.push(e);
|
|
@@ -252,7 +252,7 @@ function requireNative() {
|
|
|
252
252
|
}
|
|
253
253
|
try {
|
|
254
254
|
let binding = require("@oxlint/binding-linux-arm-gnueabihf"), bindingPackageVersion = require("@oxlint/binding-linux-arm-gnueabihf/package.json").version;
|
|
255
|
-
if (bindingPackageVersion !== "1.
|
|
255
|
+
if (bindingPackageVersion !== "1.75.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.75.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
256
256
|
return binding;
|
|
257
257
|
} catch (e) {
|
|
258
258
|
loadErrors.push(e);
|
|
@@ -266,7 +266,7 @@ function requireNative() {
|
|
|
266
266
|
}
|
|
267
267
|
try {
|
|
268
268
|
let binding = require("@oxlint/binding-linux-loong64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-loong64-musl/package.json").version;
|
|
269
|
-
if (bindingPackageVersion !== "1.
|
|
269
|
+
if (bindingPackageVersion !== "1.75.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.75.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
270
270
|
return binding;
|
|
271
271
|
} catch (e) {
|
|
272
272
|
loadErrors.push(e);
|
|
@@ -279,7 +279,7 @@ function requireNative() {
|
|
|
279
279
|
}
|
|
280
280
|
try {
|
|
281
281
|
let binding = require("@oxlint/binding-linux-loong64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-loong64-gnu/package.json").version;
|
|
282
|
-
if (bindingPackageVersion !== "1.
|
|
282
|
+
if (bindingPackageVersion !== "1.75.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.75.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
283
283
|
return binding;
|
|
284
284
|
} catch (e) {
|
|
285
285
|
loadErrors.push(e);
|
|
@@ -293,7 +293,7 @@ function requireNative() {
|
|
|
293
293
|
}
|
|
294
294
|
try {
|
|
295
295
|
let binding = require("@oxlint/binding-linux-riscv64-musl"), bindingPackageVersion = require("@oxlint/binding-linux-riscv64-musl/package.json").version;
|
|
296
|
-
if (bindingPackageVersion !== "1.
|
|
296
|
+
if (bindingPackageVersion !== "1.75.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.75.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
297
297
|
return binding;
|
|
298
298
|
} catch (e) {
|
|
299
299
|
loadErrors.push(e);
|
|
@@ -306,7 +306,7 @@ function requireNative() {
|
|
|
306
306
|
}
|
|
307
307
|
try {
|
|
308
308
|
let binding = require("@oxlint/binding-linux-riscv64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-riscv64-gnu/package.json").version;
|
|
309
|
-
if (bindingPackageVersion !== "1.
|
|
309
|
+
if (bindingPackageVersion !== "1.75.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.75.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
310
310
|
return binding;
|
|
311
311
|
} catch (e) {
|
|
312
312
|
loadErrors.push(e);
|
|
@@ -320,7 +320,7 @@ function requireNative() {
|
|
|
320
320
|
}
|
|
321
321
|
try {
|
|
322
322
|
let binding = require("@oxlint/binding-linux-ppc64-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-ppc64-gnu/package.json").version;
|
|
323
|
-
if (bindingPackageVersion !== "1.
|
|
323
|
+
if (bindingPackageVersion !== "1.75.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.75.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
324
324
|
return binding;
|
|
325
325
|
} catch (e) {
|
|
326
326
|
loadErrors.push(e);
|
|
@@ -333,7 +333,7 @@ function requireNative() {
|
|
|
333
333
|
}
|
|
334
334
|
try {
|
|
335
335
|
let binding = require("@oxlint/binding-linux-s390x-gnu"), bindingPackageVersion = require("@oxlint/binding-linux-s390x-gnu/package.json").version;
|
|
336
|
-
if (bindingPackageVersion !== "1.
|
|
336
|
+
if (bindingPackageVersion !== "1.75.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.75.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
337
337
|
return binding;
|
|
338
338
|
} catch (e) {
|
|
339
339
|
loadErrors.push(e);
|
|
@@ -347,7 +347,7 @@ function requireNative() {
|
|
|
347
347
|
}
|
|
348
348
|
try {
|
|
349
349
|
let binding = require("@oxlint/binding-openharmony-arm64"), bindingPackageVersion = require("@oxlint/binding-openharmony-arm64/package.json").version;
|
|
350
|
-
if (bindingPackageVersion !== "1.
|
|
350
|
+
if (bindingPackageVersion !== "1.75.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.75.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
351
351
|
return binding;
|
|
352
352
|
} catch (e) {
|
|
353
353
|
loadErrors.push(e);
|
|
@@ -360,7 +360,7 @@ function requireNative() {
|
|
|
360
360
|
}
|
|
361
361
|
try {
|
|
362
362
|
let binding = require("@oxlint/binding-openharmony-x64"), bindingPackageVersion = require("@oxlint/binding-openharmony-x64/package.json").version;
|
|
363
|
-
if (bindingPackageVersion !== "1.
|
|
363
|
+
if (bindingPackageVersion !== "1.75.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.75.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
364
364
|
return binding;
|
|
365
365
|
} catch (e) {
|
|
366
366
|
loadErrors.push(e);
|
|
@@ -373,7 +373,7 @@ function requireNative() {
|
|
|
373
373
|
}
|
|
374
374
|
try {
|
|
375
375
|
let binding = require("@oxlint/binding-openharmony-arm"), bindingPackageVersion = require("@oxlint/binding-openharmony-arm/package.json").version;
|
|
376
|
-
if (bindingPackageVersion !== "1.
|
|
376
|
+
if (bindingPackageVersion !== "1.75.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw Error(`Native binding package version mismatch, expected 1.75.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
377
377
|
return binding;
|
|
378
378
|
} catch (e) {
|
|
379
379
|
loadErrors.push(e);
|
package/dist/index.d.ts
CHANGED
|
@@ -69,7 +69,7 @@ type FuncNamesConfigType = "always" | "as-needed" | "never";
|
|
|
69
69
|
type Style = "expression" | "declaration";
|
|
70
70
|
type NamedExports = "ignore" | "expression" | "declaration";
|
|
71
71
|
type PairOrder = "anyOrder" | "getBeforeSet" | "setBeforeGet";
|
|
72
|
-
type Mode = "prefer-top-level" | "prefer-inline";
|
|
72
|
+
type Mode = "prefer-top-level" | "prefer-inline" | "prefer-top-level-if-only-type-imports";
|
|
73
73
|
/**
|
|
74
74
|
* Extension rule configuration; Copy to avoid extra indirection.
|
|
75
75
|
*/
|
|
@@ -180,6 +180,10 @@ type ForbidItem2 = string | {
|
|
|
180
180
|
*/
|
|
181
181
|
message?: string;
|
|
182
182
|
};
|
|
183
|
+
type NamedComponents = NamedComponentStyle | NamedComponentStyle[];
|
|
184
|
+
type NamedComponentStyle = "function-declaration" | "arrow-function" | "function-expression";
|
|
185
|
+
type UnnamedComponents = UnnamedComponentStyle | UnnamedComponentStyle[];
|
|
186
|
+
type UnnamedComponentStyle = "arrow-function" | "function-expression";
|
|
183
187
|
type EnforceBooleanAttribute = "always" | "never";
|
|
184
188
|
type JsxCurlyBracePresenceConfig = JsxCurlyBracePresenceMode | JsxCurlyBracePresence;
|
|
185
189
|
type JsxCurlyBracePresenceMode = "always" | "never" | "ignore";
|
|
@@ -1142,6 +1146,7 @@ interface DummyRuleMap {
|
|
|
1142
1146
|
"node/no-path-concat"?: RuleNoConfig;
|
|
1143
1147
|
"node/no-process-env"?: RuleNoConfig | [AllowWarnDeny, NoProcessEnvConfig];
|
|
1144
1148
|
"node/no-sync"?: RuleNoConfig | [AllowWarnDeny, NoSyncConfig];
|
|
1149
|
+
"node/no-top-level-await"?: RuleNoConfig | [AllowWarnDeny, NoTopLevelAwaitConfig];
|
|
1145
1150
|
"object-shorthand"?: RuleNoConfig | [AllowWarnDeny, ShorthandType] | [AllowWarnDeny, ShorthandType, ObjectShorthandOptions];
|
|
1146
1151
|
"operator-assignment"?: RuleNoConfig | [AllowWarnDeny, AlwaysNever];
|
|
1147
1152
|
"oxc/approx-constant"?: RuleNoConfig;
|
|
@@ -1172,7 +1177,7 @@ interface DummyRuleMap {
|
|
|
1172
1177
|
"oxc/uninvoked-array-callback"?: RuleNoConfig;
|
|
1173
1178
|
"prefer-arrow-callback"?: RuleNoConfig | [AllowWarnDeny, PreferArrowCallbackConfig];
|
|
1174
1179
|
"prefer-const"?: RuleNoConfig | [AllowWarnDeny, PreferConstConfig];
|
|
1175
|
-
"prefer-destructuring"?: RuleNoConfig | [AllowWarnDeny, PreferDestructuringOption] | [AllowWarnDeny, PreferDestructuringOption,
|
|
1180
|
+
"prefer-destructuring"?: RuleNoConfig | [AllowWarnDeny, PreferDestructuringOption] | [AllowWarnDeny, PreferDestructuringOption, PreferDestructuringEnforcementConfig];
|
|
1176
1181
|
"prefer-exponentiation-operator"?: RuleNoConfig;
|
|
1177
1182
|
"prefer-named-capture-group"?: RuleNoConfig;
|
|
1178
1183
|
"prefer-numeric-literals"?: RuleNoConfig;
|
|
@@ -1213,6 +1218,7 @@ interface DummyRuleMap {
|
|
|
1213
1218
|
"react/forbid-dom-props"?: RuleNoConfig | [AllowWarnDeny, ForbidDomPropsConfig];
|
|
1214
1219
|
"react/forbid-elements"?: RuleNoConfig | [AllowWarnDeny, ForbidElementsConfig];
|
|
1215
1220
|
"react/forward-ref-uses-ref"?: RuleNoConfig;
|
|
1221
|
+
"react/function-component-definition"?: RuleNoConfig | [AllowWarnDeny, FunctionComponentDefinitionConfig];
|
|
1216
1222
|
"react/hook-use-state"?: RuleNoConfig | [AllowWarnDeny, HookUseStateConfig];
|
|
1217
1223
|
"react/iframe-missing-sandbox"?: RuleNoConfig;
|
|
1218
1224
|
"react/jsx-boolean-value"?: RuleNoConfig | [AllowWarnDeny, EnforceBooleanAttribute] | [AllowWarnDeny, EnforceBooleanAttribute, JsxBooleanValueOptions];
|
|
@@ -1557,6 +1563,7 @@ interface DummyRuleMap {
|
|
|
1557
1563
|
"vitest/no-test-return-statement"?: RuleNoConfig;
|
|
1558
1564
|
"vitest/no-unneeded-async-expect-function"?: RuleNoConfig;
|
|
1559
1565
|
"vitest/padding-around-after-all-blocks"?: RuleNoConfig;
|
|
1566
|
+
"vitest/padding-around-test-blocks"?: RuleNoConfig;
|
|
1560
1567
|
"vitest/prefer-called-exactly-once-with"?: RuleNoConfig;
|
|
1561
1568
|
"vitest/prefer-called-once"?: RuleNoConfig;
|
|
1562
1569
|
"vitest/prefer-called-times"?: RuleNoConfig;
|
|
@@ -3938,6 +3945,14 @@ interface NoSyncConfig {
|
|
|
3938
3945
|
*/
|
|
3939
3946
|
ignores?: string[];
|
|
3940
3947
|
}
|
|
3948
|
+
interface NoTopLevelAwaitConfig {
|
|
3949
|
+
/**
|
|
3950
|
+
* If `true`, top-level `await` is allowed in files that start with a
|
|
3951
|
+
* hashbang (`#!`), which marks them as executable scripts rather than
|
|
3952
|
+
* importable modules.
|
|
3953
|
+
*/
|
|
3954
|
+
ignoreBin?: boolean;
|
|
3955
|
+
}
|
|
3941
3956
|
interface ObjectShorthandOptions {
|
|
3942
3957
|
avoidExplicitReturnArrows?: boolean;
|
|
3943
3958
|
avoidQuotes?: boolean;
|
|
@@ -4040,7 +4055,8 @@ interface PreferDestructuringAssignmentConfig {
|
|
|
4040
4055
|
AssignmentExpression?: PreferDestructuringTargetOption;
|
|
4041
4056
|
VariableDeclarator?: PreferDestructuringTargetOption;
|
|
4042
4057
|
}
|
|
4043
|
-
interface
|
|
4058
|
+
interface PreferDestructuringEnforcementConfig {
|
|
4059
|
+
enforceForDeclarationWithTypeAnnotation?: boolean;
|
|
4044
4060
|
enforceForRenamedProperties?: boolean;
|
|
4045
4061
|
}
|
|
4046
4062
|
interface PreferPromiseRejectErrors {
|
|
@@ -4406,6 +4422,10 @@ interface ForbidElementsConfig {
|
|
|
4406
4422
|
*/
|
|
4407
4423
|
forbid?: ForbidItem2[];
|
|
4408
4424
|
}
|
|
4425
|
+
interface FunctionComponentDefinitionConfig {
|
|
4426
|
+
namedComponents?: NamedComponents;
|
|
4427
|
+
unnamedComponents?: UnnamedComponents;
|
|
4428
|
+
}
|
|
4409
4429
|
interface HookUseStateConfig {
|
|
4410
4430
|
/**
|
|
4411
4431
|
* When true the rule will ignore the name of the destructured value.
|
package/dist/lint.js
CHANGED
|
@@ -880,38 +880,39 @@ function deserializeExpression(pos) {
|
|
|
880
880
|
case 5: return deserializeBoxStringLiteral(pos + 8);
|
|
881
881
|
case 6: return deserializeBoxTemplateLiteral(pos + 8);
|
|
882
882
|
case 7: return deserializeBoxIdentifierReference(pos + 8);
|
|
883
|
-
case 8: return
|
|
884
|
-
case 9: return
|
|
885
|
-
case 10: return
|
|
886
|
-
case 11: return
|
|
887
|
-
case 12: return
|
|
888
|
-
case 13: return
|
|
889
|
-
case 14: return
|
|
890
|
-
case 15: return
|
|
891
|
-
case 16: return
|
|
892
|
-
case 17: return
|
|
893
|
-
case 18: return
|
|
894
|
-
case 19: return
|
|
895
|
-
case 20: return
|
|
896
|
-
case 21: return
|
|
897
|
-
case 22: return
|
|
898
|
-
case 23: return
|
|
899
|
-
case 24: return
|
|
900
|
-
case 25: return
|
|
901
|
-
case 26: return
|
|
902
|
-
case 27: return
|
|
903
|
-
case 28: return
|
|
904
|
-
case 29: return
|
|
905
|
-
case 30: return
|
|
906
|
-
case 31: return
|
|
907
|
-
case 32: return
|
|
908
|
-
case 33: return
|
|
909
|
-
case 34: return
|
|
910
|
-
case 35: return
|
|
911
|
-
case 36: return
|
|
912
|
-
case 37: return
|
|
913
|
-
case 38: return
|
|
914
|
-
case 39: return
|
|
883
|
+
case 8: return deserializeBoxSuper(pos + 8);
|
|
884
|
+
case 9: return deserializeBoxArrayExpression(pos + 8);
|
|
885
|
+
case 10: return deserializeBoxArrowFunctionExpression(pos + 8);
|
|
886
|
+
case 11: return deserializeBoxAssignmentExpression(pos + 8);
|
|
887
|
+
case 12: return deserializeBoxAwaitExpression(pos + 8);
|
|
888
|
+
case 13: return deserializeBoxBinaryExpression(pos + 8);
|
|
889
|
+
case 14: return deserializeBoxCallExpression(pos + 8);
|
|
890
|
+
case 15: return deserializeBoxChainExpression(pos + 8);
|
|
891
|
+
case 16: return deserializeBoxClass(pos + 8);
|
|
892
|
+
case 17: return deserializeBoxConditionalExpression(pos + 8);
|
|
893
|
+
case 18: return deserializeBoxFunction(pos + 8);
|
|
894
|
+
case 19: return deserializeBoxImportExpression(pos + 8);
|
|
895
|
+
case 20: return deserializeBoxLogicalExpression(pos + 8);
|
|
896
|
+
case 21: return deserializeBoxNewExpression(pos + 8);
|
|
897
|
+
case 22: return deserializeBoxObjectExpression(pos + 8);
|
|
898
|
+
case 23: return deserializeBoxParenthesizedExpression(pos + 8);
|
|
899
|
+
case 24: return deserializeBoxSequenceExpression(pos + 8);
|
|
900
|
+
case 25: return deserializeBoxTaggedTemplateExpression(pos + 8);
|
|
901
|
+
case 26: return deserializeBoxThisExpression(pos + 8);
|
|
902
|
+
case 27: return deserializeBoxUnaryExpression(pos + 8);
|
|
903
|
+
case 28: return deserializeBoxUpdateExpression(pos + 8);
|
|
904
|
+
case 29: return deserializeBoxYieldExpression(pos + 8);
|
|
905
|
+
case 30: return deserializeBoxPrivateInExpression(pos + 8);
|
|
906
|
+
case 31: return deserializeBoxImportMeta(pos + 8);
|
|
907
|
+
case 32: return deserializeBoxNewTarget(pos + 8);
|
|
908
|
+
case 33: return deserializeBoxJSXElement(pos + 8);
|
|
909
|
+
case 34: return deserializeBoxJSXFragment(pos + 8);
|
|
910
|
+
case 35: return deserializeBoxTSAsExpression(pos + 8);
|
|
911
|
+
case 36: return deserializeBoxTSSatisfiesExpression(pos + 8);
|
|
912
|
+
case 37: return deserializeBoxTSTypeAssertion(pos + 8);
|
|
913
|
+
case 38: return deserializeBoxTSNonNullExpression(pos + 8);
|
|
914
|
+
case 39: return deserializeBoxTSInstantiationExpression(pos + 8);
|
|
915
|
+
case 40: return deserializeBoxV8IntrinsicExpression(pos + 8);
|
|
915
916
|
case 48: return deserializeBoxComputedMemberExpression(pos + 8);
|
|
916
917
|
case 49: return deserializeBoxStaticMemberExpression(pos + 8);
|
|
917
918
|
case 50: return deserializeBoxPrivateFieldExpression(pos + 8);
|
|
@@ -1011,38 +1012,39 @@ function deserializeArrayExpressionElement(pos) {
|
|
|
1011
1012
|
case 5: return deserializeBoxStringLiteral(pos + 8);
|
|
1012
1013
|
case 6: return deserializeBoxTemplateLiteral(pos + 8);
|
|
1013
1014
|
case 7: return deserializeBoxIdentifierReference(pos + 8);
|
|
1014
|
-
case 8: return
|
|
1015
|
-
case 9: return
|
|
1016
|
-
case 10: return
|
|
1017
|
-
case 11: return
|
|
1018
|
-
case 12: return
|
|
1019
|
-
case 13: return
|
|
1020
|
-
case 14: return
|
|
1021
|
-
case 15: return
|
|
1022
|
-
case 16: return
|
|
1023
|
-
case 17: return
|
|
1024
|
-
case 18: return
|
|
1025
|
-
case 19: return
|
|
1026
|
-
case 20: return
|
|
1027
|
-
case 21: return
|
|
1028
|
-
case 22: return
|
|
1029
|
-
case 23: return
|
|
1030
|
-
case 24: return
|
|
1031
|
-
case 25: return
|
|
1032
|
-
case 26: return
|
|
1033
|
-
case 27: return
|
|
1034
|
-
case 28: return
|
|
1035
|
-
case 29: return
|
|
1036
|
-
case 30: return
|
|
1037
|
-
case 31: return
|
|
1038
|
-
case 32: return
|
|
1039
|
-
case 33: return
|
|
1040
|
-
case 34: return
|
|
1041
|
-
case 35: return
|
|
1042
|
-
case 36: return
|
|
1043
|
-
case 37: return
|
|
1044
|
-
case 38: return
|
|
1045
|
-
case 39: return
|
|
1015
|
+
case 8: return deserializeBoxSuper(pos + 8);
|
|
1016
|
+
case 9: return deserializeBoxArrayExpression(pos + 8);
|
|
1017
|
+
case 10: return deserializeBoxArrowFunctionExpression(pos + 8);
|
|
1018
|
+
case 11: return deserializeBoxAssignmentExpression(pos + 8);
|
|
1019
|
+
case 12: return deserializeBoxAwaitExpression(pos + 8);
|
|
1020
|
+
case 13: return deserializeBoxBinaryExpression(pos + 8);
|
|
1021
|
+
case 14: return deserializeBoxCallExpression(pos + 8);
|
|
1022
|
+
case 15: return deserializeBoxChainExpression(pos + 8);
|
|
1023
|
+
case 16: return deserializeBoxClass(pos + 8);
|
|
1024
|
+
case 17: return deserializeBoxConditionalExpression(pos + 8);
|
|
1025
|
+
case 18: return deserializeBoxFunction(pos + 8);
|
|
1026
|
+
case 19: return deserializeBoxImportExpression(pos + 8);
|
|
1027
|
+
case 20: return deserializeBoxLogicalExpression(pos + 8);
|
|
1028
|
+
case 21: return deserializeBoxNewExpression(pos + 8);
|
|
1029
|
+
case 22: return deserializeBoxObjectExpression(pos + 8);
|
|
1030
|
+
case 23: return deserializeBoxParenthesizedExpression(pos + 8);
|
|
1031
|
+
case 24: return deserializeBoxSequenceExpression(pos + 8);
|
|
1032
|
+
case 25: return deserializeBoxTaggedTemplateExpression(pos + 8);
|
|
1033
|
+
case 26: return deserializeBoxThisExpression(pos + 8);
|
|
1034
|
+
case 27: return deserializeBoxUnaryExpression(pos + 8);
|
|
1035
|
+
case 28: return deserializeBoxUpdateExpression(pos + 8);
|
|
1036
|
+
case 29: return deserializeBoxYieldExpression(pos + 8);
|
|
1037
|
+
case 30: return deserializeBoxPrivateInExpression(pos + 8);
|
|
1038
|
+
case 31: return deserializeBoxImportMeta(pos + 8);
|
|
1039
|
+
case 32: return deserializeBoxNewTarget(pos + 8);
|
|
1040
|
+
case 33: return deserializeBoxJSXElement(pos + 8);
|
|
1041
|
+
case 34: return deserializeBoxJSXFragment(pos + 8);
|
|
1042
|
+
case 35: return deserializeBoxTSAsExpression(pos + 8);
|
|
1043
|
+
case 36: return deserializeBoxTSSatisfiesExpression(pos + 8);
|
|
1044
|
+
case 37: return deserializeBoxTSTypeAssertion(pos + 8);
|
|
1045
|
+
case 38: return deserializeBoxTSNonNullExpression(pos + 8);
|
|
1046
|
+
case 39: return deserializeBoxTSInstantiationExpression(pos + 8);
|
|
1047
|
+
case 40: return deserializeBoxV8IntrinsicExpression(pos + 8);
|
|
1046
1048
|
case 48: return deserializeBoxComputedMemberExpression(pos + 8);
|
|
1047
1049
|
case 49: return deserializeBoxStaticMemberExpression(pos + 8);
|
|
1048
1050
|
case 50: return deserializeBoxPrivateFieldExpression(pos + 8);
|
|
@@ -1101,38 +1103,39 @@ function deserializePropertyKey(pos) {
|
|
|
1101
1103
|
case 5: return deserializeBoxStringLiteral(pos + 8);
|
|
1102
1104
|
case 6: return deserializeBoxTemplateLiteral(pos + 8);
|
|
1103
1105
|
case 7: return deserializeBoxIdentifierReference(pos + 8);
|
|
1104
|
-
case 8: return
|
|
1105
|
-
case 9: return
|
|
1106
|
-
case 10: return
|
|
1107
|
-
case 11: return
|
|
1108
|
-
case 12: return
|
|
1109
|
-
case 13: return
|
|
1110
|
-
case 14: return
|
|
1111
|
-
case 15: return
|
|
1112
|
-
case 16: return
|
|
1113
|
-
case 17: return
|
|
1114
|
-
case 18: return
|
|
1115
|
-
case 19: return
|
|
1116
|
-
case 20: return
|
|
1117
|
-
case 21: return
|
|
1118
|
-
case 22: return
|
|
1119
|
-
case 23: return
|
|
1120
|
-
case 24: return
|
|
1121
|
-
case 25: return
|
|
1122
|
-
case 26: return
|
|
1123
|
-
case 27: return
|
|
1124
|
-
case 28: return
|
|
1125
|
-
case 29: return
|
|
1126
|
-
case 30: return
|
|
1127
|
-
case 31: return
|
|
1128
|
-
case 32: return
|
|
1129
|
-
case 33: return
|
|
1130
|
-
case 34: return
|
|
1131
|
-
case 35: return
|
|
1132
|
-
case 36: return
|
|
1133
|
-
case 37: return
|
|
1134
|
-
case 38: return
|
|
1135
|
-
case 39: return
|
|
1106
|
+
case 8: return deserializeBoxSuper(pos + 8);
|
|
1107
|
+
case 9: return deserializeBoxArrayExpression(pos + 8);
|
|
1108
|
+
case 10: return deserializeBoxArrowFunctionExpression(pos + 8);
|
|
1109
|
+
case 11: return deserializeBoxAssignmentExpression(pos + 8);
|
|
1110
|
+
case 12: return deserializeBoxAwaitExpression(pos + 8);
|
|
1111
|
+
case 13: return deserializeBoxBinaryExpression(pos + 8);
|
|
1112
|
+
case 14: return deserializeBoxCallExpression(pos + 8);
|
|
1113
|
+
case 15: return deserializeBoxChainExpression(pos + 8);
|
|
1114
|
+
case 16: return deserializeBoxClass(pos + 8);
|
|
1115
|
+
case 17: return deserializeBoxConditionalExpression(pos + 8);
|
|
1116
|
+
case 18: return deserializeBoxFunction(pos + 8);
|
|
1117
|
+
case 19: return deserializeBoxImportExpression(pos + 8);
|
|
1118
|
+
case 20: return deserializeBoxLogicalExpression(pos + 8);
|
|
1119
|
+
case 21: return deserializeBoxNewExpression(pos + 8);
|
|
1120
|
+
case 22: return deserializeBoxObjectExpression(pos + 8);
|
|
1121
|
+
case 23: return deserializeBoxParenthesizedExpression(pos + 8);
|
|
1122
|
+
case 24: return deserializeBoxSequenceExpression(pos + 8);
|
|
1123
|
+
case 25: return deserializeBoxTaggedTemplateExpression(pos + 8);
|
|
1124
|
+
case 26: return deserializeBoxThisExpression(pos + 8);
|
|
1125
|
+
case 27: return deserializeBoxUnaryExpression(pos + 8);
|
|
1126
|
+
case 28: return deserializeBoxUpdateExpression(pos + 8);
|
|
1127
|
+
case 29: return deserializeBoxYieldExpression(pos + 8);
|
|
1128
|
+
case 30: return deserializeBoxPrivateInExpression(pos + 8);
|
|
1129
|
+
case 31: return deserializeBoxImportMeta(pos + 8);
|
|
1130
|
+
case 32: return deserializeBoxNewTarget(pos + 8);
|
|
1131
|
+
case 33: return deserializeBoxJSXElement(pos + 8);
|
|
1132
|
+
case 34: return deserializeBoxJSXFragment(pos + 8);
|
|
1133
|
+
case 35: return deserializeBoxTSAsExpression(pos + 8);
|
|
1134
|
+
case 36: return deserializeBoxTSSatisfiesExpression(pos + 8);
|
|
1135
|
+
case 37: return deserializeBoxTSTypeAssertion(pos + 8);
|
|
1136
|
+
case 38: return deserializeBoxTSNonNullExpression(pos + 8);
|
|
1137
|
+
case 39: return deserializeBoxTSInstantiationExpression(pos + 8);
|
|
1138
|
+
case 40: return deserializeBoxV8IntrinsicExpression(pos + 8);
|
|
1136
1139
|
case 48: return deserializeBoxComputedMemberExpression(pos + 8);
|
|
1137
1140
|
case 49: return deserializeBoxStaticMemberExpression(pos + 8);
|
|
1138
1141
|
case 50: return deserializeBoxPrivateFieldExpression(pos + 8);
|
|
@@ -1269,7 +1272,7 @@ function deserializeNewExpression(pos) {
|
|
|
1269
1272
|
};
|
|
1270
1273
|
return node.callee = deserializeExpression(pos + 16), node.typeArguments = deserializeOptionBoxTSTypeParameterInstantiation(pos + 32), node.arguments = deserializeVecArgument(pos + 40), parent = previousParent, node;
|
|
1271
1274
|
}
|
|
1272
|
-
function
|
|
1275
|
+
function deserializeImportMeta(pos) {
|
|
1273
1276
|
let start, end, previousParent = parent, node = parent = {
|
|
1274
1277
|
__proto__: NodeProto,
|
|
1275
1278
|
type: "MetaProperty",
|
|
@@ -1279,8 +1282,65 @@ function deserializeMetaProperty(pos) {
|
|
|
1279
1282
|
end: end = deserializeI32(pos + 4),
|
|
1280
1283
|
range: [start, end],
|
|
1281
1284
|
parent
|
|
1285
|
+
}, importStart = deserializeI32(pos), importEnd = importStart + 6, importIdent = {
|
|
1286
|
+
__proto__: NodeProto,
|
|
1287
|
+
type: "Identifier",
|
|
1288
|
+
decorators: [],
|
|
1289
|
+
name: "import",
|
|
1290
|
+
optional: !1,
|
|
1291
|
+
typeAnnotation: null,
|
|
1292
|
+
start: importStart,
|
|
1293
|
+
end: importEnd,
|
|
1294
|
+
range: [importStart, importEnd],
|
|
1295
|
+
parent
|
|
1296
|
+
}, metaEnd = deserializeI32(pos + 4), metaStart = metaEnd - 4, metaIdent = {
|
|
1297
|
+
__proto__: NodeProto,
|
|
1298
|
+
type: "Identifier",
|
|
1299
|
+
decorators: [],
|
|
1300
|
+
name: "meta",
|
|
1301
|
+
optional: !1,
|
|
1302
|
+
typeAnnotation: null,
|
|
1303
|
+
start: metaStart,
|
|
1304
|
+
end: metaEnd,
|
|
1305
|
+
range: [metaStart, metaEnd],
|
|
1306
|
+
parent
|
|
1282
1307
|
};
|
|
1283
|
-
return node.meta =
|
|
1308
|
+
return node.meta = importIdent, node.property = metaIdent, parent = previousParent, node;
|
|
1309
|
+
}
|
|
1310
|
+
function deserializeNewTarget(pos) {
|
|
1311
|
+
let start, end, previousParent = parent, node = parent = {
|
|
1312
|
+
__proto__: NodeProto,
|
|
1313
|
+
type: "MetaProperty",
|
|
1314
|
+
meta: null,
|
|
1315
|
+
property: null,
|
|
1316
|
+
start: start = deserializeI32(pos),
|
|
1317
|
+
end: end = deserializeI32(pos + 4),
|
|
1318
|
+
range: [start, end],
|
|
1319
|
+
parent
|
|
1320
|
+
}, newStart = deserializeI32(pos), newEnd = newStart + 3, newIdent = {
|
|
1321
|
+
__proto__: NodeProto,
|
|
1322
|
+
type: "Identifier",
|
|
1323
|
+
decorators: [],
|
|
1324
|
+
name: "new",
|
|
1325
|
+
optional: !1,
|
|
1326
|
+
typeAnnotation: null,
|
|
1327
|
+
start: newStart,
|
|
1328
|
+
end: newEnd,
|
|
1329
|
+
range: [newStart, newEnd],
|
|
1330
|
+
parent
|
|
1331
|
+
}, targetEnd = deserializeI32(pos + 4), targetStart = targetEnd - 6, targetIdent = {
|
|
1332
|
+
__proto__: NodeProto,
|
|
1333
|
+
type: "Identifier",
|
|
1334
|
+
decorators: [],
|
|
1335
|
+
name: "target",
|
|
1336
|
+
optional: !1,
|
|
1337
|
+
typeAnnotation: null,
|
|
1338
|
+
start: targetStart,
|
|
1339
|
+
end: targetEnd,
|
|
1340
|
+
range: [targetStart, targetEnd],
|
|
1341
|
+
parent
|
|
1342
|
+
};
|
|
1343
|
+
return node.meta = newIdent, node.property = targetIdent, parent = previousParent, node;
|
|
1284
1344
|
}
|
|
1285
1345
|
function deserializeSpreadElement(pos) {
|
|
1286
1346
|
let start, end, previousParent = parent, node = parent = {
|
|
@@ -1304,38 +1364,39 @@ function deserializeArgument(pos) {
|
|
|
1304
1364
|
case 5: return deserializeBoxStringLiteral(pos + 8);
|
|
1305
1365
|
case 6: return deserializeBoxTemplateLiteral(pos + 8);
|
|
1306
1366
|
case 7: return deserializeBoxIdentifierReference(pos + 8);
|
|
1307
|
-
case 8: return
|
|
1308
|
-
case 9: return
|
|
1309
|
-
case 10: return
|
|
1310
|
-
case 11: return
|
|
1311
|
-
case 12: return
|
|
1312
|
-
case 13: return
|
|
1313
|
-
case 14: return
|
|
1314
|
-
case 15: return
|
|
1315
|
-
case 16: return
|
|
1316
|
-
case 17: return
|
|
1317
|
-
case 18: return
|
|
1318
|
-
case 19: return
|
|
1319
|
-
case 20: return
|
|
1320
|
-
case 21: return
|
|
1321
|
-
case 22: return
|
|
1322
|
-
case 23: return
|
|
1323
|
-
case 24: return
|
|
1324
|
-
case 25: return
|
|
1325
|
-
case 26: return
|
|
1326
|
-
case 27: return
|
|
1327
|
-
case 28: return
|
|
1328
|
-
case 29: return
|
|
1329
|
-
case 30: return
|
|
1330
|
-
case 31: return
|
|
1331
|
-
case 32: return
|
|
1332
|
-
case 33: return
|
|
1333
|
-
case 34: return
|
|
1334
|
-
case 35: return
|
|
1335
|
-
case 36: return
|
|
1336
|
-
case 37: return
|
|
1337
|
-
case 38: return
|
|
1338
|
-
case 39: return
|
|
1367
|
+
case 8: return deserializeBoxSuper(pos + 8);
|
|
1368
|
+
case 9: return deserializeBoxArrayExpression(pos + 8);
|
|
1369
|
+
case 10: return deserializeBoxArrowFunctionExpression(pos + 8);
|
|
1370
|
+
case 11: return deserializeBoxAssignmentExpression(pos + 8);
|
|
1371
|
+
case 12: return deserializeBoxAwaitExpression(pos + 8);
|
|
1372
|
+
case 13: return deserializeBoxBinaryExpression(pos + 8);
|
|
1373
|
+
case 14: return deserializeBoxCallExpression(pos + 8);
|
|
1374
|
+
case 15: return deserializeBoxChainExpression(pos + 8);
|
|
1375
|
+
case 16: return deserializeBoxClass(pos + 8);
|
|
1376
|
+
case 17: return deserializeBoxConditionalExpression(pos + 8);
|
|
1377
|
+
case 18: return deserializeBoxFunction(pos + 8);
|
|
1378
|
+
case 19: return deserializeBoxImportExpression(pos + 8);
|
|
1379
|
+
case 20: return deserializeBoxLogicalExpression(pos + 8);
|
|
1380
|
+
case 21: return deserializeBoxNewExpression(pos + 8);
|
|
1381
|
+
case 22: return deserializeBoxObjectExpression(pos + 8);
|
|
1382
|
+
case 23: return deserializeBoxParenthesizedExpression(pos + 8);
|
|
1383
|
+
case 24: return deserializeBoxSequenceExpression(pos + 8);
|
|
1384
|
+
case 25: return deserializeBoxTaggedTemplateExpression(pos + 8);
|
|
1385
|
+
case 26: return deserializeBoxThisExpression(pos + 8);
|
|
1386
|
+
case 27: return deserializeBoxUnaryExpression(pos + 8);
|
|
1387
|
+
case 28: return deserializeBoxUpdateExpression(pos + 8);
|
|
1388
|
+
case 29: return deserializeBoxYieldExpression(pos + 8);
|
|
1389
|
+
case 30: return deserializeBoxPrivateInExpression(pos + 8);
|
|
1390
|
+
case 31: return deserializeBoxImportMeta(pos + 8);
|
|
1391
|
+
case 32: return deserializeBoxNewTarget(pos + 8);
|
|
1392
|
+
case 33: return deserializeBoxJSXElement(pos + 8);
|
|
1393
|
+
case 34: return deserializeBoxJSXFragment(pos + 8);
|
|
1394
|
+
case 35: return deserializeBoxTSAsExpression(pos + 8);
|
|
1395
|
+
case 36: return deserializeBoxTSSatisfiesExpression(pos + 8);
|
|
1396
|
+
case 37: return deserializeBoxTSTypeAssertion(pos + 8);
|
|
1397
|
+
case 38: return deserializeBoxTSNonNullExpression(pos + 8);
|
|
1398
|
+
case 39: return deserializeBoxTSInstantiationExpression(pos + 8);
|
|
1399
|
+
case 40: return deserializeBoxV8IntrinsicExpression(pos + 8);
|
|
1339
1400
|
case 48: return deserializeBoxComputedMemberExpression(pos + 8);
|
|
1340
1401
|
case 49: return deserializeBoxStaticMemberExpression(pos + 8);
|
|
1341
1402
|
case 50: return deserializeBoxPrivateFieldExpression(pos + 8);
|
|
@@ -1888,38 +1949,39 @@ function deserializeForStatementInit(pos) {
|
|
|
1888
1949
|
case 5: return deserializeBoxStringLiteral(pos + 8);
|
|
1889
1950
|
case 6: return deserializeBoxTemplateLiteral(pos + 8);
|
|
1890
1951
|
case 7: return deserializeBoxIdentifierReference(pos + 8);
|
|
1891
|
-
case 8: return
|
|
1892
|
-
case 9: return
|
|
1893
|
-
case 10: return
|
|
1894
|
-
case 11: return
|
|
1895
|
-
case 12: return
|
|
1896
|
-
case 13: return
|
|
1897
|
-
case 14: return
|
|
1898
|
-
case 15: return
|
|
1899
|
-
case 16: return
|
|
1900
|
-
case 17: return
|
|
1901
|
-
case 18: return
|
|
1902
|
-
case 19: return
|
|
1903
|
-
case 20: return
|
|
1904
|
-
case 21: return
|
|
1905
|
-
case 22: return
|
|
1906
|
-
case 23: return
|
|
1907
|
-
case 24: return
|
|
1908
|
-
case 25: return
|
|
1909
|
-
case 26: return
|
|
1910
|
-
case 27: return
|
|
1911
|
-
case 28: return
|
|
1912
|
-
case 29: return
|
|
1913
|
-
case 30: return
|
|
1914
|
-
case 31: return
|
|
1915
|
-
case 32: return
|
|
1916
|
-
case 33: return
|
|
1917
|
-
case 34: return
|
|
1918
|
-
case 35: return
|
|
1919
|
-
case 36: return
|
|
1920
|
-
case 37: return
|
|
1921
|
-
case 38: return
|
|
1922
|
-
case 39: return
|
|
1952
|
+
case 8: return deserializeBoxSuper(pos + 8);
|
|
1953
|
+
case 9: return deserializeBoxArrayExpression(pos + 8);
|
|
1954
|
+
case 10: return deserializeBoxArrowFunctionExpression(pos + 8);
|
|
1955
|
+
case 11: return deserializeBoxAssignmentExpression(pos + 8);
|
|
1956
|
+
case 12: return deserializeBoxAwaitExpression(pos + 8);
|
|
1957
|
+
case 13: return deserializeBoxBinaryExpression(pos + 8);
|
|
1958
|
+
case 14: return deserializeBoxCallExpression(pos + 8);
|
|
1959
|
+
case 15: return deserializeBoxChainExpression(pos + 8);
|
|
1960
|
+
case 16: return deserializeBoxClass(pos + 8);
|
|
1961
|
+
case 17: return deserializeBoxConditionalExpression(pos + 8);
|
|
1962
|
+
case 18: return deserializeBoxFunction(pos + 8);
|
|
1963
|
+
case 19: return deserializeBoxImportExpression(pos + 8);
|
|
1964
|
+
case 20: return deserializeBoxLogicalExpression(pos + 8);
|
|
1965
|
+
case 21: return deserializeBoxNewExpression(pos + 8);
|
|
1966
|
+
case 22: return deserializeBoxObjectExpression(pos + 8);
|
|
1967
|
+
case 23: return deserializeBoxParenthesizedExpression(pos + 8);
|
|
1968
|
+
case 24: return deserializeBoxSequenceExpression(pos + 8);
|
|
1969
|
+
case 25: return deserializeBoxTaggedTemplateExpression(pos + 8);
|
|
1970
|
+
case 26: return deserializeBoxThisExpression(pos + 8);
|
|
1971
|
+
case 27: return deserializeBoxUnaryExpression(pos + 8);
|
|
1972
|
+
case 28: return deserializeBoxUpdateExpression(pos + 8);
|
|
1973
|
+
case 29: return deserializeBoxYieldExpression(pos + 8);
|
|
1974
|
+
case 30: return deserializeBoxPrivateInExpression(pos + 8);
|
|
1975
|
+
case 31: return deserializeBoxImportMeta(pos + 8);
|
|
1976
|
+
case 32: return deserializeBoxNewTarget(pos + 8);
|
|
1977
|
+
case 33: return deserializeBoxJSXElement(pos + 8);
|
|
1978
|
+
case 34: return deserializeBoxJSXFragment(pos + 8);
|
|
1979
|
+
case 35: return deserializeBoxTSAsExpression(pos + 8);
|
|
1980
|
+
case 36: return deserializeBoxTSSatisfiesExpression(pos + 8);
|
|
1981
|
+
case 37: return deserializeBoxTSTypeAssertion(pos + 8);
|
|
1982
|
+
case 38: return deserializeBoxTSNonNullExpression(pos + 8);
|
|
1983
|
+
case 39: return deserializeBoxTSInstantiationExpression(pos + 8);
|
|
1984
|
+
case 40: return deserializeBoxV8IntrinsicExpression(pos + 8);
|
|
1923
1985
|
case 48: return deserializeBoxComputedMemberExpression(pos + 8);
|
|
1924
1986
|
case 49: return deserializeBoxStaticMemberExpression(pos + 8);
|
|
1925
1987
|
case 50: return deserializeBoxPrivateFieldExpression(pos + 8);
|
|
@@ -2727,38 +2789,39 @@ function deserializeExportDefaultDeclarationKind(pos) {
|
|
|
2727
2789
|
case 5: return deserializeBoxStringLiteral(pos + 8);
|
|
2728
2790
|
case 6: return deserializeBoxTemplateLiteral(pos + 8);
|
|
2729
2791
|
case 7: return deserializeBoxIdentifierReference(pos + 8);
|
|
2730
|
-
case 8: return
|
|
2731
|
-
case 9: return
|
|
2732
|
-
case 10: return
|
|
2733
|
-
case 11: return
|
|
2734
|
-
case 12: return
|
|
2735
|
-
case 13: return
|
|
2736
|
-
case 14: return
|
|
2737
|
-
case 15: return
|
|
2738
|
-
case 16: return
|
|
2739
|
-
case 17: return
|
|
2740
|
-
case 18: return
|
|
2741
|
-
case 19: return
|
|
2742
|
-
case 20: return
|
|
2743
|
-
case 21: return
|
|
2744
|
-
case 22: return
|
|
2745
|
-
case 23: return
|
|
2746
|
-
case 24: return
|
|
2747
|
-
case 25: return
|
|
2748
|
-
case 26: return
|
|
2749
|
-
case 27: return
|
|
2750
|
-
case 28: return
|
|
2751
|
-
case 29: return
|
|
2752
|
-
case 30: return
|
|
2753
|
-
case 31: return
|
|
2754
|
-
case 32: return
|
|
2755
|
-
case 33: return
|
|
2756
|
-
case 34: return
|
|
2757
|
-
case 35: return
|
|
2758
|
-
case 36: return
|
|
2759
|
-
case 37: return
|
|
2760
|
-
case 38: return
|
|
2761
|
-
case 39: return
|
|
2792
|
+
case 8: return deserializeBoxSuper(pos + 8);
|
|
2793
|
+
case 9: return deserializeBoxArrayExpression(pos + 8);
|
|
2794
|
+
case 10: return deserializeBoxArrowFunctionExpression(pos + 8);
|
|
2795
|
+
case 11: return deserializeBoxAssignmentExpression(pos + 8);
|
|
2796
|
+
case 12: return deserializeBoxAwaitExpression(pos + 8);
|
|
2797
|
+
case 13: return deserializeBoxBinaryExpression(pos + 8);
|
|
2798
|
+
case 14: return deserializeBoxCallExpression(pos + 8);
|
|
2799
|
+
case 15: return deserializeBoxChainExpression(pos + 8);
|
|
2800
|
+
case 16: return deserializeBoxClass(pos + 8);
|
|
2801
|
+
case 17: return deserializeBoxConditionalExpression(pos + 8);
|
|
2802
|
+
case 18: return deserializeBoxFunction(pos + 8);
|
|
2803
|
+
case 19: return deserializeBoxImportExpression(pos + 8);
|
|
2804
|
+
case 20: return deserializeBoxLogicalExpression(pos + 8);
|
|
2805
|
+
case 21: return deserializeBoxNewExpression(pos + 8);
|
|
2806
|
+
case 22: return deserializeBoxObjectExpression(pos + 8);
|
|
2807
|
+
case 23: return deserializeBoxParenthesizedExpression(pos + 8);
|
|
2808
|
+
case 24: return deserializeBoxSequenceExpression(pos + 8);
|
|
2809
|
+
case 25: return deserializeBoxTaggedTemplateExpression(pos + 8);
|
|
2810
|
+
case 26: return deserializeBoxThisExpression(pos + 8);
|
|
2811
|
+
case 27: return deserializeBoxUnaryExpression(pos + 8);
|
|
2812
|
+
case 28: return deserializeBoxUpdateExpression(pos + 8);
|
|
2813
|
+
case 29: return deserializeBoxYieldExpression(pos + 8);
|
|
2814
|
+
case 30: return deserializeBoxPrivateInExpression(pos + 8);
|
|
2815
|
+
case 31: return deserializeBoxImportMeta(pos + 8);
|
|
2816
|
+
case 32: return deserializeBoxNewTarget(pos + 8);
|
|
2817
|
+
case 33: return deserializeBoxJSXElement(pos + 8);
|
|
2818
|
+
case 34: return deserializeBoxJSXFragment(pos + 8);
|
|
2819
|
+
case 35: return deserializeBoxTSAsExpression(pos + 8);
|
|
2820
|
+
case 36: return deserializeBoxTSSatisfiesExpression(pos + 8);
|
|
2821
|
+
case 37: return deserializeBoxTSTypeAssertion(pos + 8);
|
|
2822
|
+
case 38: return deserializeBoxTSNonNullExpression(pos + 8);
|
|
2823
|
+
case 39: return deserializeBoxTSInstantiationExpression(pos + 8);
|
|
2824
|
+
case 40: return deserializeBoxV8IntrinsicExpression(pos + 8);
|
|
2762
2825
|
case 48: return deserializeBoxComputedMemberExpression(pos + 8);
|
|
2763
2826
|
case 49: return deserializeBoxStaticMemberExpression(pos + 8);
|
|
2764
2827
|
case 50: return deserializeBoxPrivateFieldExpression(pos + 8);
|
|
@@ -3065,38 +3128,39 @@ function deserializeJSXExpression(pos) {
|
|
|
3065
3128
|
case 5: return deserializeBoxStringLiteral(pos + 8);
|
|
3066
3129
|
case 6: return deserializeBoxTemplateLiteral(pos + 8);
|
|
3067
3130
|
case 7: return deserializeBoxIdentifierReference(pos + 8);
|
|
3068
|
-
case 8: return
|
|
3069
|
-
case 9: return
|
|
3070
|
-
case 10: return
|
|
3071
|
-
case 11: return
|
|
3072
|
-
case 12: return
|
|
3073
|
-
case 13: return
|
|
3074
|
-
case 14: return
|
|
3075
|
-
case 15: return
|
|
3076
|
-
case 16: return
|
|
3077
|
-
case 17: return
|
|
3078
|
-
case 18: return
|
|
3079
|
-
case 19: return
|
|
3080
|
-
case 20: return
|
|
3081
|
-
case 21: return
|
|
3082
|
-
case 22: return
|
|
3083
|
-
case 23: return
|
|
3084
|
-
case 24: return
|
|
3085
|
-
case 25: return
|
|
3086
|
-
case 26: return
|
|
3087
|
-
case 27: return
|
|
3088
|
-
case 28: return
|
|
3089
|
-
case 29: return
|
|
3090
|
-
case 30: return
|
|
3091
|
-
case 31: return
|
|
3092
|
-
case 32: return
|
|
3093
|
-
case 33: return
|
|
3094
|
-
case 34: return
|
|
3095
|
-
case 35: return
|
|
3096
|
-
case 36: return
|
|
3097
|
-
case 37: return
|
|
3098
|
-
case 38: return
|
|
3099
|
-
case 39: return
|
|
3131
|
+
case 8: return deserializeBoxSuper(pos + 8);
|
|
3132
|
+
case 9: return deserializeBoxArrayExpression(pos + 8);
|
|
3133
|
+
case 10: return deserializeBoxArrowFunctionExpression(pos + 8);
|
|
3134
|
+
case 11: return deserializeBoxAssignmentExpression(pos + 8);
|
|
3135
|
+
case 12: return deserializeBoxAwaitExpression(pos + 8);
|
|
3136
|
+
case 13: return deserializeBoxBinaryExpression(pos + 8);
|
|
3137
|
+
case 14: return deserializeBoxCallExpression(pos + 8);
|
|
3138
|
+
case 15: return deserializeBoxChainExpression(pos + 8);
|
|
3139
|
+
case 16: return deserializeBoxClass(pos + 8);
|
|
3140
|
+
case 17: return deserializeBoxConditionalExpression(pos + 8);
|
|
3141
|
+
case 18: return deserializeBoxFunction(pos + 8);
|
|
3142
|
+
case 19: return deserializeBoxImportExpression(pos + 8);
|
|
3143
|
+
case 20: return deserializeBoxLogicalExpression(pos + 8);
|
|
3144
|
+
case 21: return deserializeBoxNewExpression(pos + 8);
|
|
3145
|
+
case 22: return deserializeBoxObjectExpression(pos + 8);
|
|
3146
|
+
case 23: return deserializeBoxParenthesizedExpression(pos + 8);
|
|
3147
|
+
case 24: return deserializeBoxSequenceExpression(pos + 8);
|
|
3148
|
+
case 25: return deserializeBoxTaggedTemplateExpression(pos + 8);
|
|
3149
|
+
case 26: return deserializeBoxThisExpression(pos + 8);
|
|
3150
|
+
case 27: return deserializeBoxUnaryExpression(pos + 8);
|
|
3151
|
+
case 28: return deserializeBoxUpdateExpression(pos + 8);
|
|
3152
|
+
case 29: return deserializeBoxYieldExpression(pos + 8);
|
|
3153
|
+
case 30: return deserializeBoxPrivateInExpression(pos + 8);
|
|
3154
|
+
case 31: return deserializeBoxImportMeta(pos + 8);
|
|
3155
|
+
case 32: return deserializeBoxNewTarget(pos + 8);
|
|
3156
|
+
case 33: return deserializeBoxJSXElement(pos + 8);
|
|
3157
|
+
case 34: return deserializeBoxJSXFragment(pos + 8);
|
|
3158
|
+
case 35: return deserializeBoxTSAsExpression(pos + 8);
|
|
3159
|
+
case 36: return deserializeBoxTSSatisfiesExpression(pos + 8);
|
|
3160
|
+
case 37: return deserializeBoxTSTypeAssertion(pos + 8);
|
|
3161
|
+
case 38: return deserializeBoxTSNonNullExpression(pos + 8);
|
|
3162
|
+
case 39: return deserializeBoxTSInstantiationExpression(pos + 8);
|
|
3163
|
+
case 40: return deserializeBoxV8IntrinsicExpression(pos + 8);
|
|
3100
3164
|
case 48: return deserializeBoxComputedMemberExpression(pos + 8);
|
|
3101
3165
|
case 49: return deserializeBoxStaticMemberExpression(pos + 8);
|
|
3102
3166
|
case 50: return deserializeBoxPrivateFieldExpression(pos + 8);
|
|
@@ -4602,9 +4666,6 @@ function deserializeBoxTemplateLiteral(pos) {
|
|
|
4602
4666
|
function deserializeBoxIdentifierReference(pos) {
|
|
4603
4667
|
return deserializeIdentifierReference(int32[pos >> 2]);
|
|
4604
4668
|
}
|
|
4605
|
-
function deserializeBoxMetaProperty(pos) {
|
|
4606
|
-
return deserializeMetaProperty(int32[pos >> 2]);
|
|
4607
|
-
}
|
|
4608
4669
|
function deserializeBoxSuper(pos) {
|
|
4609
4670
|
return deserializeSuper(int32[pos >> 2]);
|
|
4610
4671
|
}
|
|
@@ -4674,6 +4735,12 @@ function deserializeBoxYieldExpression(pos) {
|
|
|
4674
4735
|
function deserializeBoxPrivateInExpression(pos) {
|
|
4675
4736
|
return deserializePrivateInExpression(int32[pos >> 2]);
|
|
4676
4737
|
}
|
|
4738
|
+
function deserializeBoxImportMeta(pos) {
|
|
4739
|
+
return deserializeImportMeta(int32[pos >> 2]);
|
|
4740
|
+
}
|
|
4741
|
+
function deserializeBoxNewTarget(pos) {
|
|
4742
|
+
return deserializeNewTarget(int32[pos >> 2]);
|
|
4743
|
+
}
|
|
4677
4744
|
function deserializeBoxJSXElement(pos) {
|
|
4678
4745
|
return deserializeJSXElement(int32[pos >> 2]);
|
|
4679
4746
|
}
|
|
@@ -14109,7 +14176,7 @@ function resetSettings() {
|
|
|
14109
14176
|
}
|
|
14110
14177
|
//#endregion
|
|
14111
14178
|
//#region package.json
|
|
14112
|
-
var version = "1.
|
|
14179
|
+
var version = "1.75.0";
|
|
14113
14180
|
//#endregion
|
|
14114
14181
|
//#region src-js/plugins/context.ts
|
|
14115
14182
|
const ObjectFreeze$1 = Object.freeze, ObjectCreate = Object.create, ObjectAssign = Object.assign, ObjectPreventExtensions = Object.preventExtensions;
|
|
@@ -17732,7 +17799,7 @@ function conformHookFn(hookFn, hookName) {
|
|
|
17732
17799
|
return hookFn;
|
|
17733
17800
|
}
|
|
17734
17801
|
//#endregion
|
|
17735
|
-
//#region ../../node_modules/.pnpm/eslint@10.
|
|
17802
|
+
//#region ../../node_modules/.pnpm/eslint@10.7.0/node_modules/eslint/lib/shared/assert.js
|
|
17736
17803
|
/**
|
|
17737
17804
|
* @fileoverview Assertion utilities equivalent to the Node.js node:asserts module.
|
|
17738
17805
|
* @author Josh Goldberg
|
|
@@ -21019,9 +21086,7 @@ function walkNode(node, visitors) {
|
|
|
21019
21086
|
case "TSTypeReference":
|
|
21020
21087
|
walkTSTypeReference(node, visitors);
|
|
21021
21088
|
break;
|
|
21022
|
-
case "TSUnionType":
|
|
21023
|
-
walkTSUnionType(node, visitors);
|
|
21024
|
-
break;
|
|
21089
|
+
case "TSUnionType": walkTSUnionType(node, visitors);
|
|
21025
21090
|
}
|
|
21026
21091
|
}
|
|
21027
21092
|
function walkDebuggerStatement(node, visitors) {
|
package/dist/plugins-dev.d.ts
CHANGED
|
@@ -1326,7 +1326,7 @@ interface Program extends Span {
|
|
|
1326
1326
|
tokens: TokenType[];
|
|
1327
1327
|
parent: null;
|
|
1328
1328
|
}
|
|
1329
|
-
type Expression = BooleanLiteral | NullLiteral | NumericLiteral | BigIntLiteral | RegExpLiteral | StringLiteral | TemplateLiteral | IdentifierReference |
|
|
1329
|
+
type Expression = BooleanLiteral | NullLiteral | NumericLiteral | BigIntLiteral | RegExpLiteral | StringLiteral | TemplateLiteral | IdentifierReference | Super | ArrayExpression | ArrowFunctionExpression | AssignmentExpression | AwaitExpression | BinaryExpression | CallExpression | ChainExpression | Class | ConditionalExpression | Function$1 | ImportExpression | LogicalExpression | NewExpression | ObjectExpression | ParenthesizedExpression | SequenceExpression | TaggedTemplateExpression | ThisExpression | UnaryExpression | UpdateExpression | YieldExpression | PrivateInExpression | MetaProperty | JSXElement | JSXFragment | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSNonNullExpression | TSInstantiationExpression | V8IntrinsicExpression | MemberExpression;
|
|
1330
1330
|
interface IdentifierName extends Span {
|
|
1331
1331
|
type: "Identifier";
|
|
1332
1332
|
decorators?: [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oxlint",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.75.0",
|
|
4
4
|
"description": "Linter for the JavaScript Oxidation Compiler",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"./package.json": "./package.json"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"oxlint-tsgolint": ">=0.
|
|
49
|
+
"oxlint-tsgolint": ">=7.0.2001",
|
|
50
50
|
"vite-plus": "*"
|
|
51
51
|
},
|
|
52
52
|
"peerDependenciesMeta": {
|
|
@@ -87,24 +87,24 @@
|
|
|
87
87
|
},
|
|
88
88
|
"preferUnplugged": true,
|
|
89
89
|
"optionalDependencies": {
|
|
90
|
-
"@oxlint/binding-darwin-arm64": "1.
|
|
91
|
-
"@oxlint/binding-android-arm64": "1.
|
|
92
|
-
"@oxlint/binding-win32-arm64-msvc": "1.
|
|
93
|
-
"@oxlint/binding-linux-arm64-gnu": "1.
|
|
94
|
-
"@oxlint/binding-linux-arm64-musl": "1.
|
|
95
|
-
"@oxlint/binding-openharmony-arm64": "1.
|
|
96
|
-
"@oxlint/binding-android-arm-eabi": "1.
|
|
97
|
-
"@oxlint/binding-linux-arm-gnueabihf": "1.
|
|
98
|
-
"@oxlint/binding-linux-arm-musleabihf": "1.
|
|
99
|
-
"@oxlint/binding-win32-ia32-msvc": "1.
|
|
100
|
-
"@oxlint/binding-linux-ppc64-gnu": "1.
|
|
101
|
-
"@oxlint/binding-linux-riscv64-gnu": "1.
|
|
102
|
-
"@oxlint/binding-linux-riscv64-musl": "1.
|
|
103
|
-
"@oxlint/binding-linux-s390x-gnu": "1.
|
|
104
|
-
"@oxlint/binding-darwin-x64": "1.
|
|
105
|
-
"@oxlint/binding-win32-x64-msvc": "1.
|
|
106
|
-
"@oxlint/binding-freebsd-x64": "1.
|
|
107
|
-
"@oxlint/binding-linux-x64-gnu": "1.
|
|
108
|
-
"@oxlint/binding-linux-x64-musl": "1.
|
|
90
|
+
"@oxlint/binding-darwin-arm64": "1.75.0",
|
|
91
|
+
"@oxlint/binding-android-arm64": "1.75.0",
|
|
92
|
+
"@oxlint/binding-win32-arm64-msvc": "1.75.0",
|
|
93
|
+
"@oxlint/binding-linux-arm64-gnu": "1.75.0",
|
|
94
|
+
"@oxlint/binding-linux-arm64-musl": "1.75.0",
|
|
95
|
+
"@oxlint/binding-openharmony-arm64": "1.75.0",
|
|
96
|
+
"@oxlint/binding-android-arm-eabi": "1.75.0",
|
|
97
|
+
"@oxlint/binding-linux-arm-gnueabihf": "1.75.0",
|
|
98
|
+
"@oxlint/binding-linux-arm-musleabihf": "1.75.0",
|
|
99
|
+
"@oxlint/binding-win32-ia32-msvc": "1.75.0",
|
|
100
|
+
"@oxlint/binding-linux-ppc64-gnu": "1.75.0",
|
|
101
|
+
"@oxlint/binding-linux-riscv64-gnu": "1.75.0",
|
|
102
|
+
"@oxlint/binding-linux-riscv64-musl": "1.75.0",
|
|
103
|
+
"@oxlint/binding-linux-s390x-gnu": "1.75.0",
|
|
104
|
+
"@oxlint/binding-darwin-x64": "1.75.0",
|
|
105
|
+
"@oxlint/binding-win32-x64-msvc": "1.75.0",
|
|
106
|
+
"@oxlint/binding-freebsd-x64": "1.75.0",
|
|
107
|
+
"@oxlint/binding-linux-x64-gnu": "1.75.0",
|
|
108
|
+
"@oxlint/binding-linux-x64-musl": "1.75.0"
|
|
109
109
|
}
|
|
110
110
|
}
|