From 4a12cfde73d7160d29a1e70f2d2a9ee13e6b2bcd Mon Sep 17 00:00:00 2001 From: Tyler Cosgrove Date: Wed, 20 Sep 2023 09:48:36 -0400 Subject: [PATCH] docs(website): include rule path in rule pages (#321) --- website/src/content/docs/linter/rules/no-access-key.md | 1 + .../src/content/docs/linter/rules/no-accumulating-spread.md | 1 + website/src/content/docs/linter/rules/no-arguments.md | 1 + .../content/docs/linter/rules/no-aria-unsupported-elements.md | 1 + website/src/content/docs/linter/rules/no-array-index-key.md | 1 + .../src/content/docs/linter/rules/no-assign-in-expressions.md | 1 + .../src/content/docs/linter/rules/no-async-promise-executor.md | 1 + website/src/content/docs/linter/rules/no-autofocus.md | 1 + website/src/content/docs/linter/rules/no-banned-types.md | 1 + website/src/content/docs/linter/rules/no-blank-target.md | 1 + website/src/content/docs/linter/rules/no-catch-assign.md | 1 + website/src/content/docs/linter/rules/no-children-prop.md | 1 + website/src/content/docs/linter/rules/no-class-assign.md | 1 + website/src/content/docs/linter/rules/no-comma-operator.md | 1 + website/src/content/docs/linter/rules/no-comment-text.md | 1 + website/src/content/docs/linter/rules/no-compare-neg-zero.md | 1 + website/src/content/docs/linter/rules/no-confusing-labels.md | 1 + .../src/content/docs/linter/rules/no-confusing-void-type.md | 1 + website/src/content/docs/linter/rules/no-console-log.md | 1 + website/src/content/docs/linter/rules/no-const-assign.md | 1 + website/src/content/docs/linter/rules/no-const-enum.md | 1 + website/src/content/docs/linter/rules/no-constant-condition.md | 1 + website/src/content/docs/linter/rules/no-constructor-return.md | 1 + .../docs/linter/rules/no-control-characters-in-regex.md | 1 + .../rules/no-dangerously-set-inner-html-with-children.md | 1 + .../content/docs/linter/rules/no-dangerously-set-inner-html.md | 1 + website/src/content/docs/linter/rules/no-debugger.md | 1 + website/src/content/docs/linter/rules/no-delete.md | 1 + .../src/content/docs/linter/rules/no-distracting-elements.md | 1 + website/src/content/docs/linter/rules/no-double-equals.md | 1 + website/src/content/docs/linter/rules/no-duplicate-case.md | 1 + .../content/docs/linter/rules/no-duplicate-class-members.md | 1 + .../src/content/docs/linter/rules/no-duplicate-json-keys.md | 1 + .../src/content/docs/linter/rules/no-duplicate-jsx-props.md | 1 + .../src/content/docs/linter/rules/no-duplicate-object-keys.md | 1 + .../src/content/docs/linter/rules/no-duplicate-parameters.md | 1 + website/src/content/docs/linter/rules/no-empty-interface.md | 1 + website/src/content/docs/linter/rules/no-empty-pattern.md | 1 + .../src/content/docs/linter/rules/no-excessive-complexity.md | 1 + website/src/content/docs/linter/rules/no-explicit-any.md | 1 + website/src/content/docs/linter/rules/no-extra-boolean-cast.md | 1 + .../content/docs/linter/rules/no-extra-non-null-assertion.md | 1 + .../content/docs/linter/rules/no-fallthrough-switch-clause.md | 1 + website/src/content/docs/linter/rules/no-for-each.md | 1 + website/src/content/docs/linter/rules/no-function-assign.md | 1 + website/src/content/docs/linter/rules/no-global-is-finite.md | 1 + website/src/content/docs/linter/rules/no-global-is-nan.md | 1 + .../src/content/docs/linter/rules/no-global-object-calls.md | 1 + website/src/content/docs/linter/rules/no-header-scope.md | 1 + website/src/content/docs/linter/rules/no-implicit-boolean.md | 1 + website/src/content/docs/linter/rules/no-import-assign.md | 1 + website/src/content/docs/linter/rules/no-inferrable-types.md | 1 + website/src/content/docs/linter/rules/no-inner-declarations.md | 1 + .../content/docs/linter/rules/no-invalid-constructor-super.md | 1 + website/src/content/docs/linter/rules/no-label-var.md | 1 + .../content/docs/linter/rules/no-misleading-instantiator.md | 1 + .../rules/no-multiple-spaces-in-regular-expression-literals.md | 1 + website/src/content/docs/linter/rules/no-namespace.md | 1 + website/src/content/docs/linter/rules/no-negation-else.md | 1 + website/src/content/docs/linter/rules/no-new-symbol.md | 1 + website/src/content/docs/linter/rules/no-non-null-assertion.md | 1 + .../rules/no-noninteractive-element-to-interactive-role.md | 1 + .../content/docs/linter/rules/no-noninteractive-tabindex.md | 1 + .../content/docs/linter/rules/no-nonoctal-decimal-escape.md | 1 + website/src/content/docs/linter/rules/no-parameter-assign.md | 1 + .../src/content/docs/linter/rules/no-parameter-properties.md | 1 + website/src/content/docs/linter/rules/no-positive-tabindex.md | 1 + website/src/content/docs/linter/rules/no-precision-loss.md | 1 + website/src/content/docs/linter/rules/no-prototype-builtins.md | 1 + website/src/content/docs/linter/rules/no-redeclare.md | 1 + website/src/content/docs/linter/rules/no-redundant-alt.md | 1 + website/src/content/docs/linter/rules/no-redundant-roles.md | 1 + .../src/content/docs/linter/rules/no-redundant-use-strict.md | 1 + .../src/content/docs/linter/rules/no-render-return-value.md | 1 + website/src/content/docs/linter/rules/no-restricted-globals.md | 1 + website/src/content/docs/linter/rules/no-self-assign.md | 1 + website/src/content/docs/linter/rules/no-self-compare.md | 1 + website/src/content/docs/linter/rules/no-setter-return.md | 1 + .../content/docs/linter/rules/no-shadow-restricted-names.md | 1 + website/src/content/docs/linter/rules/no-shouty-constants.md | 1 + website/src/content/docs/linter/rules/no-sparse-array.md | 1 + website/src/content/docs/linter/rules/no-static-only-class.md | 1 + .../src/content/docs/linter/rules/no-string-case-mismatch.md | 1 + website/src/content/docs/linter/rules/no-svg-without-title.md | 1 + .../src/content/docs/linter/rules/no-switch-declarations.md | 1 + .../src/content/docs/linter/rules/no-undeclared-variables.md | 1 + .../src/content/docs/linter/rules/no-unnecessary-continue.md | 1 + website/src/content/docs/linter/rules/no-unreachable-super.md | 1 + website/src/content/docs/linter/rules/no-unreachable.md | 1 + .../content/docs/linter/rules/no-unsafe-declaration-merging.md | 1 + website/src/content/docs/linter/rules/no-unsafe-finally.md | 1 + website/src/content/docs/linter/rules/no-unsafe-negation.md | 1 + .../content/docs/linter/rules/no-unsafe-optional-chaining.md | 1 + website/src/content/docs/linter/rules/no-unused-labels.md | 1 + .../content/docs/linter/rules/no-unused-template-literal.md | 1 + website/src/content/docs/linter/rules/no-unused-variables.md | 1 + website/src/content/docs/linter/rules/no-useless-catch.md | 1 + .../src/content/docs/linter/rules/no-useless-constructor.md | 1 + .../src/content/docs/linter/rules/no-useless-empty-export.md | 1 + website/src/content/docs/linter/rules/no-useless-fragments.md | 1 + website/src/content/docs/linter/rules/no-useless-label.md | 1 + website/src/content/docs/linter/rules/no-useless-rename.md | 1 + .../src/content/docs/linter/rules/no-useless-switch-case.md | 1 + website/src/content/docs/linter/rules/no-useless-this-alias.md | 1 + .../content/docs/linter/rules/no-useless-type-constraint.md | 1 + website/src/content/docs/linter/rules/no-var.md | 1 + .../docs/linter/rules/no-void-elements-with-children.md | 1 + website/src/content/docs/linter/rules/no-void-type-return.md | 1 + website/src/content/docs/linter/rules/no-void.md | 1 + website/src/content/docs/linter/rules/no-with.md | 1 + website/src/content/docs/linter/rules/use-alt-text.md | 1 + website/src/content/docs/linter/rules/use-anchor-content.md | 1 + .../src/content/docs/linter/rules/use-aria-props-for-role.md | 1 + website/src/content/docs/linter/rules/use-arrow-function.md | 1 + website/src/content/docs/linter/rules/use-block-statements.md | 1 + website/src/content/docs/linter/rules/use-button-type.md | 1 + website/src/content/docs/linter/rules/use-collapsed-else-if.md | 1 + website/src/content/docs/linter/rules/use-const.md | 1 + .../content/docs/linter/rules/use-default-parameter-last.md | 1 + .../docs/linter/rules/use-default-switch-clause-last.md | 1 + website/src/content/docs/linter/rules/use-enum-initializers.md | 1 + .../content/docs/linter/rules/use-exhaustive-dependencies.md | 1 + .../content/docs/linter/rules/use-exponentiation-operator.md | 1 + website/src/content/docs/linter/rules/use-flat-map.md | 1 + website/src/content/docs/linter/rules/use-fragment-syntax.md | 1 + website/src/content/docs/linter/rules/use-getter-return.md | 1 + .../src/content/docs/linter/rules/use-grouped-type-import.md | 1 + website/src/content/docs/linter/rules/use-heading-content.md | 1 + website/src/content/docs/linter/rules/use-hook-at-top-level.md | 1 + website/src/content/docs/linter/rules/use-html-lang.md | 1 + website/src/content/docs/linter/rules/use-iframe-title.md | 1 + .../src/content/docs/linter/rules/use-import-restrictions.md | 1 + website/src/content/docs/linter/rules/use-is-array.md | 1 + website/src/content/docs/linter/rules/use-is-nan.md | 1 + .../src/content/docs/linter/rules/use-key-with-click-events.md | 1 + .../src/content/docs/linter/rules/use-key-with-mouse-events.md | 1 + .../src/content/docs/linter/rules/use-literal-enum-members.md | 1 + website/src/content/docs/linter/rules/use-literal-keys.md | 1 + website/src/content/docs/linter/rules/use-media-caption.md | 1 + website/src/content/docs/linter/rules/use-namespace-keyword.md | 1 + website/src/content/docs/linter/rules/use-naming-convention.md | 1 + website/src/content/docs/linter/rules/use-numeric-literals.md | 1 + website/src/content/docs/linter/rules/use-optional-chain.md | 1 + .../src/content/docs/linter/rules/use-self-closing-elements.md | 1 + .../src/content/docs/linter/rules/use-shorthand-array-type.md | 1 + .../src/content/docs/linter/rules/use-simple-number-keys.md | 1 + .../docs/linter/rules/use-simplified-logic-expression.md | 1 + .../src/content/docs/linter/rules/use-single-case-statement.md | 1 + .../src/content/docs/linter/rules/use-single-var-declarator.md | 1 + website/src/content/docs/linter/rules/use-template.md | 1 + website/src/content/docs/linter/rules/use-valid-anchor.md | 1 + website/src/content/docs/linter/rules/use-valid-aria-props.md | 1 + website/src/content/docs/linter/rules/use-valid-aria-values.md | 1 + .../src/content/docs/linter/rules/use-valid-for-direction.md | 1 + website/src/content/docs/linter/rules/use-valid-lang.md | 1 + website/src/content/docs/linter/rules/use-valid-typeof.md | 1 + website/src/content/docs/linter/rules/use-while.md | 1 + website/src/content/docs/linter/rules/use-yield.md | 1 + xtask/lintdoc/src/main.rs | 3 +++ 159 files changed, 161 insertions(+) diff --git a/website/src/content/docs/linter/rules/no-access-key.md b/website/src/content/docs/linter/rules/no-access-key.md index b0820e21544b..521e8585be58 100644 --- a/website/src/content/docs/linter/rules/no-access-key.md +++ b/website/src/content/docs/linter/rules/no-access-key.md @@ -2,6 +2,7 @@ title: noAccessKey (since v1.0.0) --- +**Diagnostic Category: `lint/a11y/noAccessKey`** Enforce that the `accessKey` attribute is not used on any HTML element. diff --git a/website/src/content/docs/linter/rules/no-accumulating-spread.md b/website/src/content/docs/linter/rules/no-accumulating-spread.md index 796161625a87..d1c4159b8c00 100644 --- a/website/src/content/docs/linter/rules/no-accumulating-spread.md +++ b/website/src/content/docs/linter/rules/no-accumulating-spread.md @@ -2,6 +2,7 @@ title: noAccumulatingSpread (since v1.0.0) --- +**Diagnostic Category: `lint/nursery/noAccumulatingSpread`** :::caution This rule is part of the [nursery](/linter/rules/#nursery) group. diff --git a/website/src/content/docs/linter/rules/no-arguments.md b/website/src/content/docs/linter/rules/no-arguments.md index 4c238e65fead..342f44b03344 100644 --- a/website/src/content/docs/linter/rules/no-arguments.md +++ b/website/src/content/docs/linter/rules/no-arguments.md @@ -2,6 +2,7 @@ title: noArguments (since v1.0.0) --- +**Diagnostic Category: `lint/style/noArguments`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-aria-unsupported-elements.md b/website/src/content/docs/linter/rules/no-aria-unsupported-elements.md index c4ea5da7e59c..37e65b5c7dc8 100644 --- a/website/src/content/docs/linter/rules/no-aria-unsupported-elements.md +++ b/website/src/content/docs/linter/rules/no-aria-unsupported-elements.md @@ -2,6 +2,7 @@ title: noAriaUnsupportedElements (since v1.0.0) --- +**Diagnostic Category: `lint/a11y/noAriaUnsupportedElements`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-array-index-key.md b/website/src/content/docs/linter/rules/no-array-index-key.md index ddd3e9c9576d..34463ef2148b 100644 --- a/website/src/content/docs/linter/rules/no-array-index-key.md +++ b/website/src/content/docs/linter/rules/no-array-index-key.md @@ -2,6 +2,7 @@ title: noArrayIndexKey (since v1.0.0) --- +**Diagnostic Category: `lint/suspicious/noArrayIndexKey`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-assign-in-expressions.md b/website/src/content/docs/linter/rules/no-assign-in-expressions.md index 6a9a1abb36a7..1f0d21f103d1 100644 --- a/website/src/content/docs/linter/rules/no-assign-in-expressions.md +++ b/website/src/content/docs/linter/rules/no-assign-in-expressions.md @@ -2,6 +2,7 @@ title: noAssignInExpressions (since v1.0.0) --- +**Diagnostic Category: `lint/suspicious/noAssignInExpressions`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-async-promise-executor.md b/website/src/content/docs/linter/rules/no-async-promise-executor.md index a72bd990df2e..63fb0480ab90 100644 --- a/website/src/content/docs/linter/rules/no-async-promise-executor.md +++ b/website/src/content/docs/linter/rules/no-async-promise-executor.md @@ -2,6 +2,7 @@ title: noAsyncPromiseExecutor (since v1.0.0) --- +**Diagnostic Category: `lint/suspicious/noAsyncPromiseExecutor`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-autofocus.md b/website/src/content/docs/linter/rules/no-autofocus.md index 040bd7b03a73..eb6ded7b50ce 100644 --- a/website/src/content/docs/linter/rules/no-autofocus.md +++ b/website/src/content/docs/linter/rules/no-autofocus.md @@ -2,6 +2,7 @@ title: noAutofocus (since v1.0.0) --- +**Diagnostic Category: `lint/a11y/noAutofocus`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-banned-types.md b/website/src/content/docs/linter/rules/no-banned-types.md index ce2ad675d1e3..256126066728 100644 --- a/website/src/content/docs/linter/rules/no-banned-types.md +++ b/website/src/content/docs/linter/rules/no-banned-types.md @@ -2,6 +2,7 @@ title: noBannedTypes (since v1.0.0) --- +**Diagnostic Category: `lint/complexity/noBannedTypes`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-blank-target.md b/website/src/content/docs/linter/rules/no-blank-target.md index bfc6cb94e575..aa5562f8b06f 100644 --- a/website/src/content/docs/linter/rules/no-blank-target.md +++ b/website/src/content/docs/linter/rules/no-blank-target.md @@ -2,6 +2,7 @@ title: noBlankTarget (since v1.0.0) --- +**Diagnostic Category: `lint/a11y/noBlankTarget`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-catch-assign.md b/website/src/content/docs/linter/rules/no-catch-assign.md index 9a92df052f15..09aa2741c000 100644 --- a/website/src/content/docs/linter/rules/no-catch-assign.md +++ b/website/src/content/docs/linter/rules/no-catch-assign.md @@ -2,6 +2,7 @@ title: noCatchAssign (since v1.0.0) --- +**Diagnostic Category: `lint/suspicious/noCatchAssign`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-children-prop.md b/website/src/content/docs/linter/rules/no-children-prop.md index 431044d04731..3b979c2699d1 100644 --- a/website/src/content/docs/linter/rules/no-children-prop.md +++ b/website/src/content/docs/linter/rules/no-children-prop.md @@ -2,6 +2,7 @@ title: noChildrenProp (since v1.0.0) --- +**Diagnostic Category: `lint/correctness/noChildrenProp`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-class-assign.md b/website/src/content/docs/linter/rules/no-class-assign.md index 8a8ddb730f32..b99ec4fc098e 100644 --- a/website/src/content/docs/linter/rules/no-class-assign.md +++ b/website/src/content/docs/linter/rules/no-class-assign.md @@ -2,6 +2,7 @@ title: noClassAssign (since v1.0.0) --- +**Diagnostic Category: `lint/suspicious/noClassAssign`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-comma-operator.md b/website/src/content/docs/linter/rules/no-comma-operator.md index 72d5ab5fc3ec..491eebc97046 100644 --- a/website/src/content/docs/linter/rules/no-comma-operator.md +++ b/website/src/content/docs/linter/rules/no-comma-operator.md @@ -2,6 +2,7 @@ title: noCommaOperator (since v1.0.0) --- +**Diagnostic Category: `lint/style/noCommaOperator`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-comment-text.md b/website/src/content/docs/linter/rules/no-comment-text.md index 4050f89fc935..8f6c603f81a1 100644 --- a/website/src/content/docs/linter/rules/no-comment-text.md +++ b/website/src/content/docs/linter/rules/no-comment-text.md @@ -2,6 +2,7 @@ title: noCommentText (since v1.0.0) --- +**Diagnostic Category: `lint/suspicious/noCommentText`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-compare-neg-zero.md b/website/src/content/docs/linter/rules/no-compare-neg-zero.md index 574ae0c87f54..767ce49b4710 100644 --- a/website/src/content/docs/linter/rules/no-compare-neg-zero.md +++ b/website/src/content/docs/linter/rules/no-compare-neg-zero.md @@ -2,6 +2,7 @@ title: noCompareNegZero (since v1.0.0) --- +**Diagnostic Category: `lint/suspicious/noCompareNegZero`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-confusing-labels.md b/website/src/content/docs/linter/rules/no-confusing-labels.md index ac095867912f..b8749ab43f64 100644 --- a/website/src/content/docs/linter/rules/no-confusing-labels.md +++ b/website/src/content/docs/linter/rules/no-confusing-labels.md @@ -2,6 +2,7 @@ title: noConfusingLabels (since v1.0.0) --- +**Diagnostic Category: `lint/suspicious/noConfusingLabels`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-confusing-void-type.md b/website/src/content/docs/linter/rules/no-confusing-void-type.md index 9ae65a0d9a12..4344cb6db069 100644 --- a/website/src/content/docs/linter/rules/no-confusing-void-type.md +++ b/website/src/content/docs/linter/rules/no-confusing-void-type.md @@ -2,6 +2,7 @@ title: noConfusingVoidType (since v1.2.0) --- +**Diagnostic Category: `lint/nursery/noConfusingVoidType`** :::caution This rule is part of the [nursery](/linter/rules/#nursery) group. diff --git a/website/src/content/docs/linter/rules/no-console-log.md b/website/src/content/docs/linter/rules/no-console-log.md index 3d2ab04751a2..1685a99b525a 100644 --- a/website/src/content/docs/linter/rules/no-console-log.md +++ b/website/src/content/docs/linter/rules/no-console-log.md @@ -2,6 +2,7 @@ title: noConsoleLog (since v1.0.0) --- +**Diagnostic Category: `lint/suspicious/noConsoleLog`** Disallow the use of `console.log` diff --git a/website/src/content/docs/linter/rules/no-const-assign.md b/website/src/content/docs/linter/rules/no-const-assign.md index 6002fd4194f2..7745f0fae261 100644 --- a/website/src/content/docs/linter/rules/no-const-assign.md +++ b/website/src/content/docs/linter/rules/no-const-assign.md @@ -2,6 +2,7 @@ title: noConstAssign (since v1.0.0) --- +**Diagnostic Category: `lint/correctness/noConstAssign`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-const-enum.md b/website/src/content/docs/linter/rules/no-const-enum.md index d5b41dd287f3..fbeee311f57d 100644 --- a/website/src/content/docs/linter/rules/no-const-enum.md +++ b/website/src/content/docs/linter/rules/no-const-enum.md @@ -2,6 +2,7 @@ title: noConstEnum (since v1.0.0) --- +**Diagnostic Category: `lint/suspicious/noConstEnum`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-constant-condition.md b/website/src/content/docs/linter/rules/no-constant-condition.md index a987daac6d1f..4b96e103364d 100644 --- a/website/src/content/docs/linter/rules/no-constant-condition.md +++ b/website/src/content/docs/linter/rules/no-constant-condition.md @@ -2,6 +2,7 @@ title: noConstantCondition (since v1.0.0) --- +**Diagnostic Category: `lint/correctness/noConstantCondition`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-constructor-return.md b/website/src/content/docs/linter/rules/no-constructor-return.md index 3786614e1b10..d1133e523c13 100644 --- a/website/src/content/docs/linter/rules/no-constructor-return.md +++ b/website/src/content/docs/linter/rules/no-constructor-return.md @@ -2,6 +2,7 @@ title: noConstructorReturn (since v1.0.0) --- +**Diagnostic Category: `lint/correctness/noConstructorReturn`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-control-characters-in-regex.md b/website/src/content/docs/linter/rules/no-control-characters-in-regex.md index 06b5be282bed..aadb779037e9 100644 --- a/website/src/content/docs/linter/rules/no-control-characters-in-regex.md +++ b/website/src/content/docs/linter/rules/no-control-characters-in-regex.md @@ -2,6 +2,7 @@ title: noControlCharactersInRegex (since v1.0.0) --- +**Diagnostic Category: `lint/suspicious/noControlCharactersInRegex`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-dangerously-set-inner-html-with-children.md b/website/src/content/docs/linter/rules/no-dangerously-set-inner-html-with-children.md index 47b0cca4f974..a6e21fb65b8d 100644 --- a/website/src/content/docs/linter/rules/no-dangerously-set-inner-html-with-children.md +++ b/website/src/content/docs/linter/rules/no-dangerously-set-inner-html-with-children.md @@ -2,6 +2,7 @@ title: noDangerouslySetInnerHtmlWithChildren (since v1.0.0) --- +**Diagnostic Category: `lint/security/noDangerouslySetInnerHtmlWithChildren`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-dangerously-set-inner-html.md b/website/src/content/docs/linter/rules/no-dangerously-set-inner-html.md index e28ab5afd6ef..936670862244 100644 --- a/website/src/content/docs/linter/rules/no-dangerously-set-inner-html.md +++ b/website/src/content/docs/linter/rules/no-dangerously-set-inner-html.md @@ -2,6 +2,7 @@ title: noDangerouslySetInnerHtml (since v1.0.0) --- +**Diagnostic Category: `lint/security/noDangerouslySetInnerHtml`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-debugger.md b/website/src/content/docs/linter/rules/no-debugger.md index 371d9d81adf5..5b49047ef79f 100644 --- a/website/src/content/docs/linter/rules/no-debugger.md +++ b/website/src/content/docs/linter/rules/no-debugger.md @@ -2,6 +2,7 @@ title: noDebugger (since v1.0.0) --- +**Diagnostic Category: `lint/suspicious/noDebugger`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-delete.md b/website/src/content/docs/linter/rules/no-delete.md index ab78bd172a1f..dd4a05ef2aa0 100644 --- a/website/src/content/docs/linter/rules/no-delete.md +++ b/website/src/content/docs/linter/rules/no-delete.md @@ -2,6 +2,7 @@ title: noDelete (since v1.0.0) --- +**Diagnostic Category: `lint/performance/noDelete`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-distracting-elements.md b/website/src/content/docs/linter/rules/no-distracting-elements.md index a8458f1cae4f..ac4466ab1275 100644 --- a/website/src/content/docs/linter/rules/no-distracting-elements.md +++ b/website/src/content/docs/linter/rules/no-distracting-elements.md @@ -2,6 +2,7 @@ title: noDistractingElements (since v1.0.0) --- +**Diagnostic Category: `lint/a11y/noDistractingElements`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-double-equals.md b/website/src/content/docs/linter/rules/no-double-equals.md index de9654b04739..34075049450e 100644 --- a/website/src/content/docs/linter/rules/no-double-equals.md +++ b/website/src/content/docs/linter/rules/no-double-equals.md @@ -2,6 +2,7 @@ title: noDoubleEquals (since v1.0.0) --- +**Diagnostic Category: `lint/suspicious/noDoubleEquals`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-duplicate-case.md b/website/src/content/docs/linter/rules/no-duplicate-case.md index ad78da4f2478..8a1d64cb7071 100644 --- a/website/src/content/docs/linter/rules/no-duplicate-case.md +++ b/website/src/content/docs/linter/rules/no-duplicate-case.md @@ -2,6 +2,7 @@ title: noDuplicateCase (since v1.0.0) --- +**Diagnostic Category: `lint/suspicious/noDuplicateCase`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-duplicate-class-members.md b/website/src/content/docs/linter/rules/no-duplicate-class-members.md index 604a67f75500..c5954a44daa3 100644 --- a/website/src/content/docs/linter/rules/no-duplicate-class-members.md +++ b/website/src/content/docs/linter/rules/no-duplicate-class-members.md @@ -2,6 +2,7 @@ title: noDuplicateClassMembers (since v1.0.0) --- +**Diagnostic Category: `lint/suspicious/noDuplicateClassMembers`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-duplicate-json-keys.md b/website/src/content/docs/linter/rules/no-duplicate-json-keys.md index d6facc97adf7..dd2444edb932 100644 --- a/website/src/content/docs/linter/rules/no-duplicate-json-keys.md +++ b/website/src/content/docs/linter/rules/no-duplicate-json-keys.md @@ -2,6 +2,7 @@ title: noDuplicateJsonKeys (since v1.0.0) --- +**Diagnostic Category: `lint/nursery/noDuplicateJsonKeys`** :::caution This rule is part of the [nursery](/linter/rules/#nursery) group. diff --git a/website/src/content/docs/linter/rules/no-duplicate-jsx-props.md b/website/src/content/docs/linter/rules/no-duplicate-jsx-props.md index e5a5b2d04578..3248918e5948 100644 --- a/website/src/content/docs/linter/rules/no-duplicate-jsx-props.md +++ b/website/src/content/docs/linter/rules/no-duplicate-jsx-props.md @@ -2,6 +2,7 @@ title: noDuplicateJsxProps (since v1.0.0) --- +**Diagnostic Category: `lint/suspicious/noDuplicateJsxProps`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-duplicate-object-keys.md b/website/src/content/docs/linter/rules/no-duplicate-object-keys.md index 1d23f179adfd..c847fe58813b 100644 --- a/website/src/content/docs/linter/rules/no-duplicate-object-keys.md +++ b/website/src/content/docs/linter/rules/no-duplicate-object-keys.md @@ -2,6 +2,7 @@ title: noDuplicateObjectKeys (since v1.0.0) --- +**Diagnostic Category: `lint/suspicious/noDuplicateObjectKeys`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-duplicate-parameters.md b/website/src/content/docs/linter/rules/no-duplicate-parameters.md index acccbcce96a5..916cc60d1710 100644 --- a/website/src/content/docs/linter/rules/no-duplicate-parameters.md +++ b/website/src/content/docs/linter/rules/no-duplicate-parameters.md @@ -2,6 +2,7 @@ title: noDuplicateParameters (since v1.0.0) --- +**Diagnostic Category: `lint/suspicious/noDuplicateParameters`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-empty-interface.md b/website/src/content/docs/linter/rules/no-empty-interface.md index 65b625215933..8e832b30265a 100644 --- a/website/src/content/docs/linter/rules/no-empty-interface.md +++ b/website/src/content/docs/linter/rules/no-empty-interface.md @@ -2,6 +2,7 @@ title: noEmptyInterface (since v1.0.0) --- +**Diagnostic Category: `lint/suspicious/noEmptyInterface`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-empty-pattern.md b/website/src/content/docs/linter/rules/no-empty-pattern.md index d0cfafcd12de..7407eea12ce1 100644 --- a/website/src/content/docs/linter/rules/no-empty-pattern.md +++ b/website/src/content/docs/linter/rules/no-empty-pattern.md @@ -2,6 +2,7 @@ title: noEmptyPattern (since v1.0.0) --- +**Diagnostic Category: `lint/correctness/noEmptyPattern`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-excessive-complexity.md b/website/src/content/docs/linter/rules/no-excessive-complexity.md index d64981a01ecb..1ef780d5a47f 100644 --- a/website/src/content/docs/linter/rules/no-excessive-complexity.md +++ b/website/src/content/docs/linter/rules/no-excessive-complexity.md @@ -2,6 +2,7 @@ title: noExcessiveComplexity (since v1.0.0) --- +**Diagnostic Category: `lint/nursery/noExcessiveComplexity`** :::caution This rule is part of the [nursery](/linter/rules/#nursery) group. diff --git a/website/src/content/docs/linter/rules/no-explicit-any.md b/website/src/content/docs/linter/rules/no-explicit-any.md index 6126294f465a..ad3a1aed61af 100644 --- a/website/src/content/docs/linter/rules/no-explicit-any.md +++ b/website/src/content/docs/linter/rules/no-explicit-any.md @@ -2,6 +2,7 @@ title: noExplicitAny (since v1.0.0) --- +**Diagnostic Category: `lint/suspicious/noExplicitAny`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-extra-boolean-cast.md b/website/src/content/docs/linter/rules/no-extra-boolean-cast.md index 35e0abb20006..dfeaf7c4df64 100644 --- a/website/src/content/docs/linter/rules/no-extra-boolean-cast.md +++ b/website/src/content/docs/linter/rules/no-extra-boolean-cast.md @@ -2,6 +2,7 @@ title: noExtraBooleanCast (since v1.0.0) --- +**Diagnostic Category: `lint/complexity/noExtraBooleanCast`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-extra-non-null-assertion.md b/website/src/content/docs/linter/rules/no-extra-non-null-assertion.md index 469b3f768d6b..5c93293549ba 100644 --- a/website/src/content/docs/linter/rules/no-extra-non-null-assertion.md +++ b/website/src/content/docs/linter/rules/no-extra-non-null-assertion.md @@ -2,6 +2,7 @@ title: noExtraNonNullAssertion (since v1.0.0) --- +**Diagnostic Category: `lint/suspicious/noExtraNonNullAssertion`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-fallthrough-switch-clause.md b/website/src/content/docs/linter/rules/no-fallthrough-switch-clause.md index 200b9b0f3a33..54ca777ef0d6 100644 --- a/website/src/content/docs/linter/rules/no-fallthrough-switch-clause.md +++ b/website/src/content/docs/linter/rules/no-fallthrough-switch-clause.md @@ -2,6 +2,7 @@ title: noFallthroughSwitchClause (since v1.0.0) --- +**Diagnostic Category: `lint/nursery/noFallthroughSwitchClause`** :::caution This rule is part of the [nursery](/linter/rules/#nursery) group. diff --git a/website/src/content/docs/linter/rules/no-for-each.md b/website/src/content/docs/linter/rules/no-for-each.md index f3709e64656a..ec69a0e05c54 100644 --- a/website/src/content/docs/linter/rules/no-for-each.md +++ b/website/src/content/docs/linter/rules/no-for-each.md @@ -2,6 +2,7 @@ title: noForEach (since v1.0.0) --- +**Diagnostic Category: `lint/complexity/noForEach`** Prefer `for...of` statement instead of `Array.forEach`. diff --git a/website/src/content/docs/linter/rules/no-function-assign.md b/website/src/content/docs/linter/rules/no-function-assign.md index 6d58700d1a6b..18fb2ed1d877 100644 --- a/website/src/content/docs/linter/rules/no-function-assign.md +++ b/website/src/content/docs/linter/rules/no-function-assign.md @@ -2,6 +2,7 @@ title: noFunctionAssign (since v1.0.0) --- +**Diagnostic Category: `lint/suspicious/noFunctionAssign`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-global-is-finite.md b/website/src/content/docs/linter/rules/no-global-is-finite.md index 828438974112..fd777f18b98f 100644 --- a/website/src/content/docs/linter/rules/no-global-is-finite.md +++ b/website/src/content/docs/linter/rules/no-global-is-finite.md @@ -2,6 +2,7 @@ title: noGlobalIsFinite (since v1.0.0) --- +**Diagnostic Category: `lint/nursery/noGlobalIsFinite`** :::caution This rule is part of the [nursery](/linter/rules/#nursery) group. diff --git a/website/src/content/docs/linter/rules/no-global-is-nan.md b/website/src/content/docs/linter/rules/no-global-is-nan.md index ee870c29f178..6b16b4c1f772 100644 --- a/website/src/content/docs/linter/rules/no-global-is-nan.md +++ b/website/src/content/docs/linter/rules/no-global-is-nan.md @@ -2,6 +2,7 @@ title: noGlobalIsNan (since v1.0.0) --- +**Diagnostic Category: `lint/nursery/noGlobalIsNan`** :::caution This rule is part of the [nursery](/linter/rules/#nursery) group. diff --git a/website/src/content/docs/linter/rules/no-global-object-calls.md b/website/src/content/docs/linter/rules/no-global-object-calls.md index 03183c7f53b0..a98e07c633b0 100644 --- a/website/src/content/docs/linter/rules/no-global-object-calls.md +++ b/website/src/content/docs/linter/rules/no-global-object-calls.md @@ -2,6 +2,7 @@ title: noGlobalObjectCalls (since v1.0.0) --- +**Diagnostic Category: `lint/correctness/noGlobalObjectCalls`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-header-scope.md b/website/src/content/docs/linter/rules/no-header-scope.md index 3404fd1d834b..d9d7d0495e70 100644 --- a/website/src/content/docs/linter/rules/no-header-scope.md +++ b/website/src/content/docs/linter/rules/no-header-scope.md @@ -2,6 +2,7 @@ title: noHeaderScope (since v1.0.0) --- +**Diagnostic Category: `lint/a11y/noHeaderScope`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-implicit-boolean.md b/website/src/content/docs/linter/rules/no-implicit-boolean.md index ce621892cf38..2a6e5048ae23 100644 --- a/website/src/content/docs/linter/rules/no-implicit-boolean.md +++ b/website/src/content/docs/linter/rules/no-implicit-boolean.md @@ -2,6 +2,7 @@ title: noImplicitBoolean (since v1.0.0) --- +**Diagnostic Category: `lint/style/noImplicitBoolean`** Disallow implicit `true` values on JSX boolean attributes diff --git a/website/src/content/docs/linter/rules/no-import-assign.md b/website/src/content/docs/linter/rules/no-import-assign.md index 750095c853b5..31c8bae246fe 100644 --- a/website/src/content/docs/linter/rules/no-import-assign.md +++ b/website/src/content/docs/linter/rules/no-import-assign.md @@ -2,6 +2,7 @@ title: noImportAssign (since v1.0.0) --- +**Diagnostic Category: `lint/suspicious/noImportAssign`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-inferrable-types.md b/website/src/content/docs/linter/rules/no-inferrable-types.md index 3204c287ca4d..da0b9032e47b 100644 --- a/website/src/content/docs/linter/rules/no-inferrable-types.md +++ b/website/src/content/docs/linter/rules/no-inferrable-types.md @@ -2,6 +2,7 @@ title: noInferrableTypes (since v1.0.0) --- +**Diagnostic Category: `lint/style/noInferrableTypes`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-inner-declarations.md b/website/src/content/docs/linter/rules/no-inner-declarations.md index ff57ddb2e395..02082a0955d3 100644 --- a/website/src/content/docs/linter/rules/no-inner-declarations.md +++ b/website/src/content/docs/linter/rules/no-inner-declarations.md @@ -2,6 +2,7 @@ title: noInnerDeclarations (since v1.0.0) --- +**Diagnostic Category: `lint/correctness/noInnerDeclarations`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-invalid-constructor-super.md b/website/src/content/docs/linter/rules/no-invalid-constructor-super.md index 34fececb6fa2..a02813833a8d 100644 --- a/website/src/content/docs/linter/rules/no-invalid-constructor-super.md +++ b/website/src/content/docs/linter/rules/no-invalid-constructor-super.md @@ -2,6 +2,7 @@ title: noInvalidConstructorSuper (since v1.0.0) --- +**Diagnostic Category: `lint/correctness/noInvalidConstructorSuper`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-label-var.md b/website/src/content/docs/linter/rules/no-label-var.md index 789a5fd8e365..61c33e071ffd 100644 --- a/website/src/content/docs/linter/rules/no-label-var.md +++ b/website/src/content/docs/linter/rules/no-label-var.md @@ -2,6 +2,7 @@ title: noLabelVar (since v1.0.0) --- +**Diagnostic Category: `lint/suspicious/noLabelVar`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-misleading-instantiator.md b/website/src/content/docs/linter/rules/no-misleading-instantiator.md index c40c5c57a008..f945bb4c8822 100644 --- a/website/src/content/docs/linter/rules/no-misleading-instantiator.md +++ b/website/src/content/docs/linter/rules/no-misleading-instantiator.md @@ -2,6 +2,7 @@ title: noMisleadingInstantiator (since vnext) --- +**Diagnostic Category: `lint/nursery/noMisleadingInstantiator`** :::caution This rule is part of the [nursery](/linter/rules/#nursery) group. diff --git a/website/src/content/docs/linter/rules/no-multiple-spaces-in-regular-expression-literals.md b/website/src/content/docs/linter/rules/no-multiple-spaces-in-regular-expression-literals.md index 814739da4ea7..48a8717752c1 100644 --- a/website/src/content/docs/linter/rules/no-multiple-spaces-in-regular-expression-literals.md +++ b/website/src/content/docs/linter/rules/no-multiple-spaces-in-regular-expression-literals.md @@ -2,6 +2,7 @@ title: noMultipleSpacesInRegularExpressionLiterals (since v1.0.0) --- +**Diagnostic Category: `lint/complexity/noMultipleSpacesInRegularExpressionLiterals`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-namespace.md b/website/src/content/docs/linter/rules/no-namespace.md index 71418b9666e7..b0bec9b720a0 100644 --- a/website/src/content/docs/linter/rules/no-namespace.md +++ b/website/src/content/docs/linter/rules/no-namespace.md @@ -2,6 +2,7 @@ title: noNamespace (since v1.0.0) --- +**Diagnostic Category: `lint/style/noNamespace`** Disallow the use of TypeScript's `namespace`s. diff --git a/website/src/content/docs/linter/rules/no-negation-else.md b/website/src/content/docs/linter/rules/no-negation-else.md index 1d672d3ad68a..18de69b9a3ff 100644 --- a/website/src/content/docs/linter/rules/no-negation-else.md +++ b/website/src/content/docs/linter/rules/no-negation-else.md @@ -2,6 +2,7 @@ title: noNegationElse (since v1.0.0) --- +**Diagnostic Category: `lint/style/noNegationElse`** Disallow negation in the condition of an `if` statement if it has an `else` clause diff --git a/website/src/content/docs/linter/rules/no-new-symbol.md b/website/src/content/docs/linter/rules/no-new-symbol.md index 140ed6534185..4f9dd51b61a8 100644 --- a/website/src/content/docs/linter/rules/no-new-symbol.md +++ b/website/src/content/docs/linter/rules/no-new-symbol.md @@ -2,6 +2,7 @@ title: noNewSymbol (since v1.0.0) --- +**Diagnostic Category: `lint/correctness/noNewSymbol`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-non-null-assertion.md b/website/src/content/docs/linter/rules/no-non-null-assertion.md index a564f784285f..5defc3bf8da7 100644 --- a/website/src/content/docs/linter/rules/no-non-null-assertion.md +++ b/website/src/content/docs/linter/rules/no-non-null-assertion.md @@ -2,6 +2,7 @@ title: noNonNullAssertion (since v1.0.0) --- +**Diagnostic Category: `lint/style/noNonNullAssertion`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-noninteractive-element-to-interactive-role.md b/website/src/content/docs/linter/rules/no-noninteractive-element-to-interactive-role.md index d63314debe0d..22a3db19c34a 100644 --- a/website/src/content/docs/linter/rules/no-noninteractive-element-to-interactive-role.md +++ b/website/src/content/docs/linter/rules/no-noninteractive-element-to-interactive-role.md @@ -2,6 +2,7 @@ title: noNoninteractiveElementToInteractiveRole (since v1.0.0) --- +**Diagnostic Category: `lint/a11y/noNoninteractiveElementToInteractiveRole`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-noninteractive-tabindex.md b/website/src/content/docs/linter/rules/no-noninteractive-tabindex.md index d21d514d9f36..1564fa331c91 100644 --- a/website/src/content/docs/linter/rules/no-noninteractive-tabindex.md +++ b/website/src/content/docs/linter/rules/no-noninteractive-tabindex.md @@ -2,6 +2,7 @@ title: noNoninteractiveTabindex (since v1.0.0) --- +**Diagnostic Category: `lint/a11y/noNoninteractiveTabindex`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-nonoctal-decimal-escape.md b/website/src/content/docs/linter/rules/no-nonoctal-decimal-escape.md index 11cfad0f2cf4..155574603c2e 100644 --- a/website/src/content/docs/linter/rules/no-nonoctal-decimal-escape.md +++ b/website/src/content/docs/linter/rules/no-nonoctal-decimal-escape.md @@ -2,6 +2,7 @@ title: noNonoctalDecimalEscape (since v1.0.0) --- +**Diagnostic Category: `lint/correctness/noNonoctalDecimalEscape`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-parameter-assign.md b/website/src/content/docs/linter/rules/no-parameter-assign.md index 23e1c7e9bcd8..107901b9e2ac 100644 --- a/website/src/content/docs/linter/rules/no-parameter-assign.md +++ b/website/src/content/docs/linter/rules/no-parameter-assign.md @@ -2,6 +2,7 @@ title: noParameterAssign (since v1.0.0) --- +**Diagnostic Category: `lint/style/noParameterAssign`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-parameter-properties.md b/website/src/content/docs/linter/rules/no-parameter-properties.md index 3c439f141b9c..46ba238bce5d 100644 --- a/website/src/content/docs/linter/rules/no-parameter-properties.md +++ b/website/src/content/docs/linter/rules/no-parameter-properties.md @@ -2,6 +2,7 @@ title: noParameterProperties (since v1.0.0) --- +**Diagnostic Category: `lint/style/noParameterProperties`** Disallow the use of parameter properties in class constructors. diff --git a/website/src/content/docs/linter/rules/no-positive-tabindex.md b/website/src/content/docs/linter/rules/no-positive-tabindex.md index 997e6a806e51..3a527657ae2d 100644 --- a/website/src/content/docs/linter/rules/no-positive-tabindex.md +++ b/website/src/content/docs/linter/rules/no-positive-tabindex.md @@ -2,6 +2,7 @@ title: noPositiveTabindex (since v1.0.0) --- +**Diagnostic Category: `lint/a11y/noPositiveTabindex`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-precision-loss.md b/website/src/content/docs/linter/rules/no-precision-loss.md index 23ca079bdfda..51d3a845d000 100644 --- a/website/src/content/docs/linter/rules/no-precision-loss.md +++ b/website/src/content/docs/linter/rules/no-precision-loss.md @@ -2,6 +2,7 @@ title: noPrecisionLoss (since v1.0.0) --- +**Diagnostic Category: `lint/correctness/noPrecisionLoss`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-prototype-builtins.md b/website/src/content/docs/linter/rules/no-prototype-builtins.md index b8fd7f7554ef..5f2c48b3ddda 100644 --- a/website/src/content/docs/linter/rules/no-prototype-builtins.md +++ b/website/src/content/docs/linter/rules/no-prototype-builtins.md @@ -2,6 +2,7 @@ title: noPrototypeBuiltins (since v1.0.0) --- +**Diagnostic Category: `lint/suspicious/noPrototypeBuiltins`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-redeclare.md b/website/src/content/docs/linter/rules/no-redeclare.md index d4f3b523c77f..a151baaa2e2c 100644 --- a/website/src/content/docs/linter/rules/no-redeclare.md +++ b/website/src/content/docs/linter/rules/no-redeclare.md @@ -2,6 +2,7 @@ title: noRedeclare (since v1.0.0) --- +**Diagnostic Category: `lint/suspicious/noRedeclare`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-redundant-alt.md b/website/src/content/docs/linter/rules/no-redundant-alt.md index e55ddd9da0af..310cc545964b 100644 --- a/website/src/content/docs/linter/rules/no-redundant-alt.md +++ b/website/src/content/docs/linter/rules/no-redundant-alt.md @@ -2,6 +2,7 @@ title: noRedundantAlt (since v1.0.0) --- +**Diagnostic Category: `lint/a11y/noRedundantAlt`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-redundant-roles.md b/website/src/content/docs/linter/rules/no-redundant-roles.md index 85c360b93893..18f70eec5130 100644 --- a/website/src/content/docs/linter/rules/no-redundant-roles.md +++ b/website/src/content/docs/linter/rules/no-redundant-roles.md @@ -2,6 +2,7 @@ title: noRedundantRoles (since v1.0.0) --- +**Diagnostic Category: `lint/a11y/noRedundantRoles`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-redundant-use-strict.md b/website/src/content/docs/linter/rules/no-redundant-use-strict.md index 20ede69f84cf..d88cd0a24f13 100644 --- a/website/src/content/docs/linter/rules/no-redundant-use-strict.md +++ b/website/src/content/docs/linter/rules/no-redundant-use-strict.md @@ -2,6 +2,7 @@ title: noRedundantUseStrict (since v1.0.0) --- +**Diagnostic Category: `lint/suspicious/noRedundantUseStrict`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-render-return-value.md b/website/src/content/docs/linter/rules/no-render-return-value.md index c0d5fc8a4443..fd15c3cbcb5a 100644 --- a/website/src/content/docs/linter/rules/no-render-return-value.md +++ b/website/src/content/docs/linter/rules/no-render-return-value.md @@ -2,6 +2,7 @@ title: noRenderReturnValue (since v1.0.0) --- +**Diagnostic Category: `lint/correctness/noRenderReturnValue`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-restricted-globals.md b/website/src/content/docs/linter/rules/no-restricted-globals.md index 78ed0bea44b2..6eaac7f4ac2d 100644 --- a/website/src/content/docs/linter/rules/no-restricted-globals.md +++ b/website/src/content/docs/linter/rules/no-restricted-globals.md @@ -2,6 +2,7 @@ title: noRestrictedGlobals (since v1.0.0) --- +**Diagnostic Category: `lint/style/noRestrictedGlobals`** This rule allows you to specify global variable names that you don’t want to use in your application. diff --git a/website/src/content/docs/linter/rules/no-self-assign.md b/website/src/content/docs/linter/rules/no-self-assign.md index 97144a66fe61..3145e9e59f6e 100644 --- a/website/src/content/docs/linter/rules/no-self-assign.md +++ b/website/src/content/docs/linter/rules/no-self-assign.md @@ -2,6 +2,7 @@ title: noSelfAssign (since v1.0.0) --- +**Diagnostic Category: `lint/correctness/noSelfAssign`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-self-compare.md b/website/src/content/docs/linter/rules/no-self-compare.md index c5fba145d41f..eb2270bc02a3 100644 --- a/website/src/content/docs/linter/rules/no-self-compare.md +++ b/website/src/content/docs/linter/rules/no-self-compare.md @@ -2,6 +2,7 @@ title: noSelfCompare (since v1.0.0) --- +**Diagnostic Category: `lint/suspicious/noSelfCompare`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-setter-return.md b/website/src/content/docs/linter/rules/no-setter-return.md index ac290e91810a..0f9845e80047 100644 --- a/website/src/content/docs/linter/rules/no-setter-return.md +++ b/website/src/content/docs/linter/rules/no-setter-return.md @@ -2,6 +2,7 @@ title: noSetterReturn (since v1.0.0) --- +**Diagnostic Category: `lint/correctness/noSetterReturn`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-shadow-restricted-names.md b/website/src/content/docs/linter/rules/no-shadow-restricted-names.md index e251584e32b9..12bfc02b2750 100644 --- a/website/src/content/docs/linter/rules/no-shadow-restricted-names.md +++ b/website/src/content/docs/linter/rules/no-shadow-restricted-names.md @@ -2,6 +2,7 @@ title: noShadowRestrictedNames (since v1.0.0) --- +**Diagnostic Category: `lint/suspicious/noShadowRestrictedNames`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-shouty-constants.md b/website/src/content/docs/linter/rules/no-shouty-constants.md index 87cbc2ba37fe..ecf2ac7efd1f 100644 --- a/website/src/content/docs/linter/rules/no-shouty-constants.md +++ b/website/src/content/docs/linter/rules/no-shouty-constants.md @@ -2,6 +2,7 @@ title: noShoutyConstants (since v1.0.0) --- +**Diagnostic Category: `lint/style/noShoutyConstants`** Disallow the use of constants which its value is the upper-case version of its name. diff --git a/website/src/content/docs/linter/rules/no-sparse-array.md b/website/src/content/docs/linter/rules/no-sparse-array.md index 30f458dc9b17..8fe85dca1daf 100644 --- a/website/src/content/docs/linter/rules/no-sparse-array.md +++ b/website/src/content/docs/linter/rules/no-sparse-array.md @@ -2,6 +2,7 @@ title: noSparseArray (since v1.0.0) --- +**Diagnostic Category: `lint/suspicious/noSparseArray`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-static-only-class.md b/website/src/content/docs/linter/rules/no-static-only-class.md index af9c548ad022..343c670c450a 100644 --- a/website/src/content/docs/linter/rules/no-static-only-class.md +++ b/website/src/content/docs/linter/rules/no-static-only-class.md @@ -2,6 +2,7 @@ title: noStaticOnlyClass (since v1.0.0) --- +**Diagnostic Category: `lint/complexity/noStaticOnlyClass`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-string-case-mismatch.md b/website/src/content/docs/linter/rules/no-string-case-mismatch.md index b8ee59003ad7..78bea9bc7700 100644 --- a/website/src/content/docs/linter/rules/no-string-case-mismatch.md +++ b/website/src/content/docs/linter/rules/no-string-case-mismatch.md @@ -2,6 +2,7 @@ title: noStringCaseMismatch (since v1.0.0) --- +**Diagnostic Category: `lint/correctness/noStringCaseMismatch`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-svg-without-title.md b/website/src/content/docs/linter/rules/no-svg-without-title.md index 70f029fd4d41..6f8c376926b2 100644 --- a/website/src/content/docs/linter/rules/no-svg-without-title.md +++ b/website/src/content/docs/linter/rules/no-svg-without-title.md @@ -2,6 +2,7 @@ title: noSvgWithoutTitle (since v1.0.0) --- +**Diagnostic Category: `lint/a11y/noSvgWithoutTitle`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-switch-declarations.md b/website/src/content/docs/linter/rules/no-switch-declarations.md index 4013218ccdb5..d27ddb9e15f3 100644 --- a/website/src/content/docs/linter/rules/no-switch-declarations.md +++ b/website/src/content/docs/linter/rules/no-switch-declarations.md @@ -2,6 +2,7 @@ title: noSwitchDeclarations (since v1.0.0) --- +**Diagnostic Category: `lint/correctness/noSwitchDeclarations`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-undeclared-variables.md b/website/src/content/docs/linter/rules/no-undeclared-variables.md index fc1071f485a8..340efd837fe3 100644 --- a/website/src/content/docs/linter/rules/no-undeclared-variables.md +++ b/website/src/content/docs/linter/rules/no-undeclared-variables.md @@ -2,6 +2,7 @@ title: noUndeclaredVariables (since v1.0.0) --- +**Diagnostic Category: `lint/correctness/noUndeclaredVariables`** Prevents the usage of variables that haven't been declared inside the document. diff --git a/website/src/content/docs/linter/rules/no-unnecessary-continue.md b/website/src/content/docs/linter/rules/no-unnecessary-continue.md index 6dd4937da188..da8421cd5b55 100644 --- a/website/src/content/docs/linter/rules/no-unnecessary-continue.md +++ b/website/src/content/docs/linter/rules/no-unnecessary-continue.md @@ -2,6 +2,7 @@ title: noUnnecessaryContinue (since v1.0.0) --- +**Diagnostic Category: `lint/correctness/noUnnecessaryContinue`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-unreachable-super.md b/website/src/content/docs/linter/rules/no-unreachable-super.md index a8e03c25e5e1..ca6343278b9b 100644 --- a/website/src/content/docs/linter/rules/no-unreachable-super.md +++ b/website/src/content/docs/linter/rules/no-unreachable-super.md @@ -2,6 +2,7 @@ title: noUnreachableSuper (since v1.0.0) --- +**Diagnostic Category: `lint/correctness/noUnreachableSuper`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-unreachable.md b/website/src/content/docs/linter/rules/no-unreachable.md index d37da6a4d057..9ee23e4fe601 100644 --- a/website/src/content/docs/linter/rules/no-unreachable.md +++ b/website/src/content/docs/linter/rules/no-unreachable.md @@ -2,6 +2,7 @@ title: noUnreachable (since v1.0.0) --- +**Diagnostic Category: `lint/correctness/noUnreachable`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-unsafe-declaration-merging.md b/website/src/content/docs/linter/rules/no-unsafe-declaration-merging.md index 3ddabbc3afa5..985dd3d0c8bf 100644 --- a/website/src/content/docs/linter/rules/no-unsafe-declaration-merging.md +++ b/website/src/content/docs/linter/rules/no-unsafe-declaration-merging.md @@ -2,6 +2,7 @@ title: noUnsafeDeclarationMerging (since v1.0.0) --- +**Diagnostic Category: `lint/suspicious/noUnsafeDeclarationMerging`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-unsafe-finally.md b/website/src/content/docs/linter/rules/no-unsafe-finally.md index a1bcfffa63b9..74824a3ea466 100644 --- a/website/src/content/docs/linter/rules/no-unsafe-finally.md +++ b/website/src/content/docs/linter/rules/no-unsafe-finally.md @@ -2,6 +2,7 @@ title: noUnsafeFinally (since v1.0.0) --- +**Diagnostic Category: `lint/correctness/noUnsafeFinally`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-unsafe-negation.md b/website/src/content/docs/linter/rules/no-unsafe-negation.md index ed6d33a8b60a..c1e751615d54 100644 --- a/website/src/content/docs/linter/rules/no-unsafe-negation.md +++ b/website/src/content/docs/linter/rules/no-unsafe-negation.md @@ -2,6 +2,7 @@ title: noUnsafeNegation (since v1.0.0) --- +**Diagnostic Category: `lint/suspicious/noUnsafeNegation`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-unsafe-optional-chaining.md b/website/src/content/docs/linter/rules/no-unsafe-optional-chaining.md index 6ca3acf61930..b7dc9fd1397a 100644 --- a/website/src/content/docs/linter/rules/no-unsafe-optional-chaining.md +++ b/website/src/content/docs/linter/rules/no-unsafe-optional-chaining.md @@ -2,6 +2,7 @@ title: noUnsafeOptionalChaining (since v1.0.0) --- +**Diagnostic Category: `lint/correctness/noUnsafeOptionalChaining`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-unused-labels.md b/website/src/content/docs/linter/rules/no-unused-labels.md index 3655217f46b4..b8d579bb4c3f 100644 --- a/website/src/content/docs/linter/rules/no-unused-labels.md +++ b/website/src/content/docs/linter/rules/no-unused-labels.md @@ -2,6 +2,7 @@ title: noUnusedLabels (since v1.0.0) --- +**Diagnostic Category: `lint/correctness/noUnusedLabels`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-unused-template-literal.md b/website/src/content/docs/linter/rules/no-unused-template-literal.md index fe22400158b4..672f22f7e202 100644 --- a/website/src/content/docs/linter/rules/no-unused-template-literal.md +++ b/website/src/content/docs/linter/rules/no-unused-template-literal.md @@ -2,6 +2,7 @@ title: noUnusedTemplateLiteral (since v1.0.0) --- +**Diagnostic Category: `lint/style/noUnusedTemplateLiteral`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-unused-variables.md b/website/src/content/docs/linter/rules/no-unused-variables.md index 1d081897bf3c..1fa703cae504 100644 --- a/website/src/content/docs/linter/rules/no-unused-variables.md +++ b/website/src/content/docs/linter/rules/no-unused-variables.md @@ -2,6 +2,7 @@ title: noUnusedVariables (since v1.0.0) --- +**Diagnostic Category: `lint/correctness/noUnusedVariables`** Disallow unused variables. diff --git a/website/src/content/docs/linter/rules/no-useless-catch.md b/website/src/content/docs/linter/rules/no-useless-catch.md index 14eecd739a6d..6c8939499bc8 100644 --- a/website/src/content/docs/linter/rules/no-useless-catch.md +++ b/website/src/content/docs/linter/rules/no-useless-catch.md @@ -2,6 +2,7 @@ title: noUselessCatch (since v1.0.0) --- +**Diagnostic Category: `lint/complexity/noUselessCatch`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-useless-constructor.md b/website/src/content/docs/linter/rules/no-useless-constructor.md index 3da69ecba874..c802aaa76b53 100644 --- a/website/src/content/docs/linter/rules/no-useless-constructor.md +++ b/website/src/content/docs/linter/rules/no-useless-constructor.md @@ -2,6 +2,7 @@ title: noUselessConstructor (since v1.0.0) --- +**Diagnostic Category: `lint/complexity/noUselessConstructor`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-useless-empty-export.md b/website/src/content/docs/linter/rules/no-useless-empty-export.md index 7636c42e36fc..d06d89c72912 100644 --- a/website/src/content/docs/linter/rules/no-useless-empty-export.md +++ b/website/src/content/docs/linter/rules/no-useless-empty-export.md @@ -2,6 +2,7 @@ title: noUselessEmptyExport (since v1.0.0) --- +**Diagnostic Category: `lint/complexity/noUselessEmptyExport`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-useless-fragments.md b/website/src/content/docs/linter/rules/no-useless-fragments.md index d6a5b72ebb5a..3929bd00e0c4 100644 --- a/website/src/content/docs/linter/rules/no-useless-fragments.md +++ b/website/src/content/docs/linter/rules/no-useless-fragments.md @@ -2,6 +2,7 @@ title: noUselessFragments (since v1.0.0) --- +**Diagnostic Category: `lint/complexity/noUselessFragments`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-useless-label.md b/website/src/content/docs/linter/rules/no-useless-label.md index 16b444cbb690..85f9431673a7 100644 --- a/website/src/content/docs/linter/rules/no-useless-label.md +++ b/website/src/content/docs/linter/rules/no-useless-label.md @@ -2,6 +2,7 @@ title: noUselessLabel (since v1.0.0) --- +**Diagnostic Category: `lint/complexity/noUselessLabel`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-useless-rename.md b/website/src/content/docs/linter/rules/no-useless-rename.md index 04d3853f6dce..f38027d48415 100644 --- a/website/src/content/docs/linter/rules/no-useless-rename.md +++ b/website/src/content/docs/linter/rules/no-useless-rename.md @@ -2,6 +2,7 @@ title: noUselessRename (since v1.0.0) --- +**Diagnostic Category: `lint/complexity/noUselessRename`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-useless-switch-case.md b/website/src/content/docs/linter/rules/no-useless-switch-case.md index abac939f526f..e351ac35fb2a 100644 --- a/website/src/content/docs/linter/rules/no-useless-switch-case.md +++ b/website/src/content/docs/linter/rules/no-useless-switch-case.md @@ -2,6 +2,7 @@ title: noUselessSwitchCase (since v1.0.0) --- +**Diagnostic Category: `lint/complexity/noUselessSwitchCase`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-useless-this-alias.md b/website/src/content/docs/linter/rules/no-useless-this-alias.md index 3d6e9752ab6c..70a1afb28879 100644 --- a/website/src/content/docs/linter/rules/no-useless-this-alias.md +++ b/website/src/content/docs/linter/rules/no-useless-this-alias.md @@ -2,6 +2,7 @@ title: noUselessThisAlias (since v1.0.0) --- +**Diagnostic Category: `lint/complexity/noUselessThisAlias`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-useless-type-constraint.md b/website/src/content/docs/linter/rules/no-useless-type-constraint.md index 0c59ff68d36b..453ec4d49735 100644 --- a/website/src/content/docs/linter/rules/no-useless-type-constraint.md +++ b/website/src/content/docs/linter/rules/no-useless-type-constraint.md @@ -2,6 +2,7 @@ title: noUselessTypeConstraint (since v1.0.0) --- +**Diagnostic Category: `lint/complexity/noUselessTypeConstraint`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-var.md b/website/src/content/docs/linter/rules/no-var.md index 96007d244a4d..c10e4275c548 100644 --- a/website/src/content/docs/linter/rules/no-var.md +++ b/website/src/content/docs/linter/rules/no-var.md @@ -2,6 +2,7 @@ title: noVar (since v1.0.0) --- +**Diagnostic Category: `lint/style/noVar`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-void-elements-with-children.md b/website/src/content/docs/linter/rules/no-void-elements-with-children.md index 70d7ca2c4ccd..77370d40a4cb 100644 --- a/website/src/content/docs/linter/rules/no-void-elements-with-children.md +++ b/website/src/content/docs/linter/rules/no-void-elements-with-children.md @@ -2,6 +2,7 @@ title: noVoidElementsWithChildren (since v1.0.0) --- +**Diagnostic Category: `lint/correctness/noVoidElementsWithChildren`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-void-type-return.md b/website/src/content/docs/linter/rules/no-void-type-return.md index 5fe6eb7e676a..d76b4957b674 100644 --- a/website/src/content/docs/linter/rules/no-void-type-return.md +++ b/website/src/content/docs/linter/rules/no-void-type-return.md @@ -2,6 +2,7 @@ title: noVoidTypeReturn (since v1.0.0) --- +**Diagnostic Category: `lint/correctness/noVoidTypeReturn`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/no-void.md b/website/src/content/docs/linter/rules/no-void.md index eb25634a632e..077c5bc5b5c4 100644 --- a/website/src/content/docs/linter/rules/no-void.md +++ b/website/src/content/docs/linter/rules/no-void.md @@ -2,6 +2,7 @@ title: noVoid (since v1.0.0) --- +**Diagnostic Category: `lint/nursery/noVoid`** :::caution This rule is part of the [nursery](/linter/rules/#nursery) group. diff --git a/website/src/content/docs/linter/rules/no-with.md b/website/src/content/docs/linter/rules/no-with.md index 4056dac87c95..7a02510dc7aa 100644 --- a/website/src/content/docs/linter/rules/no-with.md +++ b/website/src/content/docs/linter/rules/no-with.md @@ -2,6 +2,7 @@ title: noWith (since v1.0.0) --- +**Diagnostic Category: `lint/complexity/noWith`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/use-alt-text.md b/website/src/content/docs/linter/rules/use-alt-text.md index 6795e140b32e..b4b7aefd7da4 100644 --- a/website/src/content/docs/linter/rules/use-alt-text.md +++ b/website/src/content/docs/linter/rules/use-alt-text.md @@ -2,6 +2,7 @@ title: useAltText (since v1.0.0) --- +**Diagnostic Category: `lint/a11y/useAltText`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/use-anchor-content.md b/website/src/content/docs/linter/rules/use-anchor-content.md index 9d6e596d1275..0f08c18d3ff4 100644 --- a/website/src/content/docs/linter/rules/use-anchor-content.md +++ b/website/src/content/docs/linter/rules/use-anchor-content.md @@ -2,6 +2,7 @@ title: useAnchorContent (since v1.0.0) --- +**Diagnostic Category: `lint/a11y/useAnchorContent`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/use-aria-props-for-role.md b/website/src/content/docs/linter/rules/use-aria-props-for-role.md index f3bbcf7f8ca0..b911e98f1071 100644 --- a/website/src/content/docs/linter/rules/use-aria-props-for-role.md +++ b/website/src/content/docs/linter/rules/use-aria-props-for-role.md @@ -2,6 +2,7 @@ title: useAriaPropsForRole (since v1.0.0) --- +**Diagnostic Category: `lint/a11y/useAriaPropsForRole`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/use-arrow-function.md b/website/src/content/docs/linter/rules/use-arrow-function.md index bc4f92ee31d2..9cc31a50b230 100644 --- a/website/src/content/docs/linter/rules/use-arrow-function.md +++ b/website/src/content/docs/linter/rules/use-arrow-function.md @@ -2,6 +2,7 @@ title: useArrowFunction (since v1.0.0) --- +**Diagnostic Category: `lint/nursery/useArrowFunction`** :::caution This rule is part of the [nursery](/linter/rules/#nursery) group. diff --git a/website/src/content/docs/linter/rules/use-block-statements.md b/website/src/content/docs/linter/rules/use-block-statements.md index e6cf737b571a..9a9a4c0956b4 100644 --- a/website/src/content/docs/linter/rules/use-block-statements.md +++ b/website/src/content/docs/linter/rules/use-block-statements.md @@ -2,6 +2,7 @@ title: useBlockStatements (since v1.0.0) --- +**Diagnostic Category: `lint/style/useBlockStatements`** Requires following curly brace conventions. JavaScript allows the omission of curly braces when a block contains only one statement. However, it is considered by many to be best practice to never omit curly braces around blocks, even when they are optional, because it can lead to bugs and reduces code clarity. diff --git a/website/src/content/docs/linter/rules/use-button-type.md b/website/src/content/docs/linter/rules/use-button-type.md index f5cf6f1d17c6..222a23f03a46 100644 --- a/website/src/content/docs/linter/rules/use-button-type.md +++ b/website/src/content/docs/linter/rules/use-button-type.md @@ -2,6 +2,7 @@ title: useButtonType (since v1.0.0) --- +**Diagnostic Category: `lint/a11y/useButtonType`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/use-collapsed-else-if.md b/website/src/content/docs/linter/rules/use-collapsed-else-if.md index e5b23d2b12c3..eaa665989f40 100644 --- a/website/src/content/docs/linter/rules/use-collapsed-else-if.md +++ b/website/src/content/docs/linter/rules/use-collapsed-else-if.md @@ -2,6 +2,7 @@ title: useCollapsedElseIf (since v1.1.0) --- +**Diagnostic Category: `lint/nursery/useCollapsedElseIf`** :::caution This rule is part of the [nursery](/linter/rules/#nursery) group. diff --git a/website/src/content/docs/linter/rules/use-const.md b/website/src/content/docs/linter/rules/use-const.md index 7f78a7a14902..593a35e7f271 100644 --- a/website/src/content/docs/linter/rules/use-const.md +++ b/website/src/content/docs/linter/rules/use-const.md @@ -2,6 +2,7 @@ title: useConst (since v1.0.0) --- +**Diagnostic Category: `lint/style/useConst`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/use-default-parameter-last.md b/website/src/content/docs/linter/rules/use-default-parameter-last.md index 5e2992d42482..45039304e61b 100644 --- a/website/src/content/docs/linter/rules/use-default-parameter-last.md +++ b/website/src/content/docs/linter/rules/use-default-parameter-last.md @@ -2,6 +2,7 @@ title: useDefaultParameterLast (since v1.0.0) --- +**Diagnostic Category: `lint/style/useDefaultParameterLast`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/use-default-switch-clause-last.md b/website/src/content/docs/linter/rules/use-default-switch-clause-last.md index 9e018af84d8c..106a052b8b0f 100644 --- a/website/src/content/docs/linter/rules/use-default-switch-clause-last.md +++ b/website/src/content/docs/linter/rules/use-default-switch-clause-last.md @@ -2,6 +2,7 @@ title: useDefaultSwitchClauseLast (since v1.0.0) --- +**Diagnostic Category: `lint/suspicious/useDefaultSwitchClauseLast`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/use-enum-initializers.md b/website/src/content/docs/linter/rules/use-enum-initializers.md index 3a74f02a45e4..212bcb3fef44 100644 --- a/website/src/content/docs/linter/rules/use-enum-initializers.md +++ b/website/src/content/docs/linter/rules/use-enum-initializers.md @@ -2,6 +2,7 @@ title: useEnumInitializers (since v1.0.0) --- +**Diagnostic Category: `lint/style/useEnumInitializers`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/use-exhaustive-dependencies.md b/website/src/content/docs/linter/rules/use-exhaustive-dependencies.md index ba47f462e1c7..67e1886bec8f 100644 --- a/website/src/content/docs/linter/rules/use-exhaustive-dependencies.md +++ b/website/src/content/docs/linter/rules/use-exhaustive-dependencies.md @@ -2,6 +2,7 @@ title: useExhaustiveDependencies (since v1.0.0) --- +**Diagnostic Category: `lint/nursery/useExhaustiveDependencies`** :::caution This rule is part of the [nursery](/linter/rules/#nursery) group. diff --git a/website/src/content/docs/linter/rules/use-exponentiation-operator.md b/website/src/content/docs/linter/rules/use-exponentiation-operator.md index f2f43f91b985..77551eabf8c8 100644 --- a/website/src/content/docs/linter/rules/use-exponentiation-operator.md +++ b/website/src/content/docs/linter/rules/use-exponentiation-operator.md @@ -2,6 +2,7 @@ title: useExponentiationOperator (since v1.0.0) --- +**Diagnostic Category: `lint/style/useExponentiationOperator`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/use-flat-map.md b/website/src/content/docs/linter/rules/use-flat-map.md index 77568b8a1e69..386f309f021d 100644 --- a/website/src/content/docs/linter/rules/use-flat-map.md +++ b/website/src/content/docs/linter/rules/use-flat-map.md @@ -2,6 +2,7 @@ title: useFlatMap (since v1.0.0) --- +**Diagnostic Category: `lint/complexity/useFlatMap`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/use-fragment-syntax.md b/website/src/content/docs/linter/rules/use-fragment-syntax.md index 9e9748d0d8e5..47cee7c12203 100644 --- a/website/src/content/docs/linter/rules/use-fragment-syntax.md +++ b/website/src/content/docs/linter/rules/use-fragment-syntax.md @@ -2,6 +2,7 @@ title: useFragmentSyntax (since v1.0.0) --- +**Diagnostic Category: `lint/style/useFragmentSyntax`** This rule enforces the use of `<>...` over `...`. diff --git a/website/src/content/docs/linter/rules/use-getter-return.md b/website/src/content/docs/linter/rules/use-getter-return.md index b56223e49187..8d52bd106769 100644 --- a/website/src/content/docs/linter/rules/use-getter-return.md +++ b/website/src/content/docs/linter/rules/use-getter-return.md @@ -2,6 +2,7 @@ title: useGetterReturn (since v1.0.0) --- +**Diagnostic Category: `lint/suspicious/useGetterReturn`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/use-grouped-type-import.md b/website/src/content/docs/linter/rules/use-grouped-type-import.md index 6c44398e62e2..b2997d325f5a 100644 --- a/website/src/content/docs/linter/rules/use-grouped-type-import.md +++ b/website/src/content/docs/linter/rules/use-grouped-type-import.md @@ -2,6 +2,7 @@ title: useGroupedTypeImport (since v1.0.0) --- +**Diagnostic Category: `lint/nursery/useGroupedTypeImport`** :::caution This rule is part of the [nursery](/linter/rules/#nursery) group. diff --git a/website/src/content/docs/linter/rules/use-heading-content.md b/website/src/content/docs/linter/rules/use-heading-content.md index bde9e997a0d6..aa505eff990d 100644 --- a/website/src/content/docs/linter/rules/use-heading-content.md +++ b/website/src/content/docs/linter/rules/use-heading-content.md @@ -2,6 +2,7 @@ title: useHeadingContent (since v1.0.0) --- +**Diagnostic Category: `lint/a11y/useHeadingContent`** Enforce that heading elements (h1, h2, etc.) have content and that the content is accessible to screen readers. Accessible means that it is not hidden using the aria-hidden prop. diff --git a/website/src/content/docs/linter/rules/use-hook-at-top-level.md b/website/src/content/docs/linter/rules/use-hook-at-top-level.md index 4db47cceedf2..41dc2ed3851e 100644 --- a/website/src/content/docs/linter/rules/use-hook-at-top-level.md +++ b/website/src/content/docs/linter/rules/use-hook-at-top-level.md @@ -2,6 +2,7 @@ title: useHookAtTopLevel (since v1.0.0) --- +**Diagnostic Category: `lint/nursery/useHookAtTopLevel`** :::caution This rule is part of the [nursery](/linter/rules/#nursery) group. diff --git a/website/src/content/docs/linter/rules/use-html-lang.md b/website/src/content/docs/linter/rules/use-html-lang.md index e888806434ee..12ea4a3ba0ba 100644 --- a/website/src/content/docs/linter/rules/use-html-lang.md +++ b/website/src/content/docs/linter/rules/use-html-lang.md @@ -2,6 +2,7 @@ title: useHtmlLang (since v1.0.0) --- +**Diagnostic Category: `lint/a11y/useHtmlLang`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/use-iframe-title.md b/website/src/content/docs/linter/rules/use-iframe-title.md index 073f154f777f..b082d82ecd09 100644 --- a/website/src/content/docs/linter/rules/use-iframe-title.md +++ b/website/src/content/docs/linter/rules/use-iframe-title.md @@ -2,6 +2,7 @@ title: useIframeTitle (since v1.0.0) --- +**Diagnostic Category: `lint/a11y/useIframeTitle`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/use-import-restrictions.md b/website/src/content/docs/linter/rules/use-import-restrictions.md index e919c79f3591..b61220680151 100644 --- a/website/src/content/docs/linter/rules/use-import-restrictions.md +++ b/website/src/content/docs/linter/rules/use-import-restrictions.md @@ -2,6 +2,7 @@ title: useImportRestrictions (since v1.0.0) --- +**Diagnostic Category: `lint/nursery/useImportRestrictions`** :::caution This rule is part of the [nursery](/linter/rules/#nursery) group. diff --git a/website/src/content/docs/linter/rules/use-is-array.md b/website/src/content/docs/linter/rules/use-is-array.md index d132857f856c..3aaa73ba75fe 100644 --- a/website/src/content/docs/linter/rules/use-is-array.md +++ b/website/src/content/docs/linter/rules/use-is-array.md @@ -2,6 +2,7 @@ title: useIsArray (since v1.0.0) --- +**Diagnostic Category: `lint/nursery/useIsArray`** :::caution This rule is part of the [nursery](/linter/rules/#nursery) group. diff --git a/website/src/content/docs/linter/rules/use-is-nan.md b/website/src/content/docs/linter/rules/use-is-nan.md index b34a4077424d..80999e184246 100644 --- a/website/src/content/docs/linter/rules/use-is-nan.md +++ b/website/src/content/docs/linter/rules/use-is-nan.md @@ -2,6 +2,7 @@ title: useIsNan (since v1.0.0) --- +**Diagnostic Category: `lint/correctness/useIsNan`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/use-key-with-click-events.md b/website/src/content/docs/linter/rules/use-key-with-click-events.md index 4d93c6eba146..1f5c487397d0 100644 --- a/website/src/content/docs/linter/rules/use-key-with-click-events.md +++ b/website/src/content/docs/linter/rules/use-key-with-click-events.md @@ -2,6 +2,7 @@ title: useKeyWithClickEvents (since v1.0.0) --- +**Diagnostic Category: `lint/a11y/useKeyWithClickEvents`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/use-key-with-mouse-events.md b/website/src/content/docs/linter/rules/use-key-with-mouse-events.md index 74afc0588935..0811b878735f 100644 --- a/website/src/content/docs/linter/rules/use-key-with-mouse-events.md +++ b/website/src/content/docs/linter/rules/use-key-with-mouse-events.md @@ -2,6 +2,7 @@ title: useKeyWithMouseEvents (since v1.0.0) --- +**Diagnostic Category: `lint/a11y/useKeyWithMouseEvents`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/use-literal-enum-members.md b/website/src/content/docs/linter/rules/use-literal-enum-members.md index d6c27d075787..69469e7f3f7a 100644 --- a/website/src/content/docs/linter/rules/use-literal-enum-members.md +++ b/website/src/content/docs/linter/rules/use-literal-enum-members.md @@ -2,6 +2,7 @@ title: useLiteralEnumMembers (since v1.0.0) --- +**Diagnostic Category: `lint/style/useLiteralEnumMembers`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/use-literal-keys.md b/website/src/content/docs/linter/rules/use-literal-keys.md index 5bda41ebd089..e3600d87050b 100644 --- a/website/src/content/docs/linter/rules/use-literal-keys.md +++ b/website/src/content/docs/linter/rules/use-literal-keys.md @@ -2,6 +2,7 @@ title: useLiteralKeys (since v1.0.0) --- +**Diagnostic Category: `lint/complexity/useLiteralKeys`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/use-media-caption.md b/website/src/content/docs/linter/rules/use-media-caption.md index c0a71b4cf029..60939b1bb289 100644 --- a/website/src/content/docs/linter/rules/use-media-caption.md +++ b/website/src/content/docs/linter/rules/use-media-caption.md @@ -2,6 +2,7 @@ title: useMediaCaption (since v1.0.0) --- +**Diagnostic Category: `lint/a11y/useMediaCaption`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/use-namespace-keyword.md b/website/src/content/docs/linter/rules/use-namespace-keyword.md index 7ddcc90e599a..5e6853aa9293 100644 --- a/website/src/content/docs/linter/rules/use-namespace-keyword.md +++ b/website/src/content/docs/linter/rules/use-namespace-keyword.md @@ -2,6 +2,7 @@ title: useNamespaceKeyword (since v1.0.0) --- +**Diagnostic Category: `lint/suspicious/useNamespaceKeyword`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/use-naming-convention.md b/website/src/content/docs/linter/rules/use-naming-convention.md index a6b5a17edd98..a85f583a9328 100644 --- a/website/src/content/docs/linter/rules/use-naming-convention.md +++ b/website/src/content/docs/linter/rules/use-naming-convention.md @@ -2,6 +2,7 @@ title: useNamingConvention (since v1.0.0) --- +**Diagnostic Category: `lint/style/useNamingConvention`** Enforce naming conventions for everything across a codebase. diff --git a/website/src/content/docs/linter/rules/use-numeric-literals.md b/website/src/content/docs/linter/rules/use-numeric-literals.md index def9401b7652..9bba75b75211 100644 --- a/website/src/content/docs/linter/rules/use-numeric-literals.md +++ b/website/src/content/docs/linter/rules/use-numeric-literals.md @@ -2,6 +2,7 @@ title: useNumericLiterals (since v1.0.0) --- +**Diagnostic Category: `lint/style/useNumericLiterals`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/use-optional-chain.md b/website/src/content/docs/linter/rules/use-optional-chain.md index 54b84cf5ce15..c905c7669faf 100644 --- a/website/src/content/docs/linter/rules/use-optional-chain.md +++ b/website/src/content/docs/linter/rules/use-optional-chain.md @@ -2,6 +2,7 @@ title: useOptionalChain (since v1.0.0) --- +**Diagnostic Category: `lint/complexity/useOptionalChain`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/use-self-closing-elements.md b/website/src/content/docs/linter/rules/use-self-closing-elements.md index 4bbb14f41165..2b5ce80b93af 100644 --- a/website/src/content/docs/linter/rules/use-self-closing-elements.md +++ b/website/src/content/docs/linter/rules/use-self-closing-elements.md @@ -2,6 +2,7 @@ title: useSelfClosingElements (since v1.0.0) --- +**Diagnostic Category: `lint/style/useSelfClosingElements`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/use-shorthand-array-type.md b/website/src/content/docs/linter/rules/use-shorthand-array-type.md index 8dec8759eaac..0b257a7c9839 100644 --- a/website/src/content/docs/linter/rules/use-shorthand-array-type.md +++ b/website/src/content/docs/linter/rules/use-shorthand-array-type.md @@ -2,6 +2,7 @@ title: useShorthandArrayType (since v1.0.0) --- +**Diagnostic Category: `lint/style/useShorthandArrayType`** When expressing array types, this rule promotes the usage of `T[]` shorthand instead of `Array`. diff --git a/website/src/content/docs/linter/rules/use-simple-number-keys.md b/website/src/content/docs/linter/rules/use-simple-number-keys.md index 66204905588b..acca96775485 100644 --- a/website/src/content/docs/linter/rules/use-simple-number-keys.md +++ b/website/src/content/docs/linter/rules/use-simple-number-keys.md @@ -2,6 +2,7 @@ title: useSimpleNumberKeys (since v1.0.0) --- +**Diagnostic Category: `lint/complexity/useSimpleNumberKeys`** Disallow number literal object member names which are not base10 or uses underscore as separator diff --git a/website/src/content/docs/linter/rules/use-simplified-logic-expression.md b/website/src/content/docs/linter/rules/use-simplified-logic-expression.md index 08b4091e2ae5..eb23e359bc42 100644 --- a/website/src/content/docs/linter/rules/use-simplified-logic-expression.md +++ b/website/src/content/docs/linter/rules/use-simplified-logic-expression.md @@ -2,6 +2,7 @@ title: useSimplifiedLogicExpression (since v1.0.0) --- +**Diagnostic Category: `lint/complexity/useSimplifiedLogicExpression`** Discard redundant terms from logical expressions. diff --git a/website/src/content/docs/linter/rules/use-single-case-statement.md b/website/src/content/docs/linter/rules/use-single-case-statement.md index 4ef090b1611a..28bf29738c73 100644 --- a/website/src/content/docs/linter/rules/use-single-case-statement.md +++ b/website/src/content/docs/linter/rules/use-single-case-statement.md @@ -2,6 +2,7 @@ title: useSingleCaseStatement (since v1.0.0) --- +**Diagnostic Category: `lint/style/useSingleCaseStatement`** Enforces switch clauses have a single statement, emits a quick fix wrapping the statements in a block. diff --git a/website/src/content/docs/linter/rules/use-single-var-declarator.md b/website/src/content/docs/linter/rules/use-single-var-declarator.md index 61e621c7ce5a..356de65fa1f5 100644 --- a/website/src/content/docs/linter/rules/use-single-var-declarator.md +++ b/website/src/content/docs/linter/rules/use-single-var-declarator.md @@ -2,6 +2,7 @@ title: useSingleVarDeclarator (since v1.0.0) --- +**Diagnostic Category: `lint/style/useSingleVarDeclarator`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/use-template.md b/website/src/content/docs/linter/rules/use-template.md index da7dfd6b889e..df4a69abfd0d 100644 --- a/website/src/content/docs/linter/rules/use-template.md +++ b/website/src/content/docs/linter/rules/use-template.md @@ -2,6 +2,7 @@ title: useTemplate (since v1.0.0) --- +**Diagnostic Category: `lint/style/useTemplate`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/use-valid-anchor.md b/website/src/content/docs/linter/rules/use-valid-anchor.md index 08c2924655fc..3c43cd16266c 100644 --- a/website/src/content/docs/linter/rules/use-valid-anchor.md +++ b/website/src/content/docs/linter/rules/use-valid-anchor.md @@ -2,6 +2,7 @@ title: useValidAnchor (since v1.0.0) --- +**Diagnostic Category: `lint/a11y/useValidAnchor`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/use-valid-aria-props.md b/website/src/content/docs/linter/rules/use-valid-aria-props.md index 870bafe1fd8c..90190093e563 100644 --- a/website/src/content/docs/linter/rules/use-valid-aria-props.md +++ b/website/src/content/docs/linter/rules/use-valid-aria-props.md @@ -2,6 +2,7 @@ title: useValidAriaProps (since v1.0.0) --- +**Diagnostic Category: `lint/a11y/useValidAriaProps`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/use-valid-aria-values.md b/website/src/content/docs/linter/rules/use-valid-aria-values.md index 80c784f7377d..8faa1102596d 100644 --- a/website/src/content/docs/linter/rules/use-valid-aria-values.md +++ b/website/src/content/docs/linter/rules/use-valid-aria-values.md @@ -2,6 +2,7 @@ title: useValidAriaValues (since v1.0.0) --- +**Diagnostic Category: `lint/a11y/useValidAriaValues`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/use-valid-for-direction.md b/website/src/content/docs/linter/rules/use-valid-for-direction.md index bc8a2de57738..5d8c2b7580b2 100644 --- a/website/src/content/docs/linter/rules/use-valid-for-direction.md +++ b/website/src/content/docs/linter/rules/use-valid-for-direction.md @@ -2,6 +2,7 @@ title: useValidForDirection (since v1.0.0) --- +**Diagnostic Category: `lint/correctness/useValidForDirection`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/use-valid-lang.md b/website/src/content/docs/linter/rules/use-valid-lang.md index 4fe659c2c1f3..a1752d2f04fa 100644 --- a/website/src/content/docs/linter/rules/use-valid-lang.md +++ b/website/src/content/docs/linter/rules/use-valid-lang.md @@ -2,6 +2,7 @@ title: useValidLang (since v1.0.0) --- +**Diagnostic Category: `lint/a11y/useValidLang`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/use-valid-typeof.md b/website/src/content/docs/linter/rules/use-valid-typeof.md index a9f2b75e89f2..8b2a689371ee 100644 --- a/website/src/content/docs/linter/rules/use-valid-typeof.md +++ b/website/src/content/docs/linter/rules/use-valid-typeof.md @@ -2,6 +2,7 @@ title: useValidTypeof (since v1.0.0) --- +**Diagnostic Category: `lint/suspicious/useValidTypeof`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/use-while.md b/website/src/content/docs/linter/rules/use-while.md index a68245c75144..1caf9f653d2d 100644 --- a/website/src/content/docs/linter/rules/use-while.md +++ b/website/src/content/docs/linter/rules/use-while.md @@ -2,6 +2,7 @@ title: useWhile (since v1.0.0) --- +**Diagnostic Category: `lint/style/useWhile`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/website/src/content/docs/linter/rules/use-yield.md b/website/src/content/docs/linter/rules/use-yield.md index 37b3d631b8d6..27e62042526d 100644 --- a/website/src/content/docs/linter/rules/use-yield.md +++ b/website/src/content/docs/linter/rules/use-yield.md @@ -2,6 +2,7 @@ title: useYield (since v1.0.0) --- +**Diagnostic Category: `lint/correctness/useYield`** :::note This rule is recommended by Biome. A diagnostic error will appear when linting your code. diff --git a/xtask/lintdoc/src/main.rs b/xtask/lintdoc/src/main.rs index 9518948f2a5b..4a61d3b9e21b 100644 --- a/xtask/lintdoc/src/main.rs +++ b/xtask/lintdoc/src/main.rs @@ -234,6 +234,9 @@ fn generate_rule( writeln!(content, "---")?; writeln!(content)?; + write!(content, "**Diagnostic Category: `lint/{group}/{rule}`**")?; + writeln!(content)?; + writeln!(content)?; if is_recommended {