@depup/oxlint 1.77.0-depup.0 → 1.79.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 +318 -62
- package/dist/bindings.js +327 -316
- package/dist/index.d.ts +103 -23
- package/dist/lint.js +786 -723
- package/dist/plugins-dev.d.ts +2 -2
- 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-08-
|
|
16
|
+
| Original | [oxlint](https://www.npmjs.com/package/oxlint) @ 1.79.0 |
|
|
17
|
+
| Processed | 2026-08-18 |
|
|
18
18
|
| Smoke test | passed |
|
|
19
19
|
| Deps updated | 0 |
|
|
20
20
|
|
package/changes.json
CHANGED
|
@@ -672,6 +672,21 @@
|
|
|
672
672
|
},
|
|
673
673
|
"additionalProperties": false
|
|
674
674
|
},
|
|
675
|
+
"AnchorHasContentConfig": {
|
|
676
|
+
"type": "object",
|
|
677
|
+
"properties": {
|
|
678
|
+
"components": {
|
|
679
|
+
"description": "Additional custom component names to treat as anchor elements.",
|
|
680
|
+
"default": [],
|
|
681
|
+
"type": "array",
|
|
682
|
+
"items": {
|
|
683
|
+
"type": "string"
|
|
684
|
+
},
|
|
685
|
+
"markdownDescription": "Additional custom component names to treat as anchor elements."
|
|
686
|
+
}
|
|
687
|
+
},
|
|
688
|
+
"additionalProperties": false
|
|
689
|
+
},
|
|
675
690
|
"AnchorIsValidAspect": {
|
|
676
691
|
"type": "string",
|
|
677
692
|
"enum": [
|
|
@@ -2034,6 +2049,15 @@
|
|
|
2034
2049
|
},
|
|
2035
2050
|
"additionalProperties": false
|
|
2036
2051
|
},
|
|
2052
|
+
"DescriptionFormatConfig": {
|
|
2053
|
+
"type": "object",
|
|
2054
|
+
"properties": {
|
|
2055
|
+
"descriptionFormat": {
|
|
2056
|
+
"type": "string"
|
|
2057
|
+
}
|
|
2058
|
+
},
|
|
2059
|
+
"additionalProperties": false
|
|
2060
|
+
},
|
|
2037
2061
|
"Destructure": {
|
|
2038
2062
|
"oneOf": [
|
|
2039
2063
|
{
|
|
@@ -2091,13 +2115,7 @@
|
|
|
2091
2115
|
"$ref": "#/definitions/RequireDescription"
|
|
2092
2116
|
},
|
|
2093
2117
|
{
|
|
2094
|
-
"
|
|
2095
|
-
"properties": {
|
|
2096
|
-
"descriptionFormat": {
|
|
2097
|
-
"type": "string"
|
|
2098
|
-
}
|
|
2099
|
-
},
|
|
2100
|
-
"additionalProperties": false
|
|
2118
|
+
"$ref": "#/definitions/DescriptionFormatConfig"
|
|
2101
2119
|
}
|
|
2102
2120
|
]
|
|
2103
2121
|
},
|
|
@@ -2545,15 +2563,12 @@
|
|
|
2545
2563
|
"items": [
|
|
2546
2564
|
{
|
|
2547
2565
|
"$ref": "#/definitions/AllowWarnDeny"
|
|
2548
|
-
},
|
|
2549
|
-
{
|
|
2550
|
-
"type": "string"
|
|
2551
2566
|
}
|
|
2552
2567
|
],
|
|
2553
2568
|
"additionalItems": {
|
|
2554
2569
|
"type": "string"
|
|
2555
2570
|
},
|
|
2556
|
-
"minItems":
|
|
2571
|
+
"minItems": 1,
|
|
2557
2572
|
"uniqueItems": true
|
|
2558
2573
|
}
|
|
2559
2574
|
]
|
|
@@ -3563,6 +3578,26 @@
|
|
|
3563
3578
|
"jsdoc/implements-on-classes": {
|
|
3564
3579
|
"$ref": "#/definitions/RuleNoConfig"
|
|
3565
3580
|
},
|
|
3581
|
+
"jsdoc/no-blank-blocks": {
|
|
3582
|
+
"anyOf": [
|
|
3583
|
+
{
|
|
3584
|
+
"$ref": "#/definitions/RuleNoConfig"
|
|
3585
|
+
},
|
|
3586
|
+
{
|
|
3587
|
+
"type": "array",
|
|
3588
|
+
"items": [
|
|
3589
|
+
{
|
|
3590
|
+
"$ref": "#/definitions/AllowWarnDeny"
|
|
3591
|
+
},
|
|
3592
|
+
{
|
|
3593
|
+
"$ref": "#/definitions/NoBlankBlocks"
|
|
3594
|
+
}
|
|
3595
|
+
],
|
|
3596
|
+
"maxItems": 2,
|
|
3597
|
+
"minItems": 2
|
|
3598
|
+
}
|
|
3599
|
+
]
|
|
3600
|
+
},
|
|
3566
3601
|
"jsdoc/no-defaults": {
|
|
3567
3602
|
"anyOf": [
|
|
3568
3603
|
{
|
|
@@ -3757,7 +3792,24 @@
|
|
|
3757
3792
|
]
|
|
3758
3793
|
},
|
|
3759
3794
|
"jsx-a11y/anchor-has-content": {
|
|
3760
|
-
"
|
|
3795
|
+
"anyOf": [
|
|
3796
|
+
{
|
|
3797
|
+
"$ref": "#/definitions/RuleNoConfig"
|
|
3798
|
+
},
|
|
3799
|
+
{
|
|
3800
|
+
"type": "array",
|
|
3801
|
+
"items": [
|
|
3802
|
+
{
|
|
3803
|
+
"$ref": "#/definitions/AllowWarnDeny"
|
|
3804
|
+
},
|
|
3805
|
+
{
|
|
3806
|
+
"$ref": "#/definitions/AnchorHasContentConfig"
|
|
3807
|
+
}
|
|
3808
|
+
],
|
|
3809
|
+
"maxItems": 2,
|
|
3810
|
+
"minItems": 2
|
|
3811
|
+
}
|
|
3812
|
+
]
|
|
3761
3813
|
},
|
|
3762
3814
|
"jsx-a11y/anchor-is-valid": {
|
|
3763
3815
|
"anyOf": [
|
|
@@ -5163,15 +5215,12 @@
|
|
|
5163
5215
|
"items": [
|
|
5164
5216
|
{
|
|
5165
5217
|
"$ref": "#/definitions/AllowWarnDeny"
|
|
5166
|
-
},
|
|
5167
|
-
{
|
|
5168
|
-
"$ref": "#/definitions/NoRestrictedGlobalsConfigEnum"
|
|
5169
5218
|
}
|
|
5170
5219
|
],
|
|
5171
5220
|
"additionalItems": {
|
|
5172
5221
|
"$ref": "#/definitions/NoRestrictedGlobalsConfigEnum"
|
|
5173
5222
|
},
|
|
5174
|
-
"minItems":
|
|
5223
|
+
"minItems": 1
|
|
5175
5224
|
}
|
|
5176
5225
|
]
|
|
5177
5226
|
},
|
|
@@ -5184,15 +5233,12 @@
|
|
|
5184
5233
|
"items": [
|
|
5185
5234
|
{
|
|
5186
5235
|
"$ref": "#/definitions/AllowWarnDeny"
|
|
5187
|
-
},
|
|
5188
|
-
{
|
|
5189
|
-
"$ref": "#/definitions/NoRestrictedImportsConfigEnum"
|
|
5190
5236
|
}
|
|
5191
5237
|
],
|
|
5192
5238
|
"additionalItems": {
|
|
5193
5239
|
"$ref": "#/definitions/NoRestrictedImportsConfigEnum"
|
|
5194
5240
|
},
|
|
5195
|
-
"minItems":
|
|
5241
|
+
"minItems": 1
|
|
5196
5242
|
}
|
|
5197
5243
|
]
|
|
5198
5244
|
},
|
|
@@ -5205,15 +5251,12 @@
|
|
|
5205
5251
|
"items": [
|
|
5206
5252
|
{
|
|
5207
5253
|
"$ref": "#/definitions/AllowWarnDeny"
|
|
5208
|
-
},
|
|
5209
|
-
{
|
|
5210
|
-
"$ref": "#/definitions/PropertyDetails"
|
|
5211
5254
|
}
|
|
5212
5255
|
],
|
|
5213
5256
|
"additionalItems": {
|
|
5214
5257
|
"$ref": "#/definitions/PropertyDetails"
|
|
5215
5258
|
},
|
|
5216
|
-
"minItems":
|
|
5259
|
+
"minItems": 1
|
|
5217
5260
|
}
|
|
5218
5261
|
]
|
|
5219
5262
|
},
|
|
@@ -5850,6 +5893,26 @@
|
|
|
5850
5893
|
}
|
|
5851
5894
|
]
|
|
5852
5895
|
},
|
|
5896
|
+
"one-var": {
|
|
5897
|
+
"anyOf": [
|
|
5898
|
+
{
|
|
5899
|
+
"$ref": "#/definitions/RuleNoConfig"
|
|
5900
|
+
},
|
|
5901
|
+
{
|
|
5902
|
+
"type": "array",
|
|
5903
|
+
"items": [
|
|
5904
|
+
{
|
|
5905
|
+
"$ref": "#/definitions/AllowWarnDeny"
|
|
5906
|
+
},
|
|
5907
|
+
{
|
|
5908
|
+
"$ref": "#/definitions/OneVar"
|
|
5909
|
+
}
|
|
5910
|
+
],
|
|
5911
|
+
"maxItems": 2,
|
|
5912
|
+
"minItems": 2
|
|
5913
|
+
}
|
|
5914
|
+
]
|
|
5915
|
+
},
|
|
5853
5916
|
"operator-assignment": {
|
|
5854
5917
|
"anyOf": [
|
|
5855
5918
|
{
|
|
@@ -6487,6 +6550,9 @@
|
|
|
6487
6550
|
}
|
|
6488
6551
|
]
|
|
6489
6552
|
},
|
|
6553
|
+
"react/capitalized-calls": {
|
|
6554
|
+
"$ref": "#/definitions/RuleNoConfig"
|
|
6555
|
+
},
|
|
6490
6556
|
"react/checked-requires-onchange-or-readonly": {
|
|
6491
6557
|
"anyOf": [
|
|
6492
6558
|
{
|
|
@@ -6527,6 +6593,9 @@
|
|
|
6527
6593
|
}
|
|
6528
6594
|
]
|
|
6529
6595
|
},
|
|
6596
|
+
"react/error-boundaries": {
|
|
6597
|
+
"$ref": "#/definitions/RuleNoConfig"
|
|
6598
|
+
},
|
|
6530
6599
|
"react/exhaustive-deps": {
|
|
6531
6600
|
"anyOf": [
|
|
6532
6601
|
{
|
|
@@ -6547,6 +6616,9 @@
|
|
|
6547
6616
|
}
|
|
6548
6617
|
]
|
|
6549
6618
|
},
|
|
6619
|
+
"react/exhaustive-effect-dependencies": {
|
|
6620
|
+
"$ref": "#/definitions/RuleNoConfig"
|
|
6621
|
+
},
|
|
6550
6622
|
"react/forbid-component-props": {
|
|
6551
6623
|
"anyOf": [
|
|
6552
6624
|
{
|
|
@@ -6630,6 +6702,9 @@
|
|
|
6630
6702
|
}
|
|
6631
6703
|
]
|
|
6632
6704
|
},
|
|
6705
|
+
"react/globals": {
|
|
6706
|
+
"$ref": "#/definitions/RuleNoConfig"
|
|
6707
|
+
},
|
|
6633
6708
|
"react/hook-use-state": {
|
|
6634
6709
|
"anyOf": [
|
|
6635
6710
|
{
|
|
@@ -6650,9 +6725,21 @@
|
|
|
6650
6725
|
}
|
|
6651
6726
|
]
|
|
6652
6727
|
},
|
|
6728
|
+
"react/hooks": {
|
|
6729
|
+
"$ref": "#/definitions/RuleNoConfig"
|
|
6730
|
+
},
|
|
6653
6731
|
"react/iframe-missing-sandbox": {
|
|
6654
6732
|
"$ref": "#/definitions/RuleNoConfig"
|
|
6655
6733
|
},
|
|
6734
|
+
"react/immutability": {
|
|
6735
|
+
"$ref": "#/definitions/RuleNoConfig"
|
|
6736
|
+
},
|
|
6737
|
+
"react/incompatible-library": {
|
|
6738
|
+
"$ref": "#/definitions/RuleNoConfig"
|
|
6739
|
+
},
|
|
6740
|
+
"react/invariant": {
|
|
6741
|
+
"$ref": "#/definitions/RuleNoConfig"
|
|
6742
|
+
},
|
|
6656
6743
|
"react/jsx-boolean-value": {
|
|
6657
6744
|
"anyOf": [
|
|
6658
6745
|
{
|
|
@@ -6954,6 +7041,9 @@
|
|
|
6954
7041
|
}
|
|
6955
7042
|
]
|
|
6956
7043
|
},
|
|
7044
|
+
"react/memo-dependencies": {
|
|
7045
|
+
"$ref": "#/definitions/RuleNoConfig"
|
|
7046
|
+
},
|
|
6957
7047
|
"react/no-array-index-key": {
|
|
6958
7048
|
"$ref": "#/definitions/RuleNoConfig"
|
|
6959
7049
|
},
|
|
@@ -6969,6 +7059,9 @@
|
|
|
6969
7059
|
"react/no-danger-with-children": {
|
|
6970
7060
|
"$ref": "#/definitions/RuleNoConfig"
|
|
6971
7061
|
},
|
|
7062
|
+
"react/no-deriving-state-in-effects": {
|
|
7063
|
+
"$ref": "#/definitions/RuleNoConfig"
|
|
7064
|
+
},
|
|
6972
7065
|
"react/no-did-mount-set-state": {
|
|
6973
7066
|
"anyOf": [
|
|
6974
7067
|
{
|
|
@@ -7222,32 +7315,24 @@
|
|
|
7222
7315
|
}
|
|
7223
7316
|
]
|
|
7224
7317
|
},
|
|
7225
|
-
"react/
|
|
7226
|
-
"
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
|
|
7230
|
-
{
|
|
7231
|
-
"type": "array",
|
|
7232
|
-
"items": [
|
|
7233
|
-
{
|
|
7234
|
-
"$ref": "#/definitions/AllowWarnDeny"
|
|
7235
|
-
},
|
|
7236
|
-
{
|
|
7237
|
-
"$ref": "#/definitions/ReactCompilerConfig"
|
|
7238
|
-
}
|
|
7239
|
-
],
|
|
7240
|
-
"maxItems": 2,
|
|
7241
|
-
"minItems": 2
|
|
7242
|
-
}
|
|
7243
|
-
]
|
|
7318
|
+
"react/preserve-manual-memoization": {
|
|
7319
|
+
"$ref": "#/definitions/RuleNoConfig"
|
|
7320
|
+
},
|
|
7321
|
+
"react/purity": {
|
|
7322
|
+
"$ref": "#/definitions/RuleNoConfig"
|
|
7244
7323
|
},
|
|
7245
7324
|
"react/react-in-jsx-scope": {
|
|
7246
7325
|
"$ref": "#/definitions/RuleNoConfig"
|
|
7247
7326
|
},
|
|
7327
|
+
"react/refs": {
|
|
7328
|
+
"$ref": "#/definitions/RuleNoConfig"
|
|
7329
|
+
},
|
|
7248
7330
|
"react/require-render-return": {
|
|
7249
7331
|
"$ref": "#/definitions/RuleNoConfig"
|
|
7250
7332
|
},
|
|
7333
|
+
"react/rule-suppression": {
|
|
7334
|
+
"$ref": "#/definitions/RuleNoConfig"
|
|
7335
|
+
},
|
|
7251
7336
|
"react/rules-of-hooks": {
|
|
7252
7337
|
"$ref": "#/definitions/RuleNoConfig"
|
|
7253
7338
|
},
|
|
@@ -7271,6 +7356,12 @@
|
|
|
7271
7356
|
}
|
|
7272
7357
|
]
|
|
7273
7358
|
},
|
|
7359
|
+
"react/set-state-in-effect": {
|
|
7360
|
+
"$ref": "#/definitions/RuleNoConfig"
|
|
7361
|
+
},
|
|
7362
|
+
"react/set-state-in-render": {
|
|
7363
|
+
"$ref": "#/definitions/RuleNoConfig"
|
|
7364
|
+
},
|
|
7274
7365
|
"react/state-in-constructor": {
|
|
7275
7366
|
"anyOf": [
|
|
7276
7367
|
{
|
|
@@ -7291,6 +7382,9 @@
|
|
|
7291
7382
|
}
|
|
7292
7383
|
]
|
|
7293
7384
|
},
|
|
7385
|
+
"react/static-components": {
|
|
7386
|
+
"$ref": "#/definitions/RuleNoConfig"
|
|
7387
|
+
},
|
|
7294
7388
|
"react/style-prop-object": {
|
|
7295
7389
|
"anyOf": [
|
|
7296
7390
|
{
|
|
@@ -7311,9 +7405,24 @@
|
|
|
7311
7405
|
}
|
|
7312
7406
|
]
|
|
7313
7407
|
},
|
|
7408
|
+
"react/syntax": {
|
|
7409
|
+
"$ref": "#/definitions/RuleNoConfig"
|
|
7410
|
+
},
|
|
7411
|
+
"react/todo": {
|
|
7412
|
+
"$ref": "#/definitions/RuleNoConfig"
|
|
7413
|
+
},
|
|
7414
|
+
"react/unsupported-syntax": {
|
|
7415
|
+
"$ref": "#/definitions/RuleNoConfig"
|
|
7416
|
+
},
|
|
7417
|
+
"react/use-memo": {
|
|
7418
|
+
"$ref": "#/definitions/RuleNoConfig"
|
|
7419
|
+
},
|
|
7314
7420
|
"react/void-dom-elements-no-children": {
|
|
7315
7421
|
"$ref": "#/definitions/RuleNoConfig"
|
|
7316
7422
|
},
|
|
7423
|
+
"react/void-use-memo": {
|
|
7424
|
+
"$ref": "#/definitions/RuleNoConfig"
|
|
7425
|
+
},
|
|
7317
7426
|
"require-await": {
|
|
7318
7427
|
"$ref": "#/definitions/RuleNoConfig"
|
|
7319
7428
|
},
|
|
@@ -13715,6 +13824,18 @@
|
|
|
13715
13824
|
},
|
|
13716
13825
|
"additionalProperties": false
|
|
13717
13826
|
},
|
|
13827
|
+
"NoBlankBlocks": {
|
|
13828
|
+
"type": "object",
|
|
13829
|
+
"properties": {
|
|
13830
|
+
"enableFixer": {
|
|
13831
|
+
"description": "Whether to automatically remove blank JSDoc blocks.",
|
|
13832
|
+
"default": false,
|
|
13833
|
+
"type": "boolean",
|
|
13834
|
+
"markdownDescription": "Whether to automatically remove blank JSDoc blocks."
|
|
13835
|
+
}
|
|
13836
|
+
},
|
|
13837
|
+
"additionalProperties": false
|
|
13838
|
+
},
|
|
13718
13839
|
"NoCallbackInPromiseConfig": {
|
|
13719
13840
|
"type": "object",
|
|
13720
13841
|
"properties": {
|
|
@@ -14130,7 +14251,7 @@
|
|
|
14130
14251
|
"properties": {
|
|
14131
14252
|
"allowIndirect": {
|
|
14132
14253
|
"description": "This `allowIndirect` option allows indirect `eval()` calls.\n\nIndirect calls to `eval`(e.g., `window['eval']`) are less dangerous\nthan direct calls because they cannot dynamically change the scope.\nIndirect `eval()` calls also typically have less impact on performance\ncompared to direct calls, as they do not invoke JavaScript's scope chain.",
|
|
14133
|
-
"default":
|
|
14254
|
+
"default": false,
|
|
14134
14255
|
"type": "boolean",
|
|
14135
14256
|
"markdownDescription": "This `allowIndirect` option allows indirect `eval()` calls.\n\nIndirect calls to `eval`(e.g., `window['eval']`) are less dangerous\nthan direct calls because they cannot dynamically change the scope.\nIndirect `eval()` calls also typically have less impact on performance\ncompared to direct calls, as they do not invoke JavaScript's scope chain."
|
|
14136
14257
|
}
|
|
@@ -14561,7 +14682,7 @@
|
|
|
14561
14682
|
"properties": {
|
|
14562
14683
|
"skipComments": {
|
|
14563
14684
|
"description": "Whether to skip irregular whitespace in comments.",
|
|
14564
|
-
"default":
|
|
14685
|
+
"default": false,
|
|
14565
14686
|
"type": "boolean",
|
|
14566
14687
|
"markdownDescription": "Whether to skip irregular whitespace in comments."
|
|
14567
14688
|
},
|
|
@@ -14614,7 +14735,7 @@
|
|
|
14614
14735
|
"type": "object",
|
|
14615
14736
|
"properties": {
|
|
14616
14737
|
"allowedSnapshots": {
|
|
14617
|
-
"description": "A map of snapshot file paths to arrays of snapshot names that are allowed to exceed the size limit.\
|
|
14738
|
+
"description": "A map of snapshot file paths to arrays of snapshot names that are allowed to exceed the size limit.\nEach snapshot name is interpreted as a Rust regular expression. If it is not a valid regular\nexpression, it is matched as an exact literal string instead.",
|
|
14618
14739
|
"default": {},
|
|
14619
14740
|
"type": "object",
|
|
14620
14741
|
"additionalProperties": {
|
|
@@ -14623,11 +14744,11 @@
|
|
|
14623
14744
|
"type": "string"
|
|
14624
14745
|
}
|
|
14625
14746
|
},
|
|
14626
|
-
"markdownDescription": "A map of snapshot file paths to arrays of snapshot names that are allowed to exceed the size limit.\
|
|
14747
|
+
"markdownDescription": "A map of snapshot file paths to arrays of snapshot names that are allowed to exceed the size limit.\nEach snapshot name is interpreted as a Rust regular expression. If it is not a valid regular\nexpression, it is matched as an exact literal string instead."
|
|
14627
14748
|
},
|
|
14628
14749
|
"inlineMaxSize": {
|
|
14629
14750
|
"description": "Maximum number of lines allowed for inline snapshots.",
|
|
14630
|
-
"default":
|
|
14751
|
+
"default": null,
|
|
14631
14752
|
"type": "integer",
|
|
14632
14753
|
"format": "uint32",
|
|
14633
14754
|
"minimum": 0.0,
|
|
@@ -16041,13 +16162,13 @@
|
|
|
16041
16162
|
"markdownDescription": "Controls how unused arguments are checked."
|
|
16042
16163
|
},
|
|
16043
16164
|
"argsIgnorePattern": {
|
|
16044
|
-
"description": "Specifies exceptions to this rule for unused arguments. Arguments whose\nnames match this pattern will be ignored.\n\nBy default,
|
|
16165
|
+
"description": "Specifies exceptions to this rule for unused arguments. Arguments whose\nnames match this pattern will be ignored.\n\nBy default, names starting with `_` are ignored, except for the bare `_`\nparameter. If options are configured with an object, this will default\nto [`None`]. Note that this behavior deviates from both ESLint and\nTypeScript-ESLint, which never provide a default pattern.\n\n#### Example\n\nExamples of **correct** code for this option when the pattern is `^_`:\n\n```javascript\nfunction foo(_a, b) {\nconsole.log(b);\n}\nfoo(1, 2);\n```",
|
|
16045
16166
|
"allOf": [
|
|
16046
16167
|
{
|
|
16047
16168
|
"$ref": "#/definitions/IgnorePattern_for_String"
|
|
16048
16169
|
}
|
|
16049
16170
|
],
|
|
16050
|
-
"markdownDescription": "Specifies exceptions to this rule for unused arguments. Arguments whose\nnames match this pattern will be ignored.\n\nBy default,
|
|
16171
|
+
"markdownDescription": "Specifies exceptions to this rule for unused arguments. Arguments whose\nnames match this pattern will be ignored.\n\nBy default, names starting with `_` are ignored, except for the bare `_`\nparameter. If options are configured with an object, this will default\nto [`None`]. Note that this behavior deviates from both ESLint and\nTypeScript-ESLint, which never provide a default pattern.\n\n#### Example\n\nExamples of **correct** code for this option when the pattern is `^_`:\n\n```javascript\nfunction foo(_a, b) {\nconsole.log(b);\n}\nfoo(1, 2);\n```"
|
|
16051
16172
|
},
|
|
16052
16173
|
"caughtErrors": {
|
|
16053
16174
|
"description": "Used for `catch` block validation.",
|
|
@@ -16584,6 +16705,153 @@
|
|
|
16584
16705
|
}
|
|
16585
16706
|
]
|
|
16586
16707
|
},
|
|
16708
|
+
"OneVar": {
|
|
16709
|
+
"description": "Enforces consistent grouping of variable declarations.",
|
|
16710
|
+
"allOf": [
|
|
16711
|
+
{
|
|
16712
|
+
"$ref": "#/definitions/OneVarConfig"
|
|
16713
|
+
}
|
|
16714
|
+
],
|
|
16715
|
+
"markdownDescription": "Enforces consistent grouping of variable declarations."
|
|
16716
|
+
},
|
|
16717
|
+
"OneVarConfig": {
|
|
16718
|
+
"description": "Configuration accepted by the `one-var` rule.",
|
|
16719
|
+
"anyOf": [
|
|
16720
|
+
{
|
|
16721
|
+
"description": "Applies one grouping mode to every declaration kind and initialization state.",
|
|
16722
|
+
"allOf": [
|
|
16723
|
+
{
|
|
16724
|
+
"$ref": "#/definitions/OneVarMode"
|
|
16725
|
+
}
|
|
16726
|
+
],
|
|
16727
|
+
"markdownDescription": "Applies one grouping mode to every declaration kind and initialization state."
|
|
16728
|
+
},
|
|
16729
|
+
{
|
|
16730
|
+
"description": "Configures grouping by declaration kind or initialization state.",
|
|
16731
|
+
"allOf": [
|
|
16732
|
+
{
|
|
16733
|
+
"$ref": "#/definitions/OneVarOptions"
|
|
16734
|
+
}
|
|
16735
|
+
],
|
|
16736
|
+
"markdownDescription": "Configures grouping by declaration kind or initialization state."
|
|
16737
|
+
}
|
|
16738
|
+
],
|
|
16739
|
+
"markdownDescription": "Configuration accepted by the `one-var` rule."
|
|
16740
|
+
},
|
|
16741
|
+
"OneVarMode": {
|
|
16742
|
+
"description": "Controls how variable declarators are grouped into declarations.",
|
|
16743
|
+
"oneOf": [
|
|
16744
|
+
{
|
|
16745
|
+
"description": "Requires one declaration per variable kind in each applicable scope.",
|
|
16746
|
+
"type": "string",
|
|
16747
|
+
"enum": [
|
|
16748
|
+
"always"
|
|
16749
|
+
],
|
|
16750
|
+
"markdownDescription": "Requires one declaration per variable kind in each applicable scope."
|
|
16751
|
+
},
|
|
16752
|
+
{
|
|
16753
|
+
"description": "Requires each declarator to have its own declaration statement.",
|
|
16754
|
+
"type": "string",
|
|
16755
|
+
"enum": [
|
|
16756
|
+
"never"
|
|
16757
|
+
],
|
|
16758
|
+
"markdownDescription": "Requires each declarator to have its own declaration statement."
|
|
16759
|
+
},
|
|
16760
|
+
{
|
|
16761
|
+
"description": "Requires adjacent declarations of the same kind to be combined.",
|
|
16762
|
+
"type": "string",
|
|
16763
|
+
"enum": [
|
|
16764
|
+
"consecutive"
|
|
16765
|
+
],
|
|
16766
|
+
"markdownDescription": "Requires adjacent declarations of the same kind to be combined."
|
|
16767
|
+
}
|
|
16768
|
+
],
|
|
16769
|
+
"markdownDescription": "Controls how variable declarators are grouped into declarations."
|
|
16770
|
+
},
|
|
16771
|
+
"OneVarOptions": {
|
|
16772
|
+
"description": "Options for configuring declaration grouping by kind or initialization state.\n\n`initialized` and `uninitialized` take precedence over the per-kind option for the\ncorresponding declarators.",
|
|
16773
|
+
"type": "object",
|
|
16774
|
+
"properties": {
|
|
16775
|
+
"awaitUsing": {
|
|
16776
|
+
"description": "Controls grouping for `await using` declarations.",
|
|
16777
|
+
"default": null,
|
|
16778
|
+
"allOf": [
|
|
16779
|
+
{
|
|
16780
|
+
"$ref": "#/definitions/OneVarMode"
|
|
16781
|
+
}
|
|
16782
|
+
],
|
|
16783
|
+
"markdownDescription": "Controls grouping for `await using` declarations."
|
|
16784
|
+
},
|
|
16785
|
+
"const": {
|
|
16786
|
+
"description": "Controls grouping for `const` declarations.",
|
|
16787
|
+
"default": null,
|
|
16788
|
+
"allOf": [
|
|
16789
|
+
{
|
|
16790
|
+
"$ref": "#/definitions/OneVarMode"
|
|
16791
|
+
}
|
|
16792
|
+
],
|
|
16793
|
+
"markdownDescription": "Controls grouping for `const` declarations."
|
|
16794
|
+
},
|
|
16795
|
+
"initialized": {
|
|
16796
|
+
"description": "Controls grouping for initialized declarators, overriding per-kind options.",
|
|
16797
|
+
"default": null,
|
|
16798
|
+
"allOf": [
|
|
16799
|
+
{
|
|
16800
|
+
"$ref": "#/definitions/OneVarMode"
|
|
16801
|
+
}
|
|
16802
|
+
],
|
|
16803
|
+
"markdownDescription": "Controls grouping for initialized declarators, overriding per-kind options."
|
|
16804
|
+
},
|
|
16805
|
+
"let": {
|
|
16806
|
+
"description": "Controls grouping for `let` declarations.",
|
|
16807
|
+
"default": null,
|
|
16808
|
+
"allOf": [
|
|
16809
|
+
{
|
|
16810
|
+
"$ref": "#/definitions/OneVarMode"
|
|
16811
|
+
}
|
|
16812
|
+
],
|
|
16813
|
+
"markdownDescription": "Controls grouping for `let` declarations."
|
|
16814
|
+
},
|
|
16815
|
+
"separateRequires": {
|
|
16816
|
+
"description": "Keeps direct `require(...)` initializers separate from other initialized declarations.",
|
|
16817
|
+
"default": false,
|
|
16818
|
+
"type": "boolean",
|
|
16819
|
+
"markdownDescription": "Keeps direct `require(...)` initializers separate from other initialized declarations."
|
|
16820
|
+
},
|
|
16821
|
+
"uninitialized": {
|
|
16822
|
+
"description": "Controls grouping for uninitialized declarators, overriding per-kind options.",
|
|
16823
|
+
"default": null,
|
|
16824
|
+
"allOf": [
|
|
16825
|
+
{
|
|
16826
|
+
"$ref": "#/definitions/OneVarMode"
|
|
16827
|
+
}
|
|
16828
|
+
],
|
|
16829
|
+
"markdownDescription": "Controls grouping for uninitialized declarators, overriding per-kind options."
|
|
16830
|
+
},
|
|
16831
|
+
"using": {
|
|
16832
|
+
"description": "Controls grouping for `using` declarations.",
|
|
16833
|
+
"default": null,
|
|
16834
|
+
"allOf": [
|
|
16835
|
+
{
|
|
16836
|
+
"$ref": "#/definitions/OneVarMode"
|
|
16837
|
+
}
|
|
16838
|
+
],
|
|
16839
|
+
"markdownDescription": "Controls grouping for `using` declarations."
|
|
16840
|
+
},
|
|
16841
|
+
"var": {
|
|
16842
|
+
"description": "Controls grouping for `var` declarations.",
|
|
16843
|
+
"default": null,
|
|
16844
|
+
"allOf": [
|
|
16845
|
+
{
|
|
16846
|
+
"$ref": "#/definitions/OneVarMode"
|
|
16847
|
+
}
|
|
16848
|
+
],
|
|
16849
|
+
"markdownDescription": "Controls grouping for `var` declarations."
|
|
16850
|
+
}
|
|
16851
|
+
},
|
|
16852
|
+
"additionalProperties": false,
|
|
16853
|
+
"markdownDescription": "Options for configuring declaration grouping by kind or initialization state.\n\n`initialized` and `uninitialized` take precedence over the per-kind option for the\ncorresponding declarators."
|
|
16854
|
+
},
|
|
16587
16855
|
"OnlyExportComponentsConfig": {
|
|
16588
16856
|
"type": "object",
|
|
16589
16857
|
"properties": {
|
|
@@ -17990,18 +18258,6 @@
|
|
|
17990
18258
|
}
|
|
17991
18259
|
]
|
|
17992
18260
|
},
|
|
17993
|
-
"ReactCompilerConfig": {
|
|
17994
|
-
"type": "object",
|
|
17995
|
-
"properties": {
|
|
17996
|
-
"reportAllBailouts": {
|
|
17997
|
-
"description": "Also report compiler bail-outs — places where React Compiler skipped a\ncomponent or hook (for example because of unsupported syntax) without\nfinding a rule violation. These do not indicate incorrect code, only\ncode that the compiler declined to optimize.",
|
|
17998
|
-
"default": false,
|
|
17999
|
-
"type": "boolean",
|
|
18000
|
-
"markdownDescription": "Also report compiler bail-outs — places where React Compiler skipped a\ncomponent or hook (for example because of unsupported syntax) without\nfinding a rule violation. These do not indicate incorrect code, only\ncode that the compiler declined to optimize."
|
|
18001
|
-
}
|
|
18002
|
-
},
|
|
18003
|
-
"additionalProperties": false
|
|
18004
|
-
},
|
|
18005
18261
|
"ReactPerfConfig": {
|
|
18006
18262
|
"type": "object",
|
|
18007
18263
|
"properties": {
|