域名
¥Next
在 Next.js 项目中使用此域名。
¥Use this domain inside Next.js projects.
¥Next activation
启用域的推荐非育苗规则:
¥Enable the recommended, non-nursery rules of the domain:
{ "linter": { "domains": { "next": "recommended" } }}启用域的所有规则:
¥Enabled the all rules of the domain:
{ "linter": { "domains": { "next": "all" } }}禁用域的所有规则:
¥Disable all rules of the domain:
{ "linter": { "domains": { "next": "none" } }}¥Next dependencies
声明以下依赖时启用:
¥Enabled when the following dependencies are declared:
next:>=14.0.0
¥Next rules
属于该域的规则:
¥Rules that belong to the domain:
-
¥useExhaustiveDependencies (recommended)
-
¥useHookAtTopLevel (recommended)
-
noImgElement(推荐)
¥noImgElement (recommended)
-
¥noUnwantedPolyfillio (recommended)
-
¥useGoogleFontPreconnect (recommended)
-
noHeadElement(推荐)
¥noHeadElement (recommended)
-
¥noDocumentImportInPage (recommended)
-
¥noHeadImportInDocument (recommended)
¥Project
此域包含执行项目级分析的规则。这包括用于依赖解析的模块图以及类型信息。启用属于此域的规则时,Biome 将扫描整个项目。扫描阶段会对代码检查过程的性能产生影响。请参阅 scanner 文档,了解有关扫描器的更多信息。
¥This domain contains rules that perform project-level analysis. This includes our module graph for dependency resolution, as well as type information. When enabling rules that belong to this domain, Biome will scan the entire project. The scanning phase will have a performance impact on the linting process. See the documentation on our scanner to learn more about the scanner.
¥Project activation
启用域的推荐非育苗规则:
¥Enable the recommended, non-nursery rules of the domain:
{ "linter": { "domains": { "project": "recommended" } }}启用域的所有规则:
¥Enabled the all rules of the domain:
{ "linter": { "domains": { "project": "all" } }}禁用域的所有规则:
¥Disable all rules of the domain:
{ "linter": { "domains": { "project": "none" } }}¥Project rules
属于该域的规则:
¥Rules that belong to the domain:
-
noPrivateImports(推荐)
¥noPrivateImports (recommended)
在 Qwik 项目中使用此域名。此域启用特定于 Qwik 项目的规则。
¥Use this domain inside Qwik projects. This domain enables rules that are specific to Qwik projects.
Qwik 激活
Section titled “Qwik 激活”¥Qwik activation
启用域的推荐非育苗规则:
¥Enable the recommended, non-nursery rules of the domain:
{ "linter": { "domains": { "qwik": "recommended" } }}启用域的所有规则:
¥Enabled the all rules of the domain:
{ "linter": { "domains": { "qwik": "all" } }}禁用域的所有规则:
¥Disable all rules of the domain:
{ "linter": { "domains": { "qwik": "none" } }}Qwik 依赖
Section titled “Qwik 依赖”¥Qwik dependencies
声明以下依赖时启用:
¥Enabled when the following dependencies are declared:
-
@builder.io/qwik:>=1.0.0 -
@qwik.dev/core:>=2.0.0
Qwik 规则
Section titled “Qwik 规则”¥Qwik rules
属于该域的规则:
¥Rules that belong to the domain:
-
¥noQwikUseVisibleTask (recommended)
-
useImageSize(推荐)
¥useImageSize (recommended)
-
¥useJsxKeyInIterable (recommended)
-
useQwikClasslist(推荐)
¥useQwikClasslist (recommended)
-
¥noReactSpecificProps (recommended)
在 React 项目中使用此域名。启用了一组规则,有助于发现错误并强制执行正确的实践。此域启用可能与 Solid 域冲突的规则。
¥Use this domain inside React projects. It enables a set of rules that can help catching bugs and enforce correct practices. This domain enable rules that might conflict with the Solid domain.
React 激活
Section titled “React 激活”¥React activation
启用域的推荐非育苗规则:
¥Enable the recommended, non-nursery rules of the domain:
{ "linter": { "domains": { "react": "recommended" } }}启用域的所有规则:
¥Enabled the all rules of the domain:
{ "linter": { "domains": { "react": "all" } }}禁用域的所有规则:
¥Disable all rules of the domain:
{ "linter": { "domains": { "react": "none" } }}React 依赖
Section titled “React 依赖”¥React dependencies
声明以下依赖时启用:
¥Enabled when the following dependencies are declared:
react:>=16.0.0
React 规则
Section titled “React 规则”¥React rules
属于该域的规则:
¥Rules that belong to the domain:
-
noChildrenProp(推荐)
¥noChildrenProp (recommended)
-
¥noRenderReturnValue (recommended)
-
¥useExhaustiveDependencies (recommended)
-
¥useHookAtTopLevel (recommended)
-
¥useJsxKeyInIterable (recommended)
-
¥noDangerouslySetInnerHtml (recommended)
-
noDangerouslySetInnerHtmlWithChildren(推荐)
¥noDangerouslySetInnerHtmlWithChildren (recommended)
-
noArrayIndexKey(推荐)
¥noArrayIndexKey (recommended)
在 Solid 项目中使用此域名。此域启用可能与 React 域冲突的规则。
¥Use this domain inside Solid projects. This domain enables rules that might conflict with the React domain.
Solid 激活
Section titled “Solid 激活”¥Solid activation
启用域的推荐非育苗规则:
¥Enable the recommended, non-nursery rules of the domain:
{ "linter": { "domains": { "solid": "recommended" } }}启用域的所有规则:
¥Enabled the all rules of the domain:
{ "linter": { "domains": { "solid": "all" } }}禁用域的所有规则:
¥Disable all rules of the domain:
{ "linter": { "domains": { "solid": "none" } }}Solid 依赖
Section titled “Solid 依赖”¥Solid dependencies
声明以下依赖时启用:
¥Enabled when the following dependencies are declared:
solid:>=1.0.0
Solid 规则
Section titled “Solid 规则”¥Solid rules
属于该域的规则:
¥Rules that belong to the domain:
-
¥noReactSpecificProps (recommended)
¥Test
在检查测试文件时使用此域名。启用了一组与库无关的规则,有助于发现测试 API 的潜在误用。
¥Use this domain when linting test files. It enables a set of rules that are library agnostic, and can help to catch possible misuse of the test APIs.
¥Test activation
启用域的推荐非育苗规则:
¥Enable the recommended, non-nursery rules of the domain:
{ "linter": { "domains": { "test": "recommended" } }}启用域的所有规则:
¥Enabled the all rules of the domain:
{ "linter": { "domains": { "test": "all" } }}禁用域的所有规则:
¥Disable all rules of the domain:
{ "linter": { "domains": { "test": "none" } }}¥Test dependencies
声明以下依赖时启用:
¥Enabled when the following dependencies are declared:
-
jest:>=26.0.0 -
mocha:>=8.0.0 -
ava:>=2.0.0 -
vitest:>=1.0.0
测试全局变量
Section titled “测试全局变量”¥Test globals
启用后,Biome 将识别以下全局绑定:
¥When enabled, the following global bindings are recognised by Biome:
-
after -
afterAll -
afterEach -
before -
beforeEach -
beforeAll -
describe -
it -
expect -
test
¥Test rules
属于该域的规则:
¥Rules that belong to the domain:
-
¥noDuplicateTestHooks (recommended)
-
noExportsInTest(推荐)
¥noExportsInTest (recommended)
-
noFocusedTests(推荐)
¥noFocusedTests (recommended)
Turborepo
Section titled “Turborepo”在 Turborepo 项目中使用此域名。此域启用特定于 Turborepo 项目的规则。
¥Use this domain inside Turborepo projects. This domain enables rules that are specific to Turborepo projects.
Turborepo 激活
Section titled “Turborepo 激活”¥Turborepo activation
启用域的推荐非育苗规则:
¥Enable the recommended, non-nursery rules of the domain:
{ "linter": { "domains": { "turborepo": "recommended" } }}启用域的所有规则:
¥Enabled the all rules of the domain:
{ "linter": { "domains": { "turborepo": "all" } }}禁用域的所有规则:
¥Disable all rules of the domain:
{ "linter": { "domains": { "turborepo": "none" } }}Turborepo 依赖
Section titled “Turborepo 依赖”¥Turborepo dependencies
声明以下依赖时启用:
¥Enabled when the following dependencies are declared:
turbo:>=1.0.0
Turborepo 规则
Section titled “Turborepo 规则”¥Turborepo rules
属于该域的规则:
¥Rules that belong to the domain:
在 Vue 项目中使用此域名。此域启用特定于 Vue 项目的规则。
¥Use this domain inside Vue projects. This domain enables rules that are specific to Vue projects.
Vue 激活
Section titled “Vue 激活”¥Vue activation
启用域的推荐非育苗规则:
¥Enable the recommended, non-nursery rules of the domain:
{ "linter": { "domains": { "vue": "recommended" } }}启用域的所有规则:
¥Enabled the all rules of the domain:
{ "linter": { "domains": { "vue": "all" } }}禁用域的所有规则:
¥Disable all rules of the domain:
{ "linter": { "domains": { "vue": "none" } }}Vue 依赖
Section titled “Vue 依赖”¥Vue dependencies
声明以下依赖时启用:
¥Enabled when the following dependencies are declared:
vue:>=3.0.0
Vue 规则
Section titled “Vue 规则”¥Vue rules
属于该域的规则:
¥Rules that belong to the domain:
Biome v2.1 中文网 - 粤ICP备13048890号