Skip to content

Domains

Use this domain inside Next.js projects.

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"
}
}
}

Enabled when the following dependencies are declared:

  • next: >=14.0.0

Rules that belong to the domain:

This domain contains rules that perform project-level analysis. This includes our module graph for dependency resolution. 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.

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"
}
}
}

Rules that belong to the domain:

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

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"
}
}
}

Enabled when the following dependencies are declared:

  • @builder.io/qwik: >=1.0.0
  • @qwik.dev/core: >=2.0.0

Rules that belong to the domain:

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.

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"
}
}
}

Enabled when the following dependencies are declared:

  • react: >=16.0.0

Rules that belong to the domain:

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

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"
}
}
}

Enabled when the following dependencies are declared:

  • solid: >=1.0.0

Rules that belong to the domain:

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.

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"
}
}
}

Enabled when the following dependencies are declared:

  • jest: >=26.0.0
  • mocha: >=8.0.0
  • ava: >=2.0.0
  • vitest: >=1.0.0

When enabled, the following global bindings are recognised by Biome:

  • after
  • afterAll
  • afterEach
  • before
  • beforeEach
  • beforeAll
  • describe
  • it
  • expect
  • test

Rules that belong to the domain:

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

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

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