@depup/oxlint 1.76.0-depup.0 → 1.78.0-depup.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -13,8 +13,8 @@ npm install @depup/oxlint
13
13
 
14
14
  | Field | Value |
15
15
  |-------|-------|
16
- | Original | [oxlint](https://www.npmjs.com/package/oxlint) @ 1.76.0 |
17
- | Processed | 2026-07-27 |
16
+ | Original | [oxlint](https://www.npmjs.com/package/oxlint) @ 1.78.0 |
17
+ | Processed | 2026-08-10 |
18
18
  | Smoke test | passed |
19
19
  | Deps updated | 0 |
20
20
 
package/changes.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "bumped": {},
3
- "timestamp": "2026-07-27T16:45:59.073Z",
3
+ "timestamp": "2026-08-10T16:19:05.410Z",
4
4
  "totalUpdated": 0
5
5
  }
@@ -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
- "type": "object",
2095
- "properties": {
2096
- "descriptionFormat": {
2097
- "type": "string"
2098
- }
2099
- },
2100
- "additionalProperties": false
2118
+ "$ref": "#/definitions/DescriptionFormatConfig"
2101
2119
  }
2102
2120
  ]
2103
2121
  },
@@ -3563,6 +3581,26 @@
3563
3581
  "jsdoc/implements-on-classes": {
3564
3582
  "$ref": "#/definitions/RuleNoConfig"
3565
3583
  },
3584
+ "jsdoc/no-blank-blocks": {
3585
+ "anyOf": [
3586
+ {
3587
+ "$ref": "#/definitions/RuleNoConfig"
3588
+ },
3589
+ {
3590
+ "type": "array",
3591
+ "items": [
3592
+ {
3593
+ "$ref": "#/definitions/AllowWarnDeny"
3594
+ },
3595
+ {
3596
+ "$ref": "#/definitions/NoBlankBlocks"
3597
+ }
3598
+ ],
3599
+ "maxItems": 2,
3600
+ "minItems": 2
3601
+ }
3602
+ ]
3603
+ },
3566
3604
  "jsdoc/no-defaults": {
3567
3605
  "anyOf": [
3568
3606
  {
@@ -3757,7 +3795,24 @@
3757
3795
  ]
3758
3796
  },
3759
3797
  "jsx-a11y/anchor-has-content": {
3760
- "$ref": "#/definitions/RuleNoConfig"
3798
+ "anyOf": [
3799
+ {
3800
+ "$ref": "#/definitions/RuleNoConfig"
3801
+ },
3802
+ {
3803
+ "type": "array",
3804
+ "items": [
3805
+ {
3806
+ "$ref": "#/definitions/AllowWarnDeny"
3807
+ },
3808
+ {
3809
+ "$ref": "#/definitions/AnchorHasContentConfig"
3810
+ }
3811
+ ],
3812
+ "maxItems": 2,
3813
+ "minItems": 2
3814
+ }
3815
+ ]
3761
3816
  },
3762
3817
  "jsx-a11y/anchor-is-valid": {
3763
3818
  "anyOf": [
@@ -5661,7 +5716,7 @@
5661
5716
  "$ref": "#/definitions/AllowWarnDeny"
5662
5717
  },
5663
5718
  {
5664
- "$ref": "#/definitions/NoWarningCommentsConfigJson"
5719
+ "$ref": "#/definitions/NoWarningCommentsConfig"
5665
5720
  }
5666
5721
  ],
5667
5722
  "maxItems": 2,
@@ -5850,6 +5905,26 @@
5850
5905
  }
5851
5906
  ]
5852
5907
  },
