Skip to content

Domains

Use this domain inside Next.js projects.

Enabled the recommended 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": "off"
}
}
}

Enabled when the following dependencies are declared:

  • next: >=14.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.

Enabled the recommended 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": "off"
}
}
}

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.

Enabled the recommended 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": "off"
}
}
}

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.

Enabled the recommended 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": "off"
}
}
}

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: