@biomejs/biome 2.5.11 → 2.5.13

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
@@ -113,9 +113,9 @@ Biome offers [enterprise support](https://biomejs.dev/enterprise), where Core Co
113
113
  <td align="center" valign="middle">
114
114
  <a href="https://depot.dev/?utm_source=biome&utm_medium=readme" target="_blank">
115
115
  <picture>
116
- <source media="(prefers-color-scheme: light)" srcset="https://depot.dev/assets/brand/1693758816/depot-logo-horizontal-on-light@3x.png" />
117
- <source media="(prefers-color-scheme: dark)" srcset="https://depot.dev/assets/brand/1693758816/depot-logo-horizontal-on-dark@3x.png" />
118
- <img src="https://depot.dev/assets/brand/1693758816/depot-logo-horizontal-on-light@3x.png" width="600" alt="Depot logo" />
116
+ <source media="(prefers-color-scheme: light)" srcset="https://depot.dev/assets/brand/horizontal/depot-logo-horizontal-on-light-x3.png" />
117
+ <source media="(prefers-color-scheme: dark)" srcset="https://depot.dev/assets/brand/horizontal/depot-logo-horizontal-on-dark-x3.png" />
118
+ <img src="https://depot.dev/assets/brand/horizontal/depot-logo-horizontal-on-light-x3.png" width="600" alt="Depot logo" />
119
119
  </picture>
120
120
  </a>
121
121
  </td>
@@ -3223,6 +3223,13 @@
3223
3223
  },
3224
3224
  "additionalProperties": false
3225
3225
  },
3226
+ "NoBunModulesConfiguration": {
3227
+ "oneOf": [
3228
+ { "$ref": "#/$defs/RulePlainConfiguration" },
3229
+ { "$ref": "#/$defs/RuleWithNoBunModulesOptions" }
3230
+ ]
3231
+ },
3232
+ "NoBunModulesOptions": { "type": "object", "additionalProperties": false },
3226
3233
  "NoCatchAssignConfiguration": {
3227
3234
  "oneOf": [
3228
3235
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -4532,6 +4539,16 @@
4532
4539
  "type": "object",
4533
4540
  "additionalProperties": false
4534
4541
  },
4542
+ "NoInvalidFileInputAcceptConfiguration": {
4543
+ "oneOf": [
4544
+ { "$ref": "#/$defs/RulePlainConfiguration" },
4545
+ { "$ref": "#/$defs/RuleWithNoInvalidFileInputAcceptOptions" }
4546
+ ]
4547
+ },
4548
+ "NoInvalidFileInputAcceptOptions": {
4549
+ "type": "object",
4550
+ "additionalProperties": false
4551
+ },
4535
4552
  "NoInvalidGridAreasConfiguration": {
4536
4553
  "oneOf": [
4537
4554
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -5628,6 +5645,16 @@
5628
5645
  "type": "object",
5629
5646
  "additionalProperties": false
5630
5647
  },
5648
+ "NoSvelteAtHtmlTagsConfiguration": {
5649
+ "oneOf": [
5650
+ { "$ref": "#/$defs/RulePlainConfiguration" },
5651
+ { "$ref": "#/$defs/RuleWithNoSvelteAtHtmlTagsOptions" }
5652
+ ]
5653
+ },
5654
+ "NoSvelteAtHtmlTagsOptions": {
5655
+ "type": "object",
5656
+ "additionalProperties": false
5657
+ },
5631
5658
  "NoSvelteLegacyConstConfiguration": {
5632
5659
  "oneOf": [
5633
5660
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -5746,6 +5773,16 @@
5746
5773
  "type": "object",
5747
5774
  "additionalProperties": false
5748
5775
  },
5776
+ "NoThisOutsideOfClassConfiguration": {
5777
+ "oneOf": [
5778
+ { "$ref": "#/$defs/RulePlainConfiguration" },
5779
+ { "$ref": "#/$defs/RuleWithNoThisOutsideOfClassOptions" }
5780
+ ]
5781
+ },
5782
+ "NoThisOutsideOfClassOptions": {
5783
+ "type": "object",
5784
+ "additionalProperties": false
5785
+ },
5749
5786
  "NoTopLevelLiteralsConfiguration": {
5750
5787
  "oneOf": [
5751
5788
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -6002,6 +6039,16 @@
6002
6039
  "type": "object",
6003
6040
  "additionalProperties": false
6004
6041
  },
6042
+ "NoUnmodifiedLoopConditionConfiguration": {
6043
+ "oneOf": [
6044
+ { "$ref": "#/$defs/RulePlainConfiguration" },
6045
+ { "$ref": "#/$defs/RuleWithNoUnmodifiedLoopConditionOptions" }
6046
+ ]
6047
+ },
6048
+ "NoUnmodifiedLoopConditionOptions": {
6049
+ "type": "object",
6050
+ "additionalProperties": false
6051
+ },
6005
6052
  "NoUnnecessaryConditionsConfiguration": {
6006
6053
  "oneOf": [
6007
6054
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -6069,6 +6116,16 @@
6069
6116
  "type": "object",
6070
6117
  "additionalProperties": false
6071
6118
  },
6119
+ "NoUnsafeIframeSandboxConfiguration": {
6120
+ "oneOf": [
6121
+ { "$ref": "#/$defs/RulePlainConfiguration" },
6122
+ { "$ref": "#/$defs/RuleWithNoUnsafeIframeSandboxOptions" }
6123
+ ]
6124
+ },
6125
+ "NoUnsafeIframeSandboxOptions": {
6126
+ "type": "object",
6127
+ "additionalProperties": false
6128
+ },
6072
6129
  "NoUnsafeNegationConfiguration": {
6073
6130
  "oneOf": [
6074
6131
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -6592,6 +6649,16 @@
6592
6649
  "type": "object",
6593
6650
  "additionalProperties": false
6594
6651
  },
6652
+ "NoVueDeprecatedScopedSlotsConfiguration": {
6653
+ "oneOf": [
6654
+ { "$ref": "#/$defs/RulePlainConfiguration" },
6655
+ { "$ref": "#/$defs/RuleWithNoVueDeprecatedScopedSlotsOptions" }
6656
+ ]
6657
+ },
6658
+ "NoVueDeprecatedScopedSlotsOptions": {
6659
+ "type": "object",
6660
+ "additionalProperties": false
6661
+ },
6595
6662
  "NoVueDuplicateKeysConfiguration": {
6596
6663
  "oneOf": [
6597
6664
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -6689,6 +6756,16 @@
6689
6756
  ]
6690
6757
  },
6691
6758
  "NoWithOptions": { "type": "object", "additionalProperties": false },
6759
+ "NoXorAsExponentiationConfiguration": {
6760
+ "oneOf": [
6761
+ { "$ref": "#/$defs/RulePlainConfiguration" },
6762
+ { "$ref": "#/$defs/RuleWithNoXorAsExponentiationOptions" }
6763
+ ]
6764
+ },
6765
+ "NoXorAsExponentiationOptions": {
6766
+ "type": "object",
6767
+ "additionalProperties": false
6768
+ },
6692
6769
  "NoYodaExpressionConfiguration": {
6693
6770
  "oneOf": [
6694
6771
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -6741,6 +6818,13 @@
6741
6818
  { "type": "null" }
6742
6819
  ]
6743
6820
  },
6821
+ "noBunModules": {
6822
+ "description": "Forbid the use of Bun builtin modules.\nSee https://biomejs.dev/linter/rules/no-bun-modules",
6823
+ "anyOf": [
6824
+ { "$ref": "#/$defs/NoBunModulesConfiguration" },
6825
+ { "type": "null" }
6826
+ ]
6827
+ },
6744
6828
  "noComponentHookFactories": {
6745
6829
  "description": "Disallows defining React components or custom hooks inside other functions.\nSee https://biomejs.dev/linter/rules/no-component-hook-factories",
6746
6830
  "anyOf": [
@@ -6839,6 +6923,13 @@
6839
6923
  { "type": "null" }
6840
6924
  ]
6841
6925
  },
6926
+ "noInvalidFileInputAccept": {
6927
+ "description": "Disallow invalid accept values on file inputs.\nSee https://biomejs.dev/linter/rules/no-invalid-file-input-accept",
6928
+ "anyOf": [
6929
+ { "$ref": "#/$defs/NoInvalidFileInputAcceptConfiguration" },
6930
+ { "type": "null" }
6931
+ ]
6932
+ },
6842
6933
  "noInvalidPropertyInitValue": {
6843
6934
  "description": "Checks that the initial-value of an @property rule follows the value format declared by its syntax.\nSee https://biomejs.dev/linter/rules/no-invalid-property-init-value",
6844
6935
  "anyOf": [
@@ -7007,6 +7098,13 @@
7007
7098
  { "type": "null" }
7008
7099
  ]
7009
7100
  },
7101
+ "noSvelteAtHtmlTags": {
7102
+ "description": "Disallow the use of Svelte's {@html} tag.\nSee https://biomejs.dev/linter/rules/no-svelte-at-html-tags",
7103
+ "anyOf": [
7104
+ { "$ref": "#/$defs/NoSvelteAtHtmlTagsConfiguration" },
7105
+ { "type": "null" }
7106
+ ]
7107
+ },
7010
7108
  "noSvelteLegacyConst": {
7011
7109
  "description": "Disallow legacy Svelte {@const} tags.\nSee https://biomejs.dev/linter/rules/no-svelte-legacy-const",
7012
7110
  "anyOf": [
@@ -7028,6 +7126,13 @@
7028
7126
  { "type": "null" }
7029
7127
  ]
7030
7128
  },
7129
+ "noThisOutsideOfClass": {
7130
+ "description": "Disallow this outside of classes.\nSee https://biomejs.dev/linter/rules/no-this-outside-of-class",
7131
+ "anyOf": [
7132
+ { "$ref": "#/$defs/NoThisOutsideOfClassConfiguration" },
7133
+ { "type": "null" }
7134
+ ]
7135
+ },
7031
7136
  "noTopLevelLiterals": {
7032
7137
  "description": "Require the JSON top-level value to be an array or object.\nSee https://biomejs.dev/linter/rules/no-top-level-literals",
7033
7138
  "anyOf": [
@@ -7049,6 +7154,13 @@
7049
7154
  { "type": "null" }
7050
7155
  ]
7051
7156
  },
7157
+ "noUnmodifiedLoopCondition": {
7158
+ "description": "Disallow loop conditions whose variables are never modified in the loop.\nSee https://biomejs.dev/linter/rules/no-unmodified-loop-condition",
7159
+ "anyOf": [
7160
+ { "$ref": "#/$defs/NoUnmodifiedLoopConditionConfiguration" },
7161
+ { "type": "null" }
7162
+ ]
7163
+ },
7052
7164
  "noUnnecessaryTemplateExpression": {
7053
7165
  "description": "Disallow unnecessary template expressions.\nSee https://biomejs.dev/linter/rules/no-unnecessary-template-expression",
7054
7166
  "anyOf": [
@@ -7056,6 +7168,13 @@
7056
7168
  { "type": "null" }
7057
7169
  ]
7058
7170
  },
7171
+ "noUnsafeIframeSandbox": {
7172
+ "description": "Disallow an unsafe combination of the sandbox attribute.\nSee https://biomejs.dev/linter/rules/no-unsafe-iframe-sandbox",
7173
+ "anyOf": [
7174
+ { "$ref": "#/$defs/NoUnsafeIframeSandboxConfiguration" },
7175
+ { "type": "null" }
7176
+ ]
7177
+ },
7059
7178
  "noUnsafePlusOperands": {
7060
7179
  "description": "Disallow + operations with operands that are known to be unsafe.\nSee https://biomejs.dev/linter/rules/no-unsafe-plus-operands",
7061
7180
  "anyOf": [
@@ -7091,6 +7210,13 @@
7091
7210
  { "type": "null" }
7092
7211
  ]
7093
7212
  },
7213
+ "noVueDeprecatedScopedSlots": {
7214
+ "description": "Disallow the deprecated Vue $scopedSlots API.\nSee https://biomejs.dev/linter/rules/no-vue-deprecated-scoped-slots",
7215
+ "anyOf": [
7216
+ { "$ref": "#/$defs/NoVueDeprecatedScopedSlotsConfiguration" },
7217
+ { "type": "null" }
7218
+ ]
7219
+ },
7094
7220
  "noVueImportCompilerMacros": {
7095
7221
  "description": "Disallow importing Vue compiler macros.\nSee https://biomejs.dev/linter/rules/no-vue-import-compiler-macros",
7096
7222
  "anyOf": [
@@ -7112,6 +7238,13 @@
7112
7238
  { "type": "null" }
7113
7239
  ]
7114
7240
  },
7241
+ "noXorAsExponentiation": {
7242
+ "description": "Disallow the bitwise XOR operator where exponentiation was likely intended.\nSee https://biomejs.dev/linter/rules/no-xor-as-exponentiation",
7243
+ "anyOf": [
7244
+ { "$ref": "#/$defs/NoXorAsExponentiationConfiguration" },
7245
+ { "type": "null" }
7246
+ ]
7247
+ },
7115
7248
  "preset": {
7116
7249
  "description": "Enables a particular rule preset",
7117
7250
  "anyOf": [{ "$ref": "#/$defs/PresetConfig" }, { "type": "null" }]
@@ -7148,6 +7281,13 @@
7148
7281
  { "type": "null" }
7149
7282
  ]
7150
7283
  },
7284
+ "useBetterDomTraversing": {
7285
+ "description": "Prefer modern DOM traversal APIs over positional indexes and chained walks.\nSee https://biomejs.dev/linter/rules/use-better-dom-traversing",
7286
+ "anyOf": [
7287
+ { "$ref": "#/$defs/UseBetterDomTraversingConfiguration" },
7288
+ { "type": "null" }
7289
+ ]
7290
+ },
7151
7291
  "useConsistentTestIt": {
7152
7292
  "description": "Enforce consistent use of it or test for test functions.\nSee https://biomejs.dev/linter/rules/use-consistent-test-it",
7153
7293
  "anyOf": [
@@ -7211,6 +7351,13 @@
7211
7351
  { "type": "null" }
7212
7352
  ]
7213
7353
  },
7354
+ "useFlatMathMinMax": {
7355
+ "description": "Prefer flat Math.min() and Math.max() calls over nested calls of the same method.\nSee https://biomejs.dev/linter/rules/use-flat-math-min-max",
7356
+ "anyOf": [
7357
+ { "$ref": "#/$defs/UseFlatMathMinMaxConfiguration" },
7358
+ { "type": "null" }
7359
+ ]
7360
+ },
7214
7361
  "useIframeSandbox": {
7215
7362
  "description": "Enforce the 'sandbox' attribute for 'iframe' elements.\nSee https://biomejs.dev/linter/rules/use-iframe-sandbox",
7216
7363
  "anyOf": [
@@ -7232,6 +7379,13 @@
7232
7379
  { "type": "null" }
7233
7380
  ]
7234
7381
  },
7382
+ "useLayeredStyles": {
7383
+ "description": "Enforce style rules to be defined within a cascade layer.\nSee https://biomejs.dev/linter/rules/use-layered-styles",
7384
+ "anyOf": [
7385
+ { "$ref": "#/$defs/UseLayeredStylesConfiguration" },
7386
+ { "type": "null" }
7387
+ ]
7388
+ },
7235
7389
  "useMathMinMax": {
7236
7390
  "description": "Prefer Math.min() and Math.max() over ternaries for simple comparisons.\nSee https://biomejs.dev/linter/rules/use-math-min-max",
7237
7391
  "anyOf": [
@@ -7239,6 +7393,13 @@
7239
7393
  { "type": "null" }
7240
7394
  ]
7241
7395
  },
7396
+ "useModernMathApis": {
7397
+ "description": "Use modern Math APIs for common mathematical operations.\nSee https://biomejs.dev/linter/rules/use-modern-math-apis",
7398
+ "anyOf": [
7399
+ { "$ref": "#/$defs/UseModernMathApisConfiguration" },
7400
+ { "type": "null" }
7401
+ ]
7402
+ },
7242
7403
  "useNamedCaptureGroup": {
7243
7404
  "description": "Enforce using named capture groups in regular expression.\nSee https://biomejs.dev/linter/rules/use-named-capture-group",
7244
7405
  "anyOf": [
@@ -7299,6 +7460,13 @@
7299
7460
  { "type": "null" }
7300
7461
  ]
7301
7462
  },
7463
+ "useReactNamingConvention": {
7464
+ "description": "Enforces naming conventions for React createContext, useId, and useRef.\nSee https://biomejs.dev/linter/rules/use-react-naming-convention",
7465
+ "anyOf": [
7466
+ { "$ref": "#/$defs/UseReactNamingConventionConfiguration" },
7467
+ { "type": "null" }
7468
+ ]
7469
+ },
7302
7470
  "useReactNativePlatformComponents": {
7303
7471
  "description": "Ensure that platform-specific React Native components are only imported in files named for that platform.\nSee https://biomejs.dev/linter/rules/use-react-native-platform-components",
7304
7472
  "anyOf": [
@@ -7397,6 +7565,13 @@
7397
7565
  { "type": "null" }
7398
7566
  ]
7399
7567
  },
7568
+ "useVueBaseImport": {
7569
+ "description": "Enforce importing Vue's public entry point instead of internal Vue packages.\nSee https://biomejs.dev/linter/rules/use-vue-base-import",
7570
+ "anyOf": [
7571
+ { "$ref": "#/$defs/UseVueBaseImportConfiguration" },
7572
+ { "type": "null" }
7573
+ ]
7574
+ },
7400
7575
  "useVueConsistentDefinePropsDeclaration": {
7401
7576
  "description": "Enforce consistent defineProps declaration style.\nSee https://biomejs.dev/linter/rules/use-vue-consistent-define-props-declaration",
7402
7577
  "anyOf": [
@@ -7988,82 +8163,6 @@
7988
8163
  },
7989
8164
  "required": ["level", "options"]
7990
8165
  },
7991
- "RuleDomain": {
7992
- "description": "Rule domains",
7993
- "oneOf": [
7994
- {
7995
- "description": "Astro framework rules",
7996
- "type": "string",
7997
- "const": "astro"
7998
- },
7999
- {
8000
- "description": "Drizzle ORM rules",
8001
- "type": "string",
8002
- "const": "drizzle"
8003
- },
8004
- {
8005
- "description": "React library rules",
8006
- "type": "string",
8007
- "const": "react"
8008
- },
8009
- {
8010
- "description": "React Native framework rules",
8011
- "type": "string",
8012
- "const": "reactNative"
8013
- },
8014
- { "description": "Testing rules", "type": "string", "const": "test" },
8015
- {
8016
- "description": "Solid.js framework rules",
8017
- "type": "string",
8018
- "const": "solid"
8019
- },
8020
- {
8021
- "description": "Next.js framework rules",
8022
- "type": "string",
8023
- "const": "next"
8024
- },
8025
- {
8026
- "description": "Qwik framework rules",
8027
- "type": "string",
8028
- "const": "qwik"
8029
- },
8030
- {
8031
- "description": "Svelte framework rules",
8032
- "type": "string",
8033
- "const": "svelte"
8034
- },
8035
- {
8036
- "description": "Vue.js framework rules",
8037
- "type": "string",
8038
- "const": "vue"
8039
- },
8040
- {
8041
- "description": "For rules that require querying multiple files inside a project",
8042
- "type": "string",
8043
- "const": "project"
8044
- },
8045
- {
8046
- "description": "Tailwind CSS rules",
8047
- "type": "string",
8048
- "const": "tailwind"
8049
- },
8050
- {
8051
- "description": "Turborepo build system rules",
8052
- "type": "string",
8053
- "const": "turborepo"
8054
- },
8055
- {
8056
- "description": "Playwright testing framework rules",
8057
- "type": "string",
8058
- "const": "playwright"
8059
- },
8060
- {
8061
- "description": "Rules that require type inference",
8062
- "type": "string",
8063
- "const": "types"
8064
- }
8065
- ]
8066
- },
8067
8166
  "RuleDomainValue": {
8068
8167
  "oneOf": [
8069
8168
  {
@@ -8085,8 +8184,24 @@
8085
8184
  },
8086
8185
  "RuleDomains": {
8087
8186
  "type": "object",
8088
- "additionalProperties": { "$ref": "#/$defs/RuleDomainValue" },
8089
- "propertyNames": { "$ref": "#/$defs/RuleDomain" }
8187
+ "properties": {
8188
+ "astro": { "$ref": "#/$defs/RuleDomainValue" },
8189
+ "drizzle": { "$ref": "#/$defs/RuleDomainValue" },
8190
+ "next": { "$ref": "#/$defs/RuleDomainValue" },
8191
+ "playwright": { "$ref": "#/$defs/RuleDomainValue" },
8192
+ "project": { "$ref": "#/$defs/RuleDomainValue" },
8193
+ "qwik": { "$ref": "#/$defs/RuleDomainValue" },
8194
+ "react": { "$ref": "#/$defs/RuleDomainValue" },
8195
+ "reactNative": { "$ref": "#/$defs/RuleDomainValue" },
8196
+ "solid": { "$ref": "#/$defs/RuleDomainValue" },
8197
+ "svelte": { "$ref": "#/$defs/RuleDomainValue" },
8198
+ "tailwind": { "$ref": "#/$defs/RuleDomainValue" },
8199
+ "test": { "$ref": "#/$defs/RuleDomainValue" },
8200
+ "turborepo": { "$ref": "#/$defs/RuleDomainValue" },
8201
+ "types": { "$ref": "#/$defs/RuleDomainValue" },
8202
+ "vue": { "$ref": "#/$defs/RuleDomainValue" }
8203
+ },
8204
+ "additionalProperties": false
8090
8205
  },
8091
8206
  "RulePlainConfiguration": {
8092
8207
  "oneOf": [
@@ -8322,6 +8437,15 @@
8322
8437
  "additionalProperties": false,
8323
8438
  "required": ["level"]
8324
8439
  },
8440
+ "RuleWithNoBunModulesOptions": {
8441
+ "type": "object",
8442
+ "properties": {
8443
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
8444
+ "options": { "$ref": "#/$defs/NoBunModulesOptions" }
8445
+ },
8446
+ "additionalProperties": false,
8447
+ "required": ["level"]
8448
+ },
8325
8449
  "RuleWithNoCatchAssignOptions": {
8326
8450
  "type": "object",
8327
8451
  "properties": {
@@ -9440,6 +9564,16 @@
9440
9564
  "additionalProperties": false,
9441
9565
  "required": ["level"]
9442
9566
  },
9567
+ "RuleWithNoInvalidFileInputAcceptOptions": {
9568
+ "type": "object",
9569
+ "properties": {
9570
+ "fix": { "anyOf": [{ "$ref": "#/$defs/FixKind" }, { "type": "null" }] },
9571
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
9572
+ "options": { "$ref": "#/$defs/NoInvalidFileInputAcceptOptions" }
9573
+ },
9574
+ "additionalProperties": false,
9575
+ "required": ["level"]
9576
+ },
9443
9577
  "RuleWithNoInvalidGridAreasOptions": {
9444
9578
  "type": "object",
9445
9579
  "properties": {
@@ -10383,6 +10517,15 @@
10383
10517
  "additionalProperties": false,
10384
10518
  "required": ["level"]
10385
10519
  },
10520
+ "RuleWithNoSvelteAtHtmlTagsOptions": {
10521
+ "type": "object",
10522
+ "properties": {
10523
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
10524
+ "options": { "$ref": "#/$defs/NoSvelteAtHtmlTagsOptions" }
10525
+ },
10526
+ "additionalProperties": false,
10527
+ "required": ["level"]
10528
+ },
10386
10529
  "RuleWithNoSvelteLegacyConstOptions": {
10387
10530
  "type": "object",
10388
10531
  "properties": {
@@ -10476,6 +10619,15 @@
10476
10619
  "additionalProperties": false,
10477
10620
  "required": ["level"]
10478
10621
  },
10622
+ "RuleWithNoThisOutsideOfClassOptions": {
10623
+ "type": "object",
10624
+ "properties": {
10625
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
10626
+ "options": { "$ref": "#/$defs/NoThisOutsideOfClassOptions" }
10627
+ },
10628
+ "additionalProperties": false,
10629
+ "required": ["level"]
10630
+ },
10479
10631
  "RuleWithNoTopLevelLiteralsOptions": {
10480
10632
  "type": "object",
10481
10633
  "properties": {
@@ -10639,6 +10791,15 @@
10639
10791
  "additionalProperties": false,
10640
10792
  "required": ["level"]
10641
10793
  },
10794
+ "RuleWithNoUnmodifiedLoopConditionOptions": {
10795
+ "type": "object",
10796
+ "properties": {
10797
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
10798
+ "options": { "$ref": "#/$defs/NoUnmodifiedLoopConditionOptions" }
10799
+ },
10800
+ "additionalProperties": false,
10801
+ "required": ["level"]
10802
+ },
10642
10803
  "RuleWithNoUnnecessaryConditionsOptions": {
10643
10804
  "type": "object",
10644
10805
  "properties": {
@@ -10703,6 +10864,15 @@
10703
10864
  "additionalProperties": false,
10704
10865
  "required": ["level"]
10705
10866
  },
10867
+ "RuleWithNoUnsafeIframeSandboxOptions": {
10868
+ "type": "object",
10869
+ "properties": {
10870
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
10871
+ "options": { "$ref": "#/$defs/NoUnsafeIframeSandboxOptions" }
10872
+ },
10873
+ "additionalProperties": false,
10874
+ "required": ["level"]
10875
+ },
10706
10876
  "RuleWithNoUnsafeNegationOptions": {
10707
10877
  "type": "object",
10708
10878
  "properties": {
@@ -11139,6 +11309,16 @@
11139
11309
  "additionalProperties": false,
11140
11310
  "required": ["level"]
11141
11311
  },
11312
+ "RuleWithNoVueDeprecatedScopedSlotsOptions": {
11313
+ "type": "object",
11314
+ "properties": {
11315
+ "fix": { "anyOf": [{ "$ref": "#/$defs/FixKind" }, { "type": "null" }] },
11316
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
11317
+ "options": { "$ref": "#/$defs/NoVueDeprecatedScopedSlotsOptions" }
11318
+ },
11319
+ "additionalProperties": false,
11320
+ "required": ["level"]
11321
+ },
11142
11322
  "RuleWithNoVueDuplicateKeysOptions": {
11143
11323
  "type": "object",
11144
11324
  "properties": {
@@ -11229,6 +11409,16 @@
11229
11409
  "additionalProperties": false,
11230
11410
  "required": ["level"]
11231
11411
  },
11412
+ "RuleWithNoXorAsExponentiationOptions": {
11413
+ "type": "object",
11414
+ "properties": {
11415
+ "fix": { "anyOf": [{ "$ref": "#/$defs/FixKind" }, { "type": "null" }] },
11416
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
11417
+ "options": { "$ref": "#/$defs/NoXorAsExponentiationOptions" }
11418
+ },
11419
+ "additionalProperties": false,
11420
+ "required": ["level"]
11421
+ },
11232
11422
  "RuleWithNoYodaExpressionOptions": {
11233
11423
  "type": "object",
11234
11424
  "properties": {
@@ -11400,6 +11590,16 @@
11400
11590
  "additionalProperties": false,
11401
11591
  "required": ["level"]
11402
11592
  },
11593
+ "RuleWithUseBetterDomTraversingOptions": {
11594
+ "type": "object",
11595
+ "properties": {
11596
+ "fix": { "anyOf": [{ "$ref": "#/$defs/FixKind" }, { "type": "null" }] },
11597
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
11598
+ "options": { "$ref": "#/$defs/UseBetterDomTraversingOptions" }
11599
+ },
11600
+ "additionalProperties": false,
11601
+ "required": ["level"]
11602
+ },
11403
11603
  "RuleWithUseBiomeIgnoreFolderOptions": {
11404
11604
  "type": "object",
11405
11605
  "properties": {
@@ -11814,6 +12014,16 @@
11814
12014
  "additionalProperties": false,
11815
12015
  "required": ["level"]
11816
12016
  },
12017
+ "RuleWithUseFlatMathMinMaxOptions": {
12018
+ "type": "object",
12019
+ "properties": {
12020
+ "fix": { "anyOf": [{ "$ref": "#/$defs/FixKind" }, { "type": "null" }] },
12021
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
12022
+ "options": { "$ref": "#/$defs/UseFlatMathMinMaxOptions" }
12023
+ },
12024
+ "additionalProperties": false,
12025
+ "required": ["level"]
12026
+ },
11817
12027
  "RuleWithUseFocusableInteractiveOptions": {
11818
12028
  "type": "object",
11819
12029
  "properties": {
@@ -12112,6 +12322,15 @@
12112
12322
  "additionalProperties": false,
12113
12323
  "required": ["level"]
12114
12324
  },
12325
+ "RuleWithUseLayeredStylesOptions": {
12326
+ "type": "object",
12327
+ "properties": {
12328
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
12329
+ "options": { "$ref": "#/$defs/UseLayeredStylesOptions" }
12330
+ },
12331
+ "additionalProperties": false,
12332
+ "required": ["level"]
12333
+ },
12115
12334
  "RuleWithUseLiteralEnumMembersOptions": {
12116
12335
  "type": "object",
12117
12336
  "properties": {
@@ -12177,6 +12396,16 @@
12177
12396
  "additionalProperties": false,
12178
12397
  "required": ["level"]
12179
12398
  },
12399
+ "RuleWithUseModernMathApisOptions": {
12400
+ "type": "object",
12401
+ "properties": {
12402
+ "fix": { "anyOf": [{ "$ref": "#/$defs/FixKind" }, { "type": "null" }] },
12403
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
12404
+ "options": { "$ref": "#/$defs/UseModernMathApisOptions" }
12405
+ },
12406
+ "additionalProperties": false,
12407
+ "required": ["level"]
12408
+ },
12180
12409
  "RuleWithUseNamedCaptureGroupOptions": {
12181
12410
  "type": "object",
12182
12411
  "properties": {
@@ -12402,6 +12631,15 @@
12402
12631
  "additionalProperties": false,
12403
12632
  "required": ["level"]
12404
12633
  },
12634
+ "RuleWithUseReactNamingConventionOptions": {
12635
+ "type": "object",
12636
+ "properties": {
12637
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
12638
+ "options": { "$ref": "#/$defs/UseReactNamingConventionOptions" }
12639
+ },
12640
+ "additionalProperties": false,
12641
+ "required": ["level"]
12642
+ },
12405
12643
  "RuleWithUseReactNativePlatformComponentsOptions": {
12406
12644
  "type": "object",
12407
12645
  "properties": {
@@ -12833,6 +13071,16 @@
12833
13071
  "additionalProperties": false,
12834
13072
  "required": ["level"]
12835
13073
  },
13074
+ "RuleWithUseVueBaseImportOptions": {
13075
+ "type": "object",
13076
+ "properties": {
13077
+ "fix": { "anyOf": [{ "$ref": "#/$defs/FixKind" }, { "type": "null" }] },
13078
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
13079
+ "options": { "$ref": "#/$defs/UseVueBaseImportOptions" }
13080
+ },
13081
+ "additionalProperties": false,
13082
+ "required": ["level"]
13083
+ },
12836
13084
  "RuleWithUseVueConsistentDefinePropsDeclarationOptions": {
12837
13085
  "type": "object",
12838
13086
  "properties": {
@@ -15146,6 +15394,16 @@
15146
15394
  },
15147
15395
  "additionalProperties": false
15148
15396
  },
15397
+ "UseBetterDomTraversingConfiguration": {
15398
+ "oneOf": [
15399
+ { "$ref": "#/$defs/RulePlainConfiguration" },
15400
+ { "$ref": "#/$defs/RuleWithUseBetterDomTraversingOptions" }
15401
+ ]
15402
+ },
15403
+ "UseBetterDomTraversingOptions": {
15404
+ "type": "object",
15405
+ "additionalProperties": false
15406
+ },
15149
15407
  "UseBiomeIgnoreFolderConfiguration": {
15150
15408
  "oneOf": [
15151
15409
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -15767,6 +16025,16 @@
15767
16025
  ]
15768
16026
  },
15769
16027
  "UseFlatMapOptions": { "type": "object", "additionalProperties": false },
16028
+ "UseFlatMathMinMaxConfiguration": {
16029
+ "oneOf": [
16030
+ { "$ref": "#/$defs/RulePlainConfiguration" },
16031
+ { "$ref": "#/$defs/RuleWithUseFlatMathMinMaxOptions" }
16032
+ ]
16033
+ },
16034
+ "UseFlatMathMinMaxOptions": {
16035
+ "type": "object",
16036
+ "additionalProperties": false
16037
+ },
15770
16038
  "UseFocusableInteractiveConfiguration": {
15771
16039
  "oneOf": [
15772
16040
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -16119,6 +16387,22 @@
16119
16387
  "type": "object",
16120
16388
  "additionalProperties": false
16121
16389
  },
16390
+ "UseLayeredStylesConfiguration": {
16391
+ "oneOf": [
16392
+ { "$ref": "#/$defs/RulePlainConfiguration" },
16393
+ { "$ref": "#/$defs/RuleWithUseLayeredStylesOptions" }
16394
+ ]
16395
+ },
16396
+ "UseLayeredStylesOptions": {
16397
+ "type": "object",
16398
+ "properties": {
16399
+ "requireImportLayers": {
16400
+ "description": "Require `@import` rules to have a cascade layer. Defaults to `true`.",
16401
+ "type": ["boolean", "null"]
16402
+ }
16403
+ },
16404
+ "additionalProperties": false
16405
+ },
16122
16406
  "UseLiteralEnumMembersConfiguration": {
16123
16407
  "oneOf": [
16124
16408
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -16195,6 +16479,16 @@
16195
16479
  "type": "object",
16196
16480
  "additionalProperties": false
16197
16481
  },
16482
+ "UseModernMathApisConfiguration": {
16483
+ "oneOf": [
16484
+ { "$ref": "#/$defs/RulePlainConfiguration" },
16485
+ { "$ref": "#/$defs/RuleWithUseModernMathApisOptions" }
16486
+ ]
16487
+ },
16488
+ "UseModernMathApisOptions": {
16489
+ "type": "object",
16490
+ "additionalProperties": false
16491
+ },
16198
16492
  "UseNamedCaptureGroupConfiguration": {
16199
16493
  "oneOf": [
16200
16494
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -16510,6 +16804,16 @@
16510
16804
  "type": "object",
16511
16805
  "additionalProperties": false
16512
16806
  },
16807
+ "UseReactNamingConventionConfiguration": {
16808
+ "oneOf": [
16809
+ { "$ref": "#/$defs/RulePlainConfiguration" },
16810
+ { "$ref": "#/$defs/RuleWithUseReactNamingConventionOptions" }
16811
+ ]
16812
+ },
16813
+ "UseReactNamingConventionOptions": {
16814
+ "type": "object",
16815
+ "additionalProperties": false
16816
+ },
16513
16817
  "UseReactNativePlatformComponentsConfiguration": {
16514
16818
  "oneOf": [
16515
16819
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -17130,6 +17434,16 @@
17130
17434
  ]
17131
17435
  },
17132
17436
  "UseVarsOnTopOptions": { "type": "object", "additionalProperties": false },
17437
+ "UseVueBaseImportConfiguration": {
17438
+ "oneOf": [
17439
+ { "$ref": "#/$defs/RulePlainConfiguration" },
17440
+ { "$ref": "#/$defs/RuleWithUseVueBaseImportOptions" }
17441
+ ]
17442
+ },
17443
+ "UseVueBaseImportOptions": {
17444
+ "type": "object",
17445
+ "additionalProperties": false
17446
+ },
17133
17447
  "UseVueConsistentDefinePropsDeclarationConfiguration": {
17134
17448
  "oneOf": [
17135
17449
  { "$ref": "#/$defs/RulePlainConfiguration" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biomejs/biome",
3
- "version": "2.5.11",
3
+ "version": "2.5.13",
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.5.11",
50
- "@biomejs/cli-win32-arm64": "2.5.11",
51
- "@biomejs/cli-darwin-x64": "2.5.11",
52
- "@biomejs/cli-darwin-arm64": "2.5.11",
53
- "@biomejs/cli-linux-x64": "2.5.11",
54
- "@biomejs/cli-linux-arm64": "2.5.11",
55
- "@biomejs/cli-linux-x64-musl": "2.5.11",
56
- "@biomejs/cli-linux-arm64-musl": "2.5.11"
49
+ "@biomejs/cli-win32-x64": "2.5.13",
50
+ "@biomejs/cli-win32-arm64": "2.5.13",
51
+ "@biomejs/cli-darwin-x64": "2.5.13",
52
+ "@biomejs/cli-darwin-arm64": "2.5.13",
53
+ "@biomejs/cli-linux-x64": "2.5.13",
54
+ "@biomejs/cli-linux-arm64": "2.5.13",
55
+ "@biomejs/cli-linux-x64-musl": "2.5.13",
56
+ "@biomejs/cli-linux-arm64-musl": "2.5.13"
57
57
  }
58
58
  }