5908
+ "one-var": {
5909
+ "anyOf": [
5910
+ {
5911
+ "$ref": "#/definitions/RuleNoConfig"
5912
+ },
5913
+ {
5914
+ "type": "array",
5915
+ "items": [
5916
+ {
5917
+ "$ref": "#/definitions/AllowWarnDeny"
5918
+ },
5919
+ {
5920
+ "$ref": "#/definitions/OneVar"
5921
+ }
5922
+ ],
5923
+ "maxItems": 2,
5924
+ "minItems": 2
5925
+ }
5926
+ ]
5927
+ },
5853
5928
  "operator-assignment": {
5854
5929
  "anyOf": [
5855
5930
  {
@@ -12678,10 +12753,23 @@
12678
12753
  }
12679
12754
  },
12680
12755
  "Location": {
12681
- "type": "string",
12682
- "enum": [
12683
- "start",
12684
- "anywhere"
12756
+ "oneOf": [
12757
+ {
12758
+ "description": "Terms must appear at the start of the comment, after any decoration.",
12759
+ "type": "string",
12760
+ "enum": [
12761
+ "start"
12762
+ ],
12763
+ "markdownDescription": "Terms must appear at the start of the comment, after any decoration."
12764
+ },
12765
+ {
12766
+ "description": "Terms can appear anywhere in the comment.",
12767
+ "type": "string",
12768
+ "enum": [
12769
+ "anywhere"
12770
+ ],
12771
+ "markdownDescription": "Terms can appear anywhere in the comment."
12772
+ }
12685
12773
  ]
12686
12774
  },
12687
12775
  "LogicalAssignmentOperators": {
@@ -13702,6 +13790,18 @@
13702
13790
  },
13703
13791
  "additionalProperties": false
13704
13792
  },
13793
+ "NoBlankBlocks": {
13794
+ "type": "object",
13795
+ "properties": {
13796
+ "enableFixer": {
13797
+ "description": "Whether to automatically remove blank JSDoc blocks.",
13798
+ "default": false,
13799
+ "type": "boolean",
13800
+ "markdownDescription": "Whether to automatically remove blank JSDoc blocks."
13801
+ }
13802
+ },
13803
+ "additionalProperties": false
13804
+ },
13705
13805
  "NoCallbackInPromiseConfig": {
13706
13806
  "type": "object",
13707
13807
  "properties": {
@@ -15763,20 +15863,20 @@
15763
15863
  "type": "object",
15764
15864
  "properties": {
15765
15865
  "allowConstantLoopConditions": {
15766
- "description": "Whether to allow constant loop conditions.\n`true` is treated as `\"always\"`, `false` as `\"never\"`.",
15866
+ "description": "Controls which constant conditions are allowed in `while`, `do...while`, and `for` loops.\n\n- `\"never\"` (or `false`) reports all constant loop conditions.\n- `\"always\"` (or `true`) allows conditions whose type is the literal type `true`, such as\n`while (true)` or `while (variable)` when `variable` has type `true`.\n- `\"only-allowed-literals\"` allows only the literal expressions `true`, `false`, `0`, and\n`1`. Variables whose types are those literal types are still reported.",
15767
15867
  "default": "never",
15768
15868
  "allOf": [
15769
15869
  {
15770
15870
  "$ref": "#/definitions/AllowConstantLoopConditions"
15771
15871
  }
15772
15872
  ],
15773
- "markdownDescription": "Whether to allow constant loop conditions.\n`true` is treated as `\"always\"`, `false` as `\"never\"`."
15873
+ "markdownDescription": "Controls which constant conditions are allowed in `while`, `do...while`, and `for` loops.\n\n- `\"never\"` (or `false`) reports all constant loop conditions.\n- `\"always\"` (or `true`) allows conditions whose type is the literal type `true`, such as\n`while (true)` or `while (variable)` when `variable` has type `true`.\n- `\"only-allowed-literals\"` allows only the literal expressions `true`, `false`, `0`, and\n`1`. Variables whose types are those literal types are still reported."
15774
15874
  },
15775
15875
  "checkTypePredicates": {
15776
- "description": "Whether to check type predicate functions.",
15876
+ "description": "Whether to check arguments passed to type predicate and assertion functions.\n\nWhen enabled, the rule reports a call if the argument already satisfies the predicate or\nif an assertion function receives an argument that is always truthy or always falsy.\n\nFor example, `narrow(value)` is unnecessary because `value` already has type `true`:\n\n```ts\ndeclare const narrow: (value: unknown) => value is true;\nconst value = true;\nif (narrow(value)) {\n// ...\n}\n```",
15777
15877
  "default": false,
15778
15878
  "type": "boolean",
15779
- "markdownDescription": "Whether to check type predicate functions."
15879
+ "markdownDescription": "Whether to check arguments passed to type predicate and assertion functions.\n\nWhen enabled, the rule reports a call if the argument already satisfies the predicate or\nif an assertion function receives an argument that is always truthy or always falsy.\n\nFor example, `narrow(value)` is unnecessary because `value` already has type `true`:\n\n```ts\ndeclare const narrow: (value: unknown) => value is true;\nconst value = true;\nif (narrow(value)) {\n// ...\n}\n```"
15780
15880
  }
15781
15881
  },
15782
15882
  "additionalProperties": false
@@ -16281,23 +16381,41 @@
16281
16381
  },
16282
16382
  "additionalProperties": false
16283
16383
  },
16284
- "NoWarningCommentsConfigJson": {
16384
+ "NoWarningCommentsConfig": {
16285
16385
  "type": "object",
16286
16386
  "properties": {
16287
16387
  "decoration": {
16388
+ "description": "An array of characters to ignore at the start of comments when `location` is `\"start\"`.\n\nUseful for ignoring common comment decorations like `*` in JSDoc-style comments.",
16389
+ "default": [],
16288
16390
  "type": "array",
16289
16391
  "items": {
16290
16392
  "type": "string"
16291
- }
16393
+ },
16394
+ "uniqueItems": true,
16395
+ "markdownDescription": "An array of characters to ignore at the start of comments when `location` is `\"start\"`.\n\nUseful for ignoring common comment decorations like `*` in JSDoc-style comments."
16292
16396
  },
16293
16397
  "location": {
16294
- "$ref": "#/definitions/Location"
16398
+ "description": "Where to check for the terms.",
16399
+ "default": "start",
16400
+ "allOf": [
16401
+ {
16402
+ "$ref": "#/definitions/Location"
16403
+ }
16404
+ ],
16405
+ "markdownDescription": "Where to check for the terms."
16295
16406
  },
16296
16407
  "terms": {
16408
+ "description": "An array of terms to match. The matching is case-insensitive.",
16409
+ "default": [
16410
+ "todo",
16411
+ "fixme",
16412
+ "xxx"
16413
+ ],
16297
16414
  "type": "array",
16298
16415
  "items": {
16299
16416
  "type": "string"
16300
- }
16417
+ },
16418
+ "markdownDescription": "An array of terms to match. The matching is case-insensitive."
16301
16419
  }
16302
16420
  },
16303
16421
  "additionalProperties": false
@@ -16553,6 +16671,153 @@
16553
16671
  }
16554
16672
  ]
16555
16673
  },
16674
+ "OneVar": {
16675
+ "description": "Enforces consistent grouping of variable declarations.",
16676
+ "allOf": [
16677
+ {
16678
+ "$ref": "#/definitions/OneVarConfig"
16679
+ }
16680
+ ],
16681
+ "markdownDescription": "Enforces consistent grouping of variable declarations."
16682
+ },
16683
+ "OneVarConfig": {
16684
+ "description": "Configuration accepted by the `one-var` rule.",
16685
+ "anyOf": [
16686
+ {
16687
+ "description": "Applies one grouping mode to every declaration kind and initialization state.",
16688
+ "allOf": [
16689
+ {
16690
+ "$ref": "#/definitions/OneVarMode"
16691
+ }
16692
+ ],
16693
+ "markdownDescription": "Applies one grouping mode to every declaration kind and initialization state."
16694
+ },
16695
+ {
16696
+ "description": "Configures grouping by declaration kind or initialization state.",
16697
+ "allOf": [
16698
+ {
16699
+ "$ref": "#/definitions/OneVarOptions"
16700
+ }
16701
+ ],
16702
+ "markdownDescription": "Configures grouping by declaration kind or initialization state."
16703
+ }
16704
+ ],
16705
+ "markdownDescription": "Configuration accepted by the `one-var` rule."
16706
+ },
16707
+ "OneVarMode": {
16708
+ "description": "Controls how variable declarators are grouped into declarations.",
16709
+ "oneOf": [
16710
+ {
16711
+ "description": "Requires one declaration per variable kind in each applicable scope.",
16712
+ "type": "string",
16713
+ "enum": [
16714
+ "always"
16715
+ ],
16716
+ "markdownDescription": "Requires one declaration per variable kind in each applicable scope."
16717
+ },
16718
+ {
16719
+ "description": "Requires each declarator to have its own declaration statement.",
16720
+ "type": "string",
16721
+ "enum": [
16722
+ "never"
16723
+ ],
16724
+ "markdownDescription": "Requires each declarator to have its own declaration statement."
16725
+ },
16726
+ {
16727
+ "description": "Requires adjacent declarations of the same kind to be combined.",
16728
+ "type": "string",
16729
+ "enum": [
16730
+ "consecutive"
16731
+ ],
16732
+ "markdownDescription": "Requires adjacent declarations of the same kind to be combined."
16733
+ }
16734
+ ],
16735
+ "markdownDescription": "Controls how variable declarators are grouped into declarations."
16736
+ },
16737
+ "OneVarOptions": {
16738
+ "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.",
16739
+ "type": "object",
16740
+ "properties": {
16741
+ "awaitUsing": {
16742
+ "description": "Controls grouping for `await using` declarations.",
16743
+ "default": null,
16744
+ "allOf": [
16745
+ {
16746
+ "$ref": "#/definitions/OneVarMode"
16747
+ }
16748
+ ],
16749
+ "markdownDescription": "Controls grouping for `await using` declarations."
16750
+ },
16751
+ "const": {
16752
+ "description": "Controls grouping for `const` declarations.",
16753
+ "default": null,
16754
+ "allOf": [
16755
+ {
16756
+ "$ref": "#/definitions/OneVarMode"
16757
+ }
16758
+ ],
16759
+ "markdownDescription": "Controls grouping for `const` declarations."
16760
+ },
16761
+ "initialized": {
16762
+ "description": "Controls grouping for initialized declarators, overriding per-kind options.",
16763
+ "default": null,
16764
+ "allOf": [
16765
+ {
16766
+ "$ref": "#/definitions/OneVarMode"
16767
+ }
16768
+ ],
16769
+ "markdownDescription": "Controls grouping for initialized declarators, overriding per-kind options."
16770
+ },
16771
+ "let": {
16772
+ "description": "Controls grouping for `let` declarations.",
16773
+ "default": null,
16774
+ "allOf": [
16775
+ {
16776
+ "$ref": "#/definitions/OneVarMode"
16777
+ }
16778
+ ],
16779
+ "markdownDescription": "Controls grouping for `let` declarations."
16780
+ },
16781
+ "separateRequires": {
16782
+ "description": "Keeps direct `require(...)` initializers separate from other initialized declarations.",
16783
+ "default": false,
16784
+ "type": "boolean",
16785
+ "markdownDescription": "Keeps direct `require(...)` initializers separate from other initialized declarations."
16786
+ },
16787
+ "uninitialized": {
16788
+ "description": "Controls grouping for uninitialized declarators, overriding per-kind options.",
16789
+ "default": null,
16790
+ "allOf": [
16791
+ {
16792
+ "$ref": "#/definitions/OneVarMode"
16793
+ }
16794
+ ],
16795
+ "markdownDescription": "Controls grouping for uninitialized declarators, overriding per-kind options."
16796
+ },
16797
+ "using": {
16798
+ "description": "Controls grouping for `using` declarations.",
16799
+ "default": null,
16800
+ "allOf": [
16801
+ {
16802
+ "$ref": "#/definitions/OneVarMode"
16803
+ }
16804
+ ],
16805
+ "markdownDescription": "Controls grouping for `using` declarations."
16806
+ },
16807
+ "var": {
16808
+ "description": "Controls grouping for `var` declarations.",
16809
+ "default": null,
16810
+ "allOf": [
16811
+ {
16812
+ "$ref": "#/definitions/OneVarMode"
16813
+ }
16814
+ ],
16815
+ "markdownDescription": "Controls grouping for `var` declarations."
16816
+ }
16817
+ },
16818
+ "additionalProperties": false,
16819
+ "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."
16820
+ },
16556
16821
  "OnlyExportComponentsConfig": {
16557
16822
  "type": "object",
16558
16823
  "properties": {