@biomejs/biome 2.4.14 → 2.4.15

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": {
@@ -2087,6 +2087,26 @@
2087
2087
  },
2088
2088
  "additionalProperties": false
2089
2089
  },
2090
+ "IgnoreClassesWithImplements": {
2091
+ "description": "Controls how `useThisInClassMethods` treats classes that implement interfaces.",
2092
+ "oneOf": [
2093
+ {
2094
+ "description": "Check members in classes that implement interfaces the same way as any other class.",
2095
+ "type": "string",
2096
+ "const": "none"
2097
+ },
2098
+ {
2099
+ "description": "Ignore every eligible instance member in classes that implement at least one interface.",
2100
+ "type": "string",
2101
+ "const": "all"
2102
+ },
2103
+ {
2104
+ "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.",
2105
+ "type": "string",
2106
+ "const": "public-fields"
2107
+ }
2108
+ ]
2109
+ },
2090
2110
  "ImportGroup": {
2091
2111
  "anyOf": [
2092
2112
  { "type": "null" },
@@ -2784,6 +2804,22 @@
2784
2804
  ]
2785
2805
  },
2786
2806
  "NoBarrelFileOptions": { "type": "object", "additionalProperties": false },
2807
+ "NoBaseToStringConfiguration": {
2808
+ "oneOf": [
2809
+ { "$ref": "#/$defs/RulePlainConfiguration" },
2810
+ { "$ref": "#/$defs/RuleWithNoBaseToStringOptions" }
2811
+ ]
2812
+ },
2813
+ "NoBaseToStringOptions": {
2814
+ "type": "object",
2815
+ "properties": {
2816
+ "ignoredTypeNames": {
2817
+ "type": ["array", "null"],
2818
+ "items": { "type": "string" }
2819
+ }
2820
+ },
2821
+ "additionalProperties": false
2822
+ },
2787
2823
  "NoBeforeInteractiveScriptOutsideDocumentConfiguration": {
2788
2824
  "oneOf": [
2789
2825
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -5989,6 +6025,16 @@
5989
6025
  "type": "object",
5990
6026
  "additionalProperties": false
5991
6027
  },
6028
+ "NoVueImportCompilerMacrosConfiguration": {
6029
+ "oneOf": [
6030
+ { "$ref": "#/$defs/RulePlainConfiguration" },
6031
+ { "$ref": "#/$defs/RuleWithNoVueImportCompilerMacrosOptions" }
6032
+ ]
6033
+ },
6034
+ "NoVueImportCompilerMacrosOptions": {
6035
+ "type": "object",
6036
+ "additionalProperties": false
6037
+ },
5992
6038
  "NoVueOptionsApiConfiguration": {
5993
6039
  "oneOf": [
5994
6040
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -6049,6 +6095,16 @@
6049
6095
  "type": "object",
6050
6096
  "additionalProperties": false
6051
6097
  },
6098
+ "NoVueVOnNumberValuesConfiguration": {
6099
+ "oneOf": [
6100
+ { "$ref": "#/$defs/RulePlainConfiguration" },
6101
+ { "$ref": "#/$defs/RuleWithNoVueVOnNumberValuesOptions" }
6102
+ ]
6103
+ },
6104
+ "NoVueVOnNumberValuesOptions": {
6105
+ "type": "object",
6106
+ "additionalProperties": false
6107
+ },
6052
6108
  "NoWithConfiguration": {
6053
6109
  "oneOf": [
6054
6110
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -6081,6 +6137,13 @@
6081
6137
  { "type": "null" }
6082
6138
  ]
6083
6139
  },
6140
+ "noBaseToString": {
6141
+ "description": "Require stringification to avoid values that only use the default object representation.\nSee https://biomejs.dev/linter/rules/no-base-to-string",
6142
+ "anyOf": [
6143
+ { "$ref": "#/$defs/NoBaseToStringConfiguration" },
6144
+ { "type": "null" }
6145
+ ]
6146
+ },
6084
6147
  "noBeforeInteractiveScriptOutsideDocument": {
6085
6148
  "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
6149
  "anyOf": [
@@ -6608,6 +6671,13 @@
6608
6671
  { "type": "null" }
6609
6672
  ]
6610
6673
  },
6674
+ "noVueImportCompilerMacros": {
6675
+ "description": "Disallow importing Vue compiler macros.\nSee https://biomejs.dev/linter/rules/no-vue-import-compiler-macros",
6676
+ "anyOf": [
6677
+ { "$ref": "#/$defs/NoVueImportCompilerMacrosConfiguration" },
6678
+ { "type": "null" }
6679
+ ]
6680
+ },
6611
6681
  "noVueOptionsApi": {
6612
6682
  "description": "Disallow the use of Vue Options API.\nSee https://biomejs.dev/linter/rules/no-vue-options-api",
6613
6683
  "anyOf": [
@@ -6629,6 +6699,13 @@
6629
6699
  { "type": "null" }
6630
6700
  ]
6631
6701
  },
6702
+ "noVueVOnNumberValues": {
6703
+ "description": "Disallow deprecated number modifiers on Vue v-on directives.\nSee https://biomejs.dev/linter/rules/no-vue-v-on-number-values",
6704
+ "anyOf": [
6705
+ { "$ref": "#/$defs/NoVueVOnNumberValuesConfiguration" },
6706
+ { "type": "null" }
6707
+ ]
6708
+ },
6632
6709
  "recommended": {
6633
6710
  "description": "Enables the recommended rules for this group",
6634
6711
  "type": ["boolean", "null"]
@@ -6915,6 +6992,13 @@
6915
6992
  { "type": "null" }
6916
6993
  ]
6917
6994
  },
6995
+ "useTestHooksInOrder": {
6996
+ "description": "Enforce that test lifecycle hooks are declared in the order they execute.\nSee https://biomejs.dev/linter/rules/use-test-hooks-in-order",
6997
+ "anyOf": [
6998
+ { "$ref": "#/$defs/UseTestHooksInOrderConfiguration" },
6999
+ { "type": "null" }
7000
+ ]
7001
+ },
6918
7002
  "useTestHooksOnTop": {
6919
7003
  "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
7004
  "anyOf": [
@@ -6922,6 +7006,13 @@
6922
7006
  { "type": "null" }
6923
7007
  ]
6924
7008
  },
7009
+ "useThisInClassMethods": {
7010
+ "description": "Enforce that class methods utilize this.\nSee https://biomejs.dev/linter/rules/use-this-in-class-methods",
7011
+ "anyOf": [
7012
+ { "$ref": "#/$defs/UseThisInClassMethodsConfiguration" },
7013
+ { "type": "null" }
7014
+ ]
7015
+ },
6925
7016
  "useUnicodeRegex": {
6926
7017
  "description": "Enforce the use of the u or v flag for regular expressions.\nSee https://biomejs.dev/linter/rules/use-unicode-regex",
6927
7018
  "anyOf": [
@@ -6980,6 +7071,13 @@
6980
7071
  { "type": "null" }
6981
7072
  ]
6982
7073
  },
7074
+ "useVueNextTickPromise": {
7075
+ "description": "Enforces Promise syntax when using Vue nextTick.\nSee https://biomejs.dev/linter/rules/use-vue-next-tick-promise",
7076
+ "anyOf": [
7077
+ { "$ref": "#/$defs/UseVueNextTickPromiseConfiguration" },
7078
+ { "type": "null" }
7079
+ ]
7080
+ },
6983
7081
  "useVueVForKey": {
6984
7082
  "description": "Enforce that elements using v-for also specify a unique key.\nSee https://biomejs.dev/linter/rules/use-vue-v-for-key",
6985
7083
  "anyOf": [
@@ -7022,6 +7120,13 @@
7022
7120
  { "type": "null" }
7023
7121
  ]
7024
7122
  },
7123
+ "useVueValidVFor": {
7124
+ "description": "Enforces valid v-for directives in Vue templates.\nSee https://biomejs.dev/linter/rules/use-vue-valid-v-for",
7125
+ "anyOf": [
7126
+ { "$ref": "#/$defs/UseVueValidVForConfiguration" },
7127
+ { "type": "null" }
7128
+ ]
7129
+ },
7025
7130
  "useVueValidVHtml": {
7026
7131
  "description": "Enforce valid v-html directives.\nSee https://biomejs.dev/linter/rules/use-vue-valid-v-html",
7027
7132
  "anyOf": [
@@ -7778,6 +7883,15 @@
7778
7883
  "additionalProperties": false,
7779
7884
  "required": ["level"]
7780
7885
  },
7886
+ "RuleWithNoBaseToStringOptions": {
7887
+ "type": "object",
7888
+ "properties": {
7889
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
7890
+ "options": { "$ref": "#/$defs/NoBaseToStringOptions" }
7891
+ },
7892
+ "additionalProperties": false,
7893
+ "required": ["level"]
7894
+ },
7781
7895
  "RuleWithNoBeforeInteractiveScriptOutsideDocumentOptions": {
7782
7896
  "type": "object",
7783
7897
  "properties": {
@@ -10525,6 +10639,15 @@
10525
10639
  "additionalProperties": false,
10526
10640
  "required": ["level"]
10527
10641
  },
10642
+ "RuleWithNoVueImportCompilerMacrosOptions": {
10643
+ "type": "object",
10644
+ "properties": {
10645
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
10646
+ "options": { "$ref": "#/$defs/NoVueImportCompilerMacrosOptions" }
10647
+ },
10648
+ "additionalProperties": false,
10649
+ "required": ["level"]
10650
+ },
10528
10651
  "RuleWithNoVueOptionsApiOptions": {
10529
10652
  "type": "object",
10530
10653
  "properties": {
@@ -10579,6 +10702,15 @@
10579
10702
  "additionalProperties": false,
10580
10703
  "required": ["level"]
10581
10704
  },
10705
+ "RuleWithNoVueVOnNumberValuesOptions": {
10706
+ "type": "object",
10707
+ "properties": {
10708
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
10709
+ "options": { "$ref": "#/$defs/NoVueVOnNumberValuesOptions" }
10710
+ },
10711
+ "additionalProperties": false,
10712
+ "required": ["level"]
10713
+ },
10582
10714
  "RuleWithNoWithOptions": {
10583
10715
  "type": "object",
10584
10716
  "properties": {
@@ -11938,6 +12070,15 @@
11938
12070
  "additionalProperties": false,
11939
12071
  "required": ["level"]
11940
12072
  },
12073
+ "RuleWithUseTestHooksInOrderOptions": {
12074
+ "type": "object",
12075
+ "properties": {
12076
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
12077
+ "options": { "$ref": "#/$defs/UseTestHooksInOrderOptions" }
12078
+ },
12079
+ "additionalProperties": false,
12080
+ "required": ["level"]
12081
+ },
11941
12082
  "RuleWithUseTestHooksOnTopOptions": {
11942
12083
  "type": "object",
11943
12084
  "properties": {
@@ -11947,6 +12088,15 @@
11947
12088
  "additionalProperties": false,
11948
12089
  "required": ["level"]
11949
12090
  },
12091
+ "RuleWithUseThisInClassMethodsOptions": {
12092
+ "type": "object",
12093
+ "properties": {
12094
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
12095
+ "options": { "$ref": "#/$defs/UseThisInClassMethodsOptions" }
12096
+ },
12097
+ "additionalProperties": false,
12098
+ "required": ["level"]
12099
+ },
11950
12100
  "RuleWithUseThrowNewErrorOptions": {
11951
12101
  "type": "object",
11952
12102
  "properties": {
@@ -12158,6 +12308,15 @@
12158
12308
  "additionalProperties": false,
12159
12309
  "required": ["level"]
12160
12310
  },
12311
+ "RuleWithUseVueNextTickPromiseOptions": {
12312
+ "type": "object",
12313
+ "properties": {
12314
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
12315
+ "options": { "$ref": "#/$defs/UseVueNextTickPromiseOptions" }
12316
+ },
12317
+ "additionalProperties": false,
12318
+ "required": ["level"]
12319
+ },
12161
12320
  "RuleWithUseVueVForKeyOptions": {
12162
12321
  "type": "object",
12163
12322
  "properties": {
@@ -12214,6 +12373,15 @@
12214
12373
  "additionalProperties": false,
12215
12374
  "required": ["level"]
12216
12375
  },
12376
+ "RuleWithUseVueValidVForOptions": {
12377
+ "type": "object",
12378
+ "properties": {
12379
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
12380
+ "options": { "$ref": "#/$defs/UseVueValidVForOptions" }
12381
+ },
12382
+ "additionalProperties": false,
12383
+ "required": ["level"]
12384
+ },
12217
12385
  "RuleWithUseVueValidVHtmlOptions": {
12218
12386
  "type": "object",
12219
12387
  "properties": {
@@ -15565,6 +15733,16 @@
15565
15733
  ]
15566
15734
  },
15567
15735
  "UseTemplateOptions": { "type": "object", "additionalProperties": false },
15736
+ "UseTestHooksInOrderConfiguration": {
15737
+ "oneOf": [
15738
+ { "$ref": "#/$defs/RulePlainConfiguration" },
15739
+ { "$ref": "#/$defs/RuleWithUseTestHooksInOrderOptions" }
15740
+ ]
15741
+ },
15742
+ "UseTestHooksInOrderOptions": {
15743
+ "type": "object",
15744
+ "additionalProperties": false
15745
+ },
15568
15746
  "UseTestHooksOnTopConfiguration": {
15569
15747
  "oneOf": [
15570
15748
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -15575,6 +15753,35 @@
15575
15753
  "type": "object",
15576
15754
  "additionalProperties": false
15577
15755
  },
15756
+ "UseThisInClassMethodsConfiguration": {
15757
+ "oneOf": [
15758
+ { "$ref": "#/$defs/RulePlainConfiguration" },
15759
+ { "$ref": "#/$defs/RuleWithUseThisInClassMethodsOptions" }
15760
+ ]
15761
+ },
15762
+ "UseThisInClassMethodsOptions": {
15763
+ "description": "Options for the `useThisInClassMethods` rule.",
15764
+ "type": "object",
15765
+ "properties": {
15766
+ "ignoreClassesWithImplements": {
15767
+ "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.",
15768
+ "anyOf": [
15769
+ { "$ref": "#/$defs/IgnoreClassesWithImplements" },
15770
+ { "type": "null" }
15771
+ ]
15772
+ },
15773
+ "ignoreMethods": {
15774
+ "description": "Method names that should be ignored by the rule.\n\nDefaults to `[]`.",
15775
+ "type": ["array", "null"],
15776
+ "items": { "type": "string" }
15777
+ },
15778
+ "ignoreOverrideMethods": {
15779
+ "description": "Whether methods marked with `override` should be ignored.\n\nDefaults to `false`.",
15780
+ "type": ["boolean", "null"]
15781
+ }
15782
+ },
15783
+ "additionalProperties": false
15784
+ },
15578
15785
  "UseThrowNewErrorConfiguration": {
15579
15786
  "oneOf": [
15580
15787
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -15877,6 +16084,16 @@
15877
16084
  },
15878
16085
  "additionalProperties": false
15879
16086
  },
16087
+ "UseVueNextTickPromiseConfiguration": {
16088
+ "oneOf": [
16089
+ { "$ref": "#/$defs/RulePlainConfiguration" },
16090
+ { "$ref": "#/$defs/RuleWithUseVueNextTickPromiseOptions" }
16091
+ ]
16092
+ },
16093
+ "UseVueNextTickPromiseOptions": {
16094
+ "type": "object",
16095
+ "additionalProperties": false
16096
+ },
15880
16097
  "UseVueVForKeyConfiguration": {
15881
16098
  "oneOf": [
15882
16099
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -15934,6 +16151,16 @@
15934
16151
  "type": "object",
15935
16152
  "additionalProperties": false
15936
16153
  },
16154
+ "UseVueValidVForConfiguration": {
16155
+ "oneOf": [
16156
+ { "$ref": "#/$defs/RulePlainConfiguration" },
16157
+ { "$ref": "#/$defs/RuleWithUseVueValidVForOptions" }
16158
+ ]
16159
+ },
16160
+ "UseVueValidVForOptions": {
16161
+ "type": "object",
16162
+ "additionalProperties": false
16163
+ },
15937
16164
  "UseVueValidVHtmlConfiguration": {
15938
16165
  "oneOf": [
15939
16166
  { "$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.15",
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.15",
50
+ "@biomejs/cli-win32-arm64": "2.4.15",
51
+ "@biomejs/cli-darwin-x64": "2.4.15",
52
+ "@biomejs/cli-darwin-arm64": "2.4.15",
53
+ "@biomejs/cli-linux-x64": "2.4.15",
54
+ "@biomejs/cli-linux-arm64": "2.4.15",
55
+ "@biomejs/cli-linux-x64-musl": "2.4.15",
56
+ "@biomejs/cli-linux-arm64-musl": "2.4.15"
57
57
  }
58
58
  }