规则来源
将来自其他来源的 Lint 规则映射到 Biome 的页面
Biome 专属规则
- noAccumulatingSpread
- noConstEnum
- noDelete
- noDuplicateObjectKeys
- noDynamicNamespaceImportAccess
- noEmptyTypeParameters
- noEnum
- noEvolvingTypes
- noExportedImports
- noGlobalIsFinite
- noGlobalIsNan
- noImplicitAnyLet
- noInvalidNewBuiltin
- noRedundantUseStrict
- noRenderReturnValue
- noShoutyConstants
- noSuspiciousSemicolonInJsx
- noSvgWithoutTitle
- noUnnecessaryContinue
- noUnusedFunctionParameters
- noUnusedTemplateLiteral
- noUselessStringRaw
- noValueAtRule
- noVoidTypeReturn
- useImportExtensions
- useNodeAssertStrict
- useShorthandArrayType
- useSimpleNumberKeys
- useSimplifiedLogicExpression
- useSingleCaseStatement
- useSortedClasses
- useStrictMode
- useTopLevelRegex
来自其他来源的规则
@mysticatea/eslint-plugin
| @mysticatea/eslint-plugin 规则名 | Biome 规则名 |
|---|---|
| no-this-in-static | noThisInStatic (inspired) |
@next/eslint-plugin-next
Clippy
ESLint
GraphQL-ESLint
| GraphQL-ESLint 规则名 | Biome 规则名 |
|---|---|
| no-duplicate-fields | noDuplicatedFields |
| require-deprecation-reason | useDeprecatedReason |
Stylelint
eslint-plugin-barrel-files
| eslint-plugin-barrel-files 规则名 | Biome 规则名 |
|---|---|
| avoid-barrel-files | noBarrelFile (inspired) |
| avoid-namespace-import | noNamespaceImport |
| avoid-re-export-all | noReExportAll |
eslint-plugin-import
| eslint-plugin-import 规则名 | Biome 规则名 |
|---|---|
| no-commonjs | noCommonJs (inspired) |
| no-default-export | noDefaultExport |
| no-extraneous-dependencies | noUndeclaredDependencies |
| no-nodejs-modules | noNodejsModules |
eslint-plugin-jest
| eslint-plugin-jest 规则名 | Biome 规则名 |
|---|---|
| max-nested-describe | noExcessiveNestedTestSuites |
| no-disabled-tests | noSkippedTests (inspired) |
| no-done-callback | noDoneCallback (inspired) |
| no-duplicate-hooks | noDuplicateTestHooks (inspired) |
| no-export | noExportsInTest (inspired) |
| no-focused-tests | noFocusedTests (inspired) |
| no-standalone-expect | noMisplacedAssertion (inspired) |
eslint-plugin-jsx-a11y
eslint-plugin-n
| eslint-plugin-n 规则名 | Biome 规则名 |
|---|---|
| no-process-env | noProcessEnv (inspired) |
eslint-plugin-no-secrets
| eslint-plugin-no-secrets 规则名 | Biome 规则名 |
|---|---|
| no-secrets | noSecrets (inspired) |
eslint-plugin-react
eslint-plugin-react-hooks
| eslint-plugin-react-hooks 规则名 | Biome 规则名 |
|---|---|
| exhaustive-deps | useExhaustiveDependencies (inspired) |
| rules-of-hooks | useHookAtTopLevel |
eslint-plugin-react-refresh
| eslint-plugin-react-refresh 规则名 | Biome 规则名 |
|---|---|
| only-export-components | useComponentExportOnlyModules (inspired) |
eslint-plugin-solid
| eslint-plugin-solid 规则名 | Biome 规则名 |
|---|---|
| no-react-specific-props | noReactSpecificProps (inspired) |
eslint-plugin-sonarjs
| eslint-plugin-sonarjs 规则名 | Biome 规则名 |
|---|---|
| cognitive-complexity | noExcessiveCognitiveComplexity (inspired) |
| prefer-while | useWhile |
eslint-plugin-stylistic
| eslint-plugin-stylistic 规则名 | Biome 规则名 |
|---|---|
| jsx-self-closing-comp | useSelfClosingElements (inspired) |
eslint-plugin-unicorn
eslint-plugin-unused-imports
| eslint-plugin-unused-imports 规则名 | Biome 规则名 |
|---|---|
| no-unused-imports | noUnusedImports (inspired) |
| no-unused-vars | noUnusedVariables |