Skip to content

域名

¥Next

在 Next.js 项目中使用此域名。

¥Use this domain inside Next.js projects.

¥Next activation

启用域的推荐非育苗规则:

¥Enable the recommended, non-nursery rules of the domain:

biome.json
{
"linter": {
"domains": {
"next": "recommended"
}
}
}

启用域的所有规则:

¥Enabled the all rules of the domain:

biome.json
{
"linter": {
"domains": {
"next": "all"
}
}
}

禁用域的所有规则:

¥Disable all rules of the domain:

biome.json
{
"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:

¥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:

biome.json
{
"linter": {
"domains": {
"project": "recommended"
}
}
}

启用域的所有规则:

¥Enabled the all rules of the domain:

biome.json
{
"linter": {
"domains": {
"project": "all"
}
}
}

禁用域的所有规则:

¥Disable all rules of the domain:

biome.json
{
"linter": {
"domains": {
"project": "none"
}
}
}

¥Project rules

属于该域的规则:

¥Rules that belong to the domain:

在 Qwik 项目中使用此域名。此域启用特定于 Qwik 项目的规则。

¥Use this domain inside Qwik projects. This domain enables rules that are specific to Qwik projects.

¥Qwik activation

启用域的推荐非育苗规则:

¥Enable the recommended, non-nursery rules of the domain:

biome.json
{
"linter": {
"domains": {
"qwik": "recommended"
}
}
}

启用域的所有规则:

¥Enabled the all rules of the domain:

biome.json
{
"linter": {
"domains": {
"qwik": "all"
}
}
}

禁用域的所有规则:

¥Disable all rules of the domain:

biome.json
{
"linter": {
"domains": {
"qwik": "none"
}
}
}

¥Qwik dependencies

声明以下依赖时启用:

¥Enabled when the following dependencies are declared:

  • @builder.io/qwik>=1.0.0

  • @qwik.dev/core>=2.0.0

¥Qwik rules

属于该域的规则:

¥Rules that belong to the domain:

在 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 activation

启用域的推荐非育苗规则:

¥Enable the recommended, non-nursery rules of the domain:

biome.json
{
"linter": {
"domains": {
"react": "recommended"
}
}
}

启用域的所有规则:

¥Enabled the all rules of the domain:

biome.json
{
"linter": {
"domains": {
"react": "all"
}
}
}

禁用域的所有规则:

¥Disable all rules of the domain:

biome.json
{
"linter": {
"domains": {
"react": "none"
}
}
}

¥React dependencies

声明以下依赖时启用:

¥Enabled when the following dependencies are declared:

  • react>=16.0.0

¥React rules

属于该域的规则:

¥Rules that belong to the domain:

在 Solid 项目中使用此域名。此域启用可能与 React 域冲突的规则。

¥Use this domain inside Solid projects. This domain enables rules that might conflict with the React domain.

¥Solid activation

启用域的推荐非育苗规则:

¥Enable the recommended, non-nursery rules of the domain:

biome.json
{
"linter": {
"domains": {
"solid": "recommended"
}
}
}

启用域的所有规则:

¥Enabled the all rules of the domain:

biome.json
{
"linter": {
"domains": {
"solid": "all"
}
}
}

禁用域的所有规则:

¥Disable all rules of the domain:

biome.json
{
"linter": {
"domains": {
"solid": "none"
}
}
}

¥Solid dependencies

声明以下依赖时启用:

¥Enabled when the following dependencies are declared:

  • solid>=1.0.0

¥Solid rules

属于该域的规则:

¥Rules that belong to the domain:

¥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:

biome.json
{
"linter": {
"domains": {
"test": "recommended"
}
}
}

启用域的所有规则:

¥Enabled the all rules of the domain:

biome.json
{
"linter": {
"domains": {
"test": "all"
}
}
}

禁用域的所有规则:

¥Disable all rules of the domain:

biome.json
{
"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

¥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:

在 Turborepo 项目中使用此域名。此域启用特定于 Turborepo 项目的规则。

¥Use this domain inside Turborepo projects. This domain enables rules that are specific to Turborepo projects.

¥Turborepo activation

启用域的推荐非育苗规则:

¥Enable the recommended, non-nursery rules of the domain:

biome.json
{
"linter": {
"domains": {
"turborepo": "recommended"
}
}
}

启用域的所有规则:

¥Enabled the all rules of the domain:

biome.json
{
"linter": {
"domains": {
"turborepo": "all"
}
}
}

禁用域的所有规则:

¥Disable all rules of the domain:

biome.json
{
"linter": {
"domains": {
"turborepo": "none"
}
}
}

¥Turborepo dependencies

声明以下依赖时启用:

¥Enabled when the following dependencies are declared:

  • turbo>=1.0.0

¥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 activation

启用域的推荐非育苗规则:

¥Enable the recommended, non-nursery rules of the domain:

biome.json
{
"linter": {
"domains": {
"vue": "recommended"
}
}
}

启用域的所有规则:

¥Enabled the all rules of the domain:

biome.json
{
"linter": {
"domains": {
"vue": "all"
}
}
}

禁用域的所有规则:

¥Disable all rules of the domain:

biome.json
{
"linter": {
"domains": {
"vue": "none"
}
}
}

¥Vue dependencies

声明以下依赖时启用:

¥Enabled when the following dependencies are declared:

  • vue>=3.0.0

¥Vue rules

属于该域的规则:

¥Rules that belong to the domain: