Domains
Use this domain inside Next.js projects.
Next activation
Section titled “Next activation”Enabled the recommended 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": "off" } }}
Next dependencies
Section titled “Next dependencies”Enabled when the following dependencies are declared:
next
:>=14.0.0
Next rules
Section titled “Next rules”Rules that belong to the domain:
- useExhaustiveDependencies (recommended)
- useHookAtTopLevel (recommended)
- noUnwantedPolyfillio (recommended)
- useGoogleFontPreconnect (recommended)
- noImgElement (recommended)
- noHeadElement (recommended)
- noDocumentImportInPage (recommended)
- noHeadImportInDocument (recommended)
Project
Section titled “Project”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.
Project activation
Section titled “Project activation”Enabled the recommended 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": "off" } }}
Project rules
Section titled “Project rules”Rules that belong to the domain:
- noPrivateImports (recommended)
- noUndeclaredDependencies
- useImportExtensions
- noFloatingPromises (recommended)
- noImportCycles
- noUnresolvedImports
- useExhaustiveSwitchCases (recommended)
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
Section titled “React activation”Enabled the recommended 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": "off" } }}
React dependencies
Section titled “React dependencies”Enabled when the following dependencies are declared:
react
:>=16.0.0
React rules
Section titled “React rules”Rules that belong to the domain:
- noRenderReturnValue (recommended)
- useExhaustiveDependencies (recommended)
- useHookAtTopLevel (recommended)
- useJsxKeyInIterable (recommended)
Use this domain inside Solid projects. This domain enables rules that might conflict with the React domain.
Solid activation
Section titled “Solid activation”Enabled the recommended 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": "off" } }}
Solid dependencies
Section titled “Solid dependencies”Enabled when the following dependencies are declared:
solid
:>=1.0.0
Solid rules
Section titled “Solid rules”Rules that belong to the domain:
- noDestructuredProps
- useForComponent
- noReactSpecificProps (recommended)
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
Section titled “Test activation”Enabled the recommended 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": "off" } }}
Test dependencies
Section titled “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
Section titled “Test globals”When enabled, the following global bindings are recognised by Biome:
after
afterAll
afterEach
before
beforeEach
beforeAll
describe
it
expect
test
Test rules
Section titled “Test rules”Rules that belong to the domain:
- noExcessiveNestedTestSuites
- noDuplicateTestHooks (recommended)
- noExportsInTest (recommended)
- noFocusedTests (recommended)