Skip to content

规则来源

¥Biome exclusive rules

¥Rules from other sources

@mysticatea/eslint-plugin rule nameBiome 规则名称
no-this-in-staticnoThisInStatic(受启发)
Clippy 规则名称Biome 规则名称
approx_constantnoApproximativeNumericConstant(受启发)
collapsible_else_ifuseCollapsedElseIf
eq_opnoSelfCompare
flat_map_identitynoFlatMapIdentity
if_not_elsenoNegationElse
lossy_float_literalnoPrecisionLoss
map_flattenuseFlatMap
match_str_case_mismatchnoStringCaseMismatch
min_maxnoConstantMathMinMaxClamp
misrefactored_assign_opnoMisrefactoredShorthandAssign
needless_for_eachnoForEach
redundant_elsenoUselessElse(受启发)
self_assignmentnoSelfAssign
ESLint 规则名称Biome 规则名称
constructor-supernoInvalidConstructorSuper
curlyuseBlockStatements
default-caseuseDefaultSwitchClause
default-case-lastuseDefaultSwitchClauseLast
default-param-lastuseDefaultParameterLast
dot-notationuseLiteralKeys
eqeqeqnoDoubleEquals
for-directionuseValidForDirection
getter-returnuseGetterReturn
no-array-constructoruseArrayLiterals
no-async-promise-executornoAsyncPromiseExecutor
no-case-declarationsnoSwitchDeclarations
no-class-assignnoClassAssign
no-compare-neg-zeronoCompareNegZero
no-cond-assignnoAssignInExpressions(受启发)
no-consolenoConsole
no-const-assignnoConstAssign
no-constant-conditionnoConstantCondition
no-constructor-returnnoConstructorReturn
no-control-regexnoControlCharactersInRegex
no-debuggernoDebugger
no-dupe-argsnoDuplicateParameters
no-dupe-class-membersnoDuplicateClassMembers
no-dupe-else-ifnoDuplicateElseIf
no-dupe-keysnoDuplicateObjectKeys
no-duplicate-casenoDuplicateCase
no-else-returnnoUselessElse(受启发)
no-emptynoEmptyBlockStatements
no-empty-character-classnoEmptyCharacterClassInRegex
no-empty-functionnoEmptyBlockStatements
no-empty-patternnoEmptyPattern
no-empty-static-blocknoEmptyBlockStatements
no-evalnoGlobalEval
no-ex-assignnoCatchAssign
no-extra-boolean-castnoExtraBooleanCast
no-extra-labelnoUselessLabel
no-fallthroughnoFallthroughSwitchClause
no-func-assignnoFunctionAssign
no-global-assignnoGlobalAssign
no-import-assignnoImportAssign
no-inner-declarationsnoInnerDeclarations
no-irregular-whitespacenoIrregularWhitespace
no-label-varnoLabelVar
no-labelsnoConfusingLabels(受启发)
no-lone-blocksnoUselessLoneBlockStatements
no-lonely-ifuseCollapsedElseIf
no-loss-of-precisionnoPrecisionLoss
no-misleading-character-classnoMisleadingCharacterClass
no-negated-conditionnoNegationElse
no-new-native-nonconstructornoInvalidBuiltinInstantiation
no-new-symbolnoNewSymbol
no-new-wrappersuseConsistentBuiltinInstantiation
no-nonoctal-decimal-escapenoNonoctalDecimalEscape
no-obj-callsnoGlobalObjectCalls
no-param-reassignnoParameterAssign
no-prototype-builtinsnoPrototypeBuiltins
no-redeclarenoRedeclare
no-regex-spacesnoMultipleSpacesInRegularExpressionLiterals
no-restricted-globalsnoRestrictedGlobals
no-restricted-importsnoRestrictedImports
no-secrets/no-secretsnoSecrets(受启发)
no-self-assignnoSelfAssign
no-self-comparenoSelfCompare
no-sequencesnoCommaOperator
no-setter-returnnoSetterReturn
no-shadow-restricted-namesnoShadowRestrictedNames
no-sparse-arraysnoSparseArray
no-this-before-supernoUnreachableSuper
no-throw-literaluseThrowOnlyError(受启发)
no-undefnoUndeclaredVariables
no-undef-initnoUselessUndefinedInitialization
no-unneeded-ternarynoUselessTernary
no-unreachablenoUnreachable
no-unsafe-finallynoUnsafeFinally
no-unsafe-negationnoUnsafeNegation
no-unsafe-optional-chainingnoUnsafeOptionalChaining
no-unused-labelsnoUnusedLabels
no-unused-private-class-membersnoUnusedPrivateClassMembers
no-unused-varsnoUnusedVariables
no-use-before-definenoInvalidUseBeforeDeclaration
no-useless-catchnoUselessCatch
no-useless-concatnoUselessStringConcat
no-useless-constructornoUselessConstructor
no-useless-escapenoUselessEscapeInRegex
no-useless-renamenoUselessRename
no-varnoVar
no-voidnoVoid
no-withnoWith
one-varuseSingleVarDeclarator
operator-assignmentuseShorthandAssign
prefer-arrow-callbackuseArrowFunction(受启发)
prefer-constuseConst
prefer-exponentiation-operatoruseExponentiationOperator
prefer-numeric-literalsuseNumericLiterals
prefer-regex-literalsuseRegexLiterals
prefer-rest-paramsnoArguments(受启发)
prefer-templateuseTemplate
require-awaituseAwait
require-yielduseYield
use-isnanuseIsNan
valid-typeofuseValidTypeof
yodanoYodaExpression
GraphQL-ESLint 规则名称Biome 规则名称
no-duplicate-fieldsnoDuplicatedFields
require-deprecation-reasonuseDeprecatedReason
Stylelint 规则名称Biome 规则名称
block-no-emptynoEmptyBlock
declaration-block-no-duplicate-custom-propertiesnoDuplicateCustomProperties
declaration-block-no-shorthand-property-overridesnoShorthandPropertyOverrides
font-family-no-duplicate-namesnoDuplicateFontNames
font-family-no-missing-generic-family-keyworduseGenericFontNames
function-linear-gradient-no-nonstandard-directionnoInvalidDirectionInLinearGradient
function-no-unknownnoUnknownFunction
keyframe-block-no-duplicate-selectorsnoDuplicateSelectorsKeyframeBlock
keyframe-declaration-no-importantnoImportantInKeyframe
media-feature-name-no-unknownnoUnknownMediaFeatureName
named-grid-areas-no-invalidnoInvalidGridAreas
no-duplicate-at-import-rulesnoDuplicateAtImportRules(受启发)
no-invalid-position-at-import-rulenoInvalidPositionAtImportRule
no-irregular-whitespacenoIrregularWhitespace
property-no-unknownnoUnknownProperty
selector-anb-no-unmatchablenoUnmatchableAnbSelector
selector-pseudo-class-no-unknownnoUnknownPseudoClass
selector-pseudo-element-no-unknownnoUnknownPseudoElement
unit-no-unknownnoUnknownUnit
eslint-plugin-barrel-files 规则名称Biome 规则名称
avoid-barrel-filesnoBarrelFile(受启发)
avoid-namespace-importnoNamespaceImport
avoid-re-export-allnoReExportAll
eslint-plugin-import 规则名称Biome 规则名称
no-commonjsnoCommonJs(受启发)
no-default-exportnoDefaultExport
no-nodejs-modulesnoNodejsModules
eslint-plugin-import-access 规则名称Biome 规则名称
eslint-plugin-import-accessuseImportRestrictions(受启发)
eslint-plugin-jest 规则名称Biome 规则名称
max-nested-describenoExcessiveNestedTestSuites
no-disabled-testsnoSkippedTests(受启发)
no-done-callbacknoDoneCallback(受启发)
no-duplicate-hooksnoDuplicateTestHooks(受启发)
no-exportnoExportsInTest(受启发)
no-focused-testsnoFocusedTests(受启发)
no-standalone-expectnoMisplacedAssertion(受启发)
eslint-plugin-jsx-a11y 规则名称Biome 规则名称
alt-textuseAltText
anchor-has-contentuseAnchorContent
anchor-is-validuseValidAnchor
aria-activedescendant-has-tabindexuseAriaActivedescendantWithTabindex
aria-propsuseValidAriaProps
aria-proptypesuseValidAriaValues
aria-roleuseValidAriaRole
aria-unsupported-elementsnoAriaUnsupportedElements
autocomplete-validuseValidAutocomplete
click-events-have-key-eventsuseKeyWithClickEvents
heading-has-contentuseHeadingContent
html-has-languseHtmlLang
iframe-has-titleuseIframeTitle
img-redundant-altnoRedundantAlt
interactive-supports-focususeFocusableInteractive
label-has-associated-controlnoLabelWithoutControl
languseValidLang
media-has-captionuseMediaCaption
mouse-events-have-key-eventsuseKeyWithMouseEvents
no-access-keynoAccessKey(受启发)
no-aria-hidden-on-focusablenoAriaHiddenOnFocusable
no-autofocusnoAutofocus
no-distracting-elementsnoDistractingElements
no-interactive-element-to-noninteractive-rolenoInteractiveElementToNoninteractiveRole
no-noninteractive-element-to-interactive-rolenoNoninteractiveElementToInteractiveRole
no-noninteractive-tabindexnoNoninteractiveTabindex
no-redundant-rolesnoRedundantRoles
no-static-element-interactionsnoStaticElementInteractions
prefer-tag-over-roleuseSemanticElements
role-has-required-aria-propsuseAriaPropsForRole
role-supports-aria-propsuseAriaPropsSupportedByRole
scopenoHeaderScope
tabindex-no-positivenoPositiveTabindex
eslint-plugin-react 规则名称Biome 规则名称
button-has-typeuseButtonType
jsx-boolean-valuenoImplicitBoolean(受启发)
jsx-curly-brace-presenceuseConsistentCurlyBraces(受启发)
jsx-fragmentsuseFragmentSyntax
jsx-keyuseJsxKeyInIterable
jsx-no-comment-textnodesnoCommentText
jsx-no-duplicate-propsnoDuplicateJsxProps
jsx-no-target-blanknoBlankTarget
jsx-no-useless-fragmentnoUselessFragments
no-array-index-keynoArrayIndexKey(受启发)
no-children-propnoChildrenProp
no-dangernoDangerouslySetInnerHtml
no-danger-with-childrennoDangerouslySetInnerHtmlWithChildren
void-dom-elements-no-childrennoVoidElementsWithChildren
eslint-plugin-react-hooks 规则名称Biome 规则名称
exhaustive-depsuseExhaustiveDependencies(受启发)
rules-of-hooksuseHookAtTopLevel
eslint-plugin-solid 规则名称Biome 规则名称
no-react-specific-propsnoReactSpecificProps(受启发)
eslint-plugin-sonarjs 规则名称Biome 规则名称
cognitive-complexitynoExcessiveCognitiveComplexity(受启发)
prefer-whileuseWhile
eslint-plugin-stylistic 规则名称Biome 规则名称
jsx-self-closing-compuseSelfClosingElements(受启发)
eslint-plugin-unicorn 规则名称Biome 规则名称
error-messageuseErrorMessage
explicit-length-checkuseExplicitLengthCheck
filename-caseuseFilenamingConvention(受启发)
new-for-builtinsnoInvalidBuiltinInstantiation
no-array-for-eachnoForEach(受启发)
no-for-loopuseForOf
no-instanceof-arrayuseIsArray
no-static-only-classnoStaticOnlyClass
no-thenablenoThenProperty
no-useless-switch-casenoUselessSwitchCase
prefer-array-flat-mapuseFlatMap
prefer-date-nowuseDateNow
prefer-node-protocoluseNodejsImportProtocol
prefer-number-propertiesuseNumberNamespace
prefer-string-slicenoSubstr
prefer-string-trim-start-enduseTrimStartEnd
require-number-to-fixed-digits-argumentuseNumberToFixedDigitsArgument
throw-new-erroruseThrowNewError
eslint-plugin-unused-imports 规则名称 ==Biome 规则名称
no-unused-importsnoUnusedImports(受启发)
no-unused-varsnoUnusedVariables
typescript-eslint 规则名称Biome 规则名称
adjacent-overload-signaturesuseAdjacentOverloadSignatures
array-typeuseConsistentArrayType
ban-typesnoBannedTypes(受启发)
consistent-type-exportsuseExportType(受启发)
consistent-type-importsuseImportType(受启发)
default-param-lastuseDefaultParameterLast
dot-notationuseLiteralKeys
explicit-member-accessibilityuseConsistentMemberAccessibility
naming-conventionuseNamingConvention(受启发)
no-dupe-class-membersnoDuplicateClassMembers
no-empty-functionnoEmptyBlockStatements
no-empty-interfacenoEmptyInterface(受启发)
no-explicit-anynoExplicitAny
no-extra-non-null-assertionnoExtraNonNullAssertion
no-extraneous-classnoStaticOnlyClass
no-inferrable-typesnoInferrableTypes
no-invalid-void-typenoConfusingVoidType
no-loss-of-precisionnoPrecisionLoss
no-misused-newnoMisleadingInstantiator
no-namespacenoNamespace
no-non-null-assertionnoNonNullAssertion
no-redeclarenoRedeclare
no-require-importsnoCommonJs
no-restricted-importsnoRestrictedImports
no-restricted-typesnoRestrictedTypes
no-this-aliasnoUselessThisAlias(受启发)
no-unnecessary-type-constraintnoUselessTypeConstraint
no-unsafe-declaration-mergingnoUnsafeDeclarationMerging
no-unused-varsnoUnusedVariables
no-use-before-definenoInvalidUseBeforeDeclaration
no-useless-constructornoUselessConstructor
no-useless-empty-exportnoUselessEmptyExport
only-throw-erroruseThrowOnlyError(受启发)
parameter-propertiesnoParameterProperties(受启发)
prefer-as-constuseAsConstAssertion
prefer-enum-initializersuseEnumInitializers
prefer-for-ofuseForOf
prefer-function-typeuseShorthandFunctionType
prefer-literal-enum-memberuseLiteralEnumMembers
prefer-namespace-keyworduseNamespaceKeyword
prefer-optional-chainuseOptionalChain
require-awaituseAwait