@biomejs/biome 2.4.14 → 2.4.16

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.
@@ -17,7 +17,7 @@
17
17
  "anyOf": [{ "$ref": "#/$defs/CssConfiguration" }, { "type": "null" }]
18
18
  },
19
19
  "extends": {
20
- "description": "A list of paths to other JSON files, used to extends the current configuration.",
20
+ "description": "A list of paths to other JSON files, used to extend the current configuration.",
21
21
  "anyOf": [{ "$ref": "#/$defs/Extends" }, { "type": "null" }]
22
22
  },
23
23
  "files": {
@@ -1547,6 +1547,14 @@
1547
1547
  }
1548
1548
  ]
1549
1549
  },
1550
+ "DestructuringConfig": {
1551
+ "type": "object",
1552
+ "properties": {
1553
+ "array": { "type": ["boolean", "null"] },
1554
+ "object": { "type": ["boolean", "null"] }
1555
+ },
1556
+ "additionalProperties": false
1557
+ },
1550
1558
  "Expand": {
1551
1559
  "oneOf": [
1552
1560
  {
@@ -2087,6 +2095,26 @@
2087
2095
  },
2088
2096
  "additionalProperties": false
2089
2097
  },
2098
+ "IgnoreClassesWithImplements": {
2099
+ "description": "Controls how `useThisInClassMethods` treats classes that implement interfaces.",
2100
+ "oneOf": [
2101
+ {
2102
+ "description": "Check members in classes that implement interfaces the same way as any other class.",
2103
+ "type": "string",
2104
+ "const": "none"
2105
+ },
2106
+ {
2107
+ "description": "Ignore every eligible instance member in classes that implement at least one interface.",
2108
+ "type": "string",
2109
+ "const": "all"
2110
+ },
2111
+ {
2112
+ "description": "Ignore only public eligible members in classes that implement at least one interface.\n\nProtected and private members in those classes are still checked.",
2113
+ "type": "string",
2114
+ "const": "public-fields"
2115
+ }
2116
+ ]
2117
+ },
2090
2118
  "ImportGroup": {
2091
2119
  "anyOf": [
2092
2120
  { "type": "null" },
@@ -2784,6 +2812,22 @@
2784
2812
  ]
2785
2813
  },
2786
2814
  "NoBarrelFileOptions": { "type": "object", "additionalProperties": false },
2815
+ "NoBaseToStringConfiguration": {
2816
+ "oneOf": [
2817
+ { "$ref": "#/$defs/RulePlainConfiguration" },
2818
+ { "$ref": "#/$defs/RuleWithNoBaseToStringOptions" }
2819
+ ]
2820
+ },
2821
+ "NoBaseToStringOptions": {
2822
+ "type": "object",
2823
+ "properties": {
2824
+ "ignoredTypeNames": {
2825
+ "type": ["array", "null"],
2826
+ "items": { "type": "string" }
2827
+ }
2828
+ },
2829
+ "additionalProperties": false
2830
+ },
2787
2831
  "NoBeforeInteractiveScriptOutsideDocumentConfiguration": {
2788
2832
  "oneOf": [
2789
2833
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -5989,6 +6033,16 @@
5989
6033
  "type": "object",
5990
6034
  "additionalProperties": false
5991
6035
  },
6036
+ "NoVueImportCompilerMacrosConfiguration": {
6037
+ "oneOf": [
6038
+ { "$ref": "#/$defs/RulePlainConfiguration" },
6039
+ { "$ref": "#/$defs/RuleWithNoVueImportCompilerMacrosOptions" }
6040
+ ]
6041
+ },
6042
+ "NoVueImportCompilerMacrosOptions": {
6043
+ "type": "object",
6044
+ "additionalProperties": false
6045
+ },
5992
6046
  "NoVueOptionsApiConfiguration": {
5993
6047
  "oneOf": [
5994
6048
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -6049,6 +6103,16 @@
6049
6103
  "type": "object",
6050
6104
  "additionalProperties": false
6051
6105
  },
6106
+ "NoVueVOnNumberValuesConfiguration": {
6107
+ "oneOf": [
6108
+ { "$ref": "#/$defs/RulePlainConfiguration" },
6109
+ { "$ref": "#/$defs/RuleWithNoVueVOnNumberValuesOptions" }
6110
+ ]
6111
+ },
6112
+ "NoVueVOnNumberValuesOptions": {
6113
+ "type": "object",
6114
+ "additionalProperties": false
6115
+ },
6052
6116
  "NoWithConfiguration": {
6053
6117
  "oneOf": [
6054
6118
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -6081,6 +6145,13 @@
6081
6145
  { "type": "null" }
6082
6146
  ]
6083
6147
  },
6148
+ "noBaseToString": {
6149
+ "description": "Require stringification to avoid values that only use the default object representation.\nSee https://biomejs.dev/linter/rules/no-base-to-string",
6150
+ "anyOf": [
6151
+ { "$ref": "#/$defs/NoBaseToStringConfiguration" },
6152
+ { "type": "null" }
6153
+ ]
6154
+ },
6084
6155
  "noBeforeInteractiveScriptOutsideDocument": {
6085
6156
  "description": "Prevent usage of next/script's beforeInteractive strategy outside of pages/_document.js in a Next.js project.\nSee https://biomejs.dev/linter/rules/no-before-interactive-script-outside-document",
6086
6157
  "anyOf": [
@@ -6608,6 +6679,13 @@
6608
6679
  { "type": "null" }
6609
6680
  ]
6610
6681
  },
6682
+ "noVueImportCompilerMacros": {
6683
+ "description": "Disallow importing Vue compiler macros.\nSee https://biomejs.dev/linter/rules/no-vue-import-compiler-macros",
6684
+ "anyOf": [
6685
+ { "$ref": "#/$defs/NoVueImportCompilerMacrosConfiguration" },
6686
+ { "type": "null" }
6687
+ ]
6688
+ },
6611
6689
  "noVueOptionsApi": {
6612
6690
  "description": "Disallow the use of Vue Options API.\nSee https://biomejs.dev/linter/rules/no-vue-options-api",
6613
6691
  "anyOf": [
@@ -6629,6 +6707,13 @@
6629
6707
  { "type": "null" }
6630
6708
  ]
6631
6709
  },
6710
+ "noVueVOnNumberValues": {
6711
+ "description": "Disallow deprecated number modifiers on Vue v-on directives.\nSee https://biomejs.dev/linter/rules/no-vue-v-on-number-values",
6712
+ "anyOf": [
6713
+ { "$ref": "#/$defs/NoVueVOnNumberValuesConfiguration" },
6714
+ { "type": "null" }
6715
+ ]
6716
+ },
6632
6717
  "recommended": {
6633
6718
  "description": "Enables the recommended rules for this group",
6634
6719
  "type": ["boolean", "null"]
@@ -6915,6 +7000,13 @@
6915
7000
  { "type": "null" }
6916
7001
  ]
6917
7002
  },
7003
+ "useTestHooksInOrder": {
7004
+ "description": "Enforce that test lifecycle hooks are declared in the order they execute.\nSee https://biomejs.dev/linter/rules/use-test-hooks-in-order",
7005
+ "anyOf": [
7006
+ { "$ref": "#/$defs/UseTestHooksInOrderConfiguration" },
7007
+ { "type": "null" }
7008
+ ]
7009
+ },
6918
7010
  "useTestHooksOnTop": {
6919
7011
  "description": "Enforce that lifecycle hooks appear before any test cases in the same block.\nSee https://biomejs.dev/linter/rules/use-test-hooks-on-top",
6920
7012
  "anyOf": [
@@ -6922,6 +7014,13 @@
6922
7014
  { "type": "null" }
6923
7015
  ]
6924
7016
  },
7017
+ "useThisInClassMethods": {
7018
+ "description": "Enforce that class methods utilize this.\nSee https://biomejs.dev/linter/rules/use-this-in-class-methods",
7019
+ "anyOf": [
7020
+ { "$ref": "#/$defs/UseThisInClassMethodsConfiguration" },
7021
+ { "type": "null" }
7022
+ ]
7023
+ },
6925
7024
  "useUnicodeRegex": {
6926
7025
  "description": "Enforce the use of the u or v flag for regular expressions.\nSee https://biomejs.dev/linter/rules/use-unicode-regex",
6927
7026
  "anyOf": [
@@ -6980,6 +7079,13 @@
6980
7079
  { "type": "null" }
6981
7080
  ]
6982
7081
  },
7082
+ "useVueNextTickPromise": {
7083
+ "description": "Enforces Promise syntax when using Vue nextTick.\nSee https://biomejs.dev/linter/rules/use-vue-next-tick-promise",
7084
+ "anyOf": [
7085
+ { "$ref": "#/$defs/UseVueNextTickPromiseConfiguration" },
7086
+ { "type": "null" }
7087
+ ]
7088
+ },
6983
7089
  "useVueVForKey": {
6984
7090
  "description": "Enforce that elements using v-for also specify a unique key.\nSee https://biomejs.dev/linter/rules/use-vue-v-for-key",
6985
7091
  "anyOf": [
@@ -7022,6 +7128,13 @@
7022
7128
  { "type": "null" }
7023
7129
  ]
7024
7130
  },
7131
+ "useVueValidVFor": {
7132
+ "description": "Enforces valid v-for directives in Vue templates.\nSee https://biomejs.dev/linter/rules/use-vue-valid-v-for",
7133
+ "anyOf": [
7134
+ { "$ref": "#/$defs/UseVueValidVForConfiguration" },
7135
+ { "type": "null" }
7136
+ ]
7137
+ },
7025
7138
  "useVueValidVHtml": {
7026
7139
  "description": "Enforce valid v-html directives.\nSee https://biomejs.dev/linter/rules/use-vue-valid-v-html",
7027
7140
  "anyOf": [
@@ -7186,6 +7299,10 @@
7186
7299
  "description": "What's the max width of a line. Defaults to 80.",
7187
7300
  "anyOf": [{ "$ref": "#/$defs/LineWidth" }, { "type": "null" }]
7188
7301
  },
7302
+ "trailingCommas": {
7303
+ "description": "Print trailing commas wherever possible in multi-line comma-separated syntactic structures.",
7304
+ "anyOf": [{ "$ref": "#/$defs/JsTrailingCommas" }, { "type": "null" }]
7305
+ },
7189
7306
  "trailingNewline": {
7190
7307
  "description": "Whether to add a trailing newline at the end of the file.\n\nSetting this option to `false` is **highly discouraged** because it could cause many problems with other tools:\n- https://thoughtbot.com/blog/no-newline-at-end-of-file\n- https://callmeryan.medium.com/no-newline-at-end-of-file-navigating-gits-warning-for-android-developers-af14e73dd804\n- https://unix.stackexchange.com/questions/345548/how-to-cat-files-together-adding-missing-newlines-at-end-of-some-files\n\nDisable the option at your own risk.\n\nDefaults to true.",
7191
7308
  "anyOf": [{ "$ref": "#/$defs/TrailingNewline" }, { "type": "null" }]
@@ -7778,6 +7895,15 @@
7778
7895
  "additionalProperties": false,
7779
7896
  "required": ["level"]
7780
7897
  },
7898
+ "RuleWithNoBaseToStringOptions": {
7899
+ "type": "object",
7900
+ "properties": {
7901
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
7902
+ "options": { "$ref": "#/$defs/NoBaseToStringOptions" }
7903
+ },
7904
+ "additionalProperties": false,
7905
+ "required": ["level"]
7906
+ },
7781
7907
  "RuleWithNoBeforeInteractiveScriptOutsideDocumentOptions": {
7782
7908
  "type": "object",
7783
7909
  "properties": {
@@ -10525,6 +10651,15 @@
10525
10651
  "additionalProperties": false,
10526
10652
  "required": ["level"]
10527
10653
  },
10654
+ "RuleWithNoVueImportCompilerMacrosOptions": {
10655
+ "type": "object",
10656
+ "properties": {
10657
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
10658
+ "options": { "$ref": "#/$defs/NoVueImportCompilerMacrosOptions" }
10659
+ },
10660
+ "additionalProperties": false,
10661
+ "required": ["level"]
10662
+ },
10528
10663
  "RuleWithNoVueOptionsApiOptions": {
10529
10664
  "type": "object",
10530
10665
  "properties": {
@@ -10579,6 +10714,15 @@
10579
10714
  "additionalProperties": false,
10580
10715
  "required": ["level"]
10581
10716
  },
10717
+ "RuleWithNoVueVOnNumberValuesOptions": {
10718
+ "type": "object",
10719
+ "properties": {
10720
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
10721
+ "options": { "$ref": "#/$defs/NoVueVOnNumberValuesOptions" }
10722
+ },
10723
+ "additionalProperties": false,
10724
+ "required": ["level"]
10725
+ },
10582
10726
  "RuleWithNoWithOptions": {
10583
10727
  "type": "object",
10584
10728
  "properties": {
@@ -11938,6 +12082,15 @@
11938
12082
  "additionalProperties": false,
11939
12083
  "required": ["level"]
11940
12084
  },
12085
+ "RuleWithUseTestHooksInOrderOptions": {
12086
+ "type": "object",
12087
+ "properties": {
12088
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
12089
+ "options": { "$ref": "#/$defs/UseTestHooksInOrderOptions" }
12090
+ },
12091
+ "additionalProperties": false,
12092
+ "required": ["level"]
12093
+ },
11941
12094
  "RuleWithUseTestHooksOnTopOptions": {
11942
12095
  "type": "object",
11943
12096
  "properties": {
@@ -11947,6 +12100,15 @@
11947
12100
  "additionalProperties": false,
11948
12101
  "required": ["level"]
11949
12102
  },
12103
+ "RuleWithUseThisInClassMethodsOptions": {
12104
+ "type": "object",
12105
+ "properties": {
12106
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
12107
+ "options": { "$ref": "#/$defs/UseThisInClassMethodsOptions" }
12108
+ },
12109
+ "additionalProperties": false,
12110
+ "required": ["level"]
12111
+ },
11950
12112
  "RuleWithUseThrowNewErrorOptions": {
11951
12113
  "type": "object",
11952
12114
  "properties": {
@@ -12158,6 +12320,15 @@
12158
12320
  "additionalProperties": false,
12159
12321
  "required": ["level"]
12160
12322
  },
12323
+ "RuleWithUseVueNextTickPromiseOptions": {
12324
+ "type": "object",
12325
+ "properties": {
12326
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
12327
+ "options": { "$ref": "#/$defs/UseVueNextTickPromiseOptions" }
12328
+ },
12329
+ "additionalProperties": false,
12330
+ "required": ["level"]
12331
+ },
12161
12332
  "RuleWithUseVueVForKeyOptions": {
12162
12333
  "type": "object",
12163
12334
  "properties": {
@@ -12214,6 +12385,15 @@
12214
12385
  "additionalProperties": false,
12215
12386
  "required": ["level"]
12216
12387
  },
12388
+ "RuleWithUseVueValidVForOptions": {
12389
+ "type": "object",
12390
+ "properties": {
12391
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
12392
+ "options": { "$ref": "#/$defs/UseVueValidVForOptions" }
12393
+ },
12394
+ "additionalProperties": false,
12395
+ "required": ["level"]
12396
+ },
12217
12397
  "RuleWithUseVueValidVHtmlOptions": {
12218
12398
  "type": "object",
12219
12399
  "properties": {
@@ -12852,7 +13032,7 @@
12852
13032
  ]
12853
13033
  },
12854
13034
  "useConsistentObjectDefinitions": {
12855
- "description": "Require the consistent declaration of object literals. Defaults to explicit definitions.\nSee https://biomejs.dev/linter/rules/use-consistent-object-definitions",
13035
+ "description": "Require the consistent declaration of object literals.\nSee https://biomejs.dev/linter/rules/use-consistent-object-definitions",
12856
13036
  "anyOf": [
12857
13037
  { "$ref": "#/$defs/UseConsistentObjectDefinitionsConfiguration" },
12858
13038
  { "type": "null" }
@@ -14379,6 +14559,20 @@
14379
14559
  },
14380
14560
  "UseDestructuringOptions": {
14381
14561
  "type": "object",
14562
+ "properties": {
14563
+ "assignmentExpression": {
14564
+ "anyOf": [
14565
+ { "$ref": "#/$defs/DestructuringConfig" },
14566
+ { "type": "null" }
14567
+ ]
14568
+ },
14569
+ "variableDeclarator": {
14570
+ "anyOf": [
14571
+ { "$ref": "#/$defs/DestructuringConfig" },
14572
+ { "type": "null" }
14573
+ ]
14574
+ }
14575
+ },
14382
14576
  "additionalProperties": false
14383
14577
  },
14384
14578
  "UseDisposablesConfiguration": {
@@ -15565,6 +15759,16 @@
15565
15759
  ]
15566
15760
  },
15567
15761
  "UseTemplateOptions": { "type": "object", "additionalProperties": false },
15762
+ "UseTestHooksInOrderConfiguration": {
15763
+ "oneOf": [
15764
+ { "$ref": "#/$defs/RulePlainConfiguration" },
15765
+ { "$ref": "#/$defs/RuleWithUseTestHooksInOrderOptions" }
15766
+ ]
15767
+ },
15768
+ "UseTestHooksInOrderOptions": {
15769
+ "type": "object",
15770
+ "additionalProperties": false
15771
+ },
15568
15772
  "UseTestHooksOnTopConfiguration": {
15569
15773
  "oneOf": [
15570
15774
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -15575,6 +15779,35 @@
15575
15779
  "type": "object",
15576
15780
  "additionalProperties": false
15577
15781
  },
15782
+ "UseThisInClassMethodsConfiguration": {
15783
+ "oneOf": [
15784
+ { "$ref": "#/$defs/RulePlainConfiguration" },
15785
+ { "$ref": "#/$defs/RuleWithUseThisInClassMethodsOptions" }
15786
+ ]
15787
+ },
15788
+ "UseThisInClassMethodsOptions": {
15789
+ "description": "Options for the `useThisInClassMethods` rule.",
15790
+ "type": "object",
15791
+ "properties": {
15792
+ "ignoreClassesWithImplements": {
15793
+ "description": "Whether members of classes with an `implements` clause should be ignored.\n\nDefaults to `\"none\"`, which means implemented classes are checked like any other class.\nUse `\"all\"` to ignore every eligible member in such classes, or `\"public-fields\"`\nto ignore only public members in them.",
15794
+ "anyOf": [
15795
+ { "$ref": "#/$defs/IgnoreClassesWithImplements" },
15796
+ { "type": "null" }
15797
+ ]
15798
+ },
15799
+ "ignoreMethods": {
15800
+ "description": "Method names that should be ignored by the rule.\n\nDefaults to `[]`.",
15801
+ "type": ["array", "null"],
15802
+ "items": { "type": "string" }
15803
+ },
15804
+ "ignoreOverrideMethods": {
15805
+ "description": "Whether methods marked with `override` should be ignored.\n\nDefaults to `false`.",
15806
+ "type": ["boolean", "null"]
15807
+ }
15808
+ },
15809
+ "additionalProperties": false
15810
+ },
15578
15811
  "UseThrowNewErrorConfiguration": {
15579
15812
  "oneOf": [
15580
15813
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -15877,6 +16110,16 @@
15877
16110
  },
15878
16111
  "additionalProperties": false
15879
16112
  },
16113
+ "UseVueNextTickPromiseConfiguration": {
16114
+ "oneOf": [
16115
+ { "$ref": "#/$defs/RulePlainConfiguration" },
16116
+ { "$ref": "#/$defs/RuleWithUseVueNextTickPromiseOptions" }
16117
+ ]
16118
+ },
16119
+ "UseVueNextTickPromiseOptions": {
16120
+ "type": "object",
16121
+ "additionalProperties": false
16122
+ },
15880
16123
  "UseVueVForKeyConfiguration": {
15881
16124
  "oneOf": [
15882
16125
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -15934,6 +16177,16 @@
15934
16177
  "type": "object",
15935
16178
  "additionalProperties": false
15936
16179
  },
16180
+ "UseVueValidVForConfiguration": {
16181
+ "oneOf": [
16182
+ { "$ref": "#/$defs/RulePlainConfiguration" },
16183
+ { "$ref": "#/$defs/RuleWithUseVueValidVForOptions" }
16184
+ ]
16185
+ },
16186
+ "UseVueValidVForOptions": {
16187
+ "type": "object",
16188
+ "additionalProperties": false
16189
+ },
15937
16190
  "UseVueValidVHtmlConfiguration": {
15938
16191
  "oneOf": [
15939
16192
  { "$ref": "#/$defs/RulePlainConfiguration" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biomejs/biome",
3
- "version": "2.4.14",
3
+ "version": "2.4.16",
4
4
  "bin": {
5
5
  "biome": "bin/biome"
6
6
  },
@@ -46,13 +46,13 @@
46
46
  "provenance": true
47
47
  },
48
48
  "optionalDependencies": {
49
- "@biomejs/cli-win32-x64": "2.4.14",
50
- "@biomejs/cli-win32-arm64": "2.4.14",
51
- "@biomejs/cli-darwin-x64": "2.4.14",
52
- "@biomejs/cli-darwin-arm64": "2.4.14",
53
- "@biomejs/cli-linux-x64": "2.4.14",
54
- "@biomejs/cli-linux-arm64": "2.4.14",
55
- "@biomejs/cli-linux-x64-musl": "2.4.14",
56
- "@biomejs/cli-linux-arm64-musl": "2.4.14"
49
+ "@biomejs/cli-win32-x64": "2.4.16",
50
+ "@biomejs/cli-win32-arm64": "2.4.16",
51
+ "@biomejs/cli-darwin-x64": "2.4.16",
52
+ "@biomejs/cli-darwin-arm64": "2.4.16",
53
+ "@biomejs/cli-linux-x64": "2.4.16",
54
+ "@biomejs/cli-linux-arm64": "2.4.16",
55
+ "@biomejs/cli-linux-x64-musl": "2.4.16",
56
+ "@biomejs/cli-linux-arm64-musl": "2.4.16"
57
57
  }
58
58
  }