规则来源
Biome 专属规则
Section titled “Biome 专属规则”¥Biome exclusive rules
来自其他来源的规则
Section titled “来自其他来源的规则”¥Rules from other sources
@mysticatea/eslint-plugin
Section titled “@mysticatea/eslint-plugin”| @mysticatea/eslint-plugin rule name | Biome 规则名称 |
|---|---|
| no-this-in-static | noThisInStatic(受启发) |
@next/eslint-plugin-next
Section titled “@next/eslint-plugin-next”Clippy
Section titled “Clippy”ESLint
Section titled “ESLint”GraphQL-ESLint
Section titled “GraphQL-ESLint”| GraphQL-ESLint 规则名称 | Biome 规则名称 |
|---|---|
| no-duplicate-fields | noDuplicatedFields |
| require-deprecation-reason | useDeprecatedReason |
Stylelint
Section titled “Stylelint”eslint-plugin-barrel-files
Section titled “eslint-plugin-barrel-files”| eslint-plugin-barrel-files 规则名称 | Biome 规则名称 |
|---|---|
| avoid-barrel-files | noBarrelFile(受启发) |
| avoid-namespace-import | noNamespaceImport |
| avoid-re-export-all | noReExportAll |
eslint-plugin-import
Section titled “eslint-plugin-import”| eslint-plugin-import 规则名称 | Biome 规则名称 |
|---|---|
| no-commonjs | noCommonJs(受启发) |
| no-default-export | noDefaultExport |
| no-extraneous-dependencies | noUndeclaredDependencies |
| no-nodejs-modules | noNodejsModules |
eslint-plugin-jest
Section titled “eslint-plugin-jest”| eslint-plugin-jest 规则名称 | Biome 规则名称 |
|---|---|
| max-nested-describe | noExcessiveNestedTestSuites |
| no-disabled-tests | noSkippedTests(受启发) |
| no-done-callback | noDoneCallback(受启发) |
| no-duplicate-hooks | noDuplicateTestHooks(受启发) |
| no-export | noExportsInTest(受启发) |
| no-focused-tests | noFocusedTests(受启发) |
| no-standalone-expect | noMisplacedAssertion(受启发) |
eslint-plugin-jsx-a11y
Section titled “eslint-plugin-jsx-a11y”eslint-plugin-n
Section titled “eslint-plugin-n”| eslint-plugin-n 规则名称 | Biome 规则名称 |
|---|---|
| no-process-env | noProcessEnv(受启发) |
eslint-plugin-no-secrets
Section titled “eslint-plugin-no-secrets”| eslint-plugin-no-secrets 规则名称 | Biome 规则名称 |
|---|---|
| no-secrets | noSecrets(受启发) |
eslint-plugin-react
Section titled “eslint-plugin-react”eslint-plugin-react-hooks
Section titled “eslint-plugin-react-hooks”| eslint-plugin-react-hooks 规则名称 | Biome 规则名称 |
|---|---|
| exhaustive-deps | useExhaustiveDependencies(受启发) |
| rules-of-hooks | useHookAtTopLevel |
eslint-plugin-react-refresh
Section titled “eslint-plugin-react-refresh”| eslint-plugin-react-refresh 规则名称 | Biome 规则名称 |
|---|---|
| only-export-components | useComponentExportOnlyModules(受启发) |
eslint-plugin-solid
Section titled “eslint-plugin-solid”| eslint-plugin-solid 规则名称 | Biome 规则名称 |
|---|---|
| no-react-specific-props | noReactSpecificProps(受启发) |
eslint-plugin-sonarjs
Section titled “eslint-plugin-sonarjs”| eslint-plugin-sonarjs 规则名称 | Biome 规则名称 |
|---|---|
| cognitive-complexity | noExcessiveCognitiveComplexity(受启发) |
| prefer-while | useWhile |
eslint-plugin-stylistic
Section titled “eslint-plugin-stylistic”| eslint-plugin-stylistic 规则名称 | Biome 规则名称 |
|---|---|
| jsx-self-closing-comp | useSelfClosingElements(受启发) |
eslint-plugin-unicorn
Section titled “eslint-plugin-unicorn”eslint-plugin-unused-imports
Section titled “eslint-plugin-unused-imports”| eslint-plugin-unused-imports 规则名称 == | Biome 规则名称 |
|---|---|
| no-unused-imports | noUnusedImports(受启发) |
| no-unused-vars | noUnusedVariables |
typescript-eslint
Section titled “typescript-eslint”Biome v2.1 中文网 - 粤ICP备13048890号