Domains
Use this domain inside Next.js projects.
Next activation
Section titled Next activationEnabled 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 dependenciesEnabled when the following dependencies are declared:
next
:>=14.0.0
Next rules
Section titled Next rulesRules that belong to the domain:
- useExhaustiveDependencies (recommended)
- useHookAtTopLevel (recommended)
- noDocumentImportInPage (recommended)
- noHeadElement (recommended)
- noHeadImportInDocument (recommended)
- noImgElement (recommended)
- noUnwantedPolyfillio (recommended)
- useGoogleFontDisplay (recommended)
- useGoogleFontPreconnect (recommended)
React
Section titled ReactUse 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 activationEnabled 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 dependenciesEnabled when the following dependencies are declared:
react
:>=16.0.0
React rules
Section titled React rulesRules that belong to the domain:
- noRenderReturnValue (recommended)
- useExhaustiveDependencies (recommended)
- useHookAtTopLevel (recommended)
- useJsxKeyInIterable (recommended)
Solid
Section titled SolidUse this domain inside Solid projects. This domain enables rules that might conflict with the React domain.
Solid activation
Section titled Solid activationEnabled 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 dependenciesEnabled when the following dependencies are declared:
solid
:>=1.0.0
Solid rules
Section titled Solid rulesRules 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.
Test activation
Section titled Test activationEnabled 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 dependenciesEnabled 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 globalsWhen enabled, the following global bindings are recognised by Biome:
after
afterAll
afterEach
before
beforeEach
beforeAll
describe
it
expect
test
Test rules
Section titled Test rulesRules that belong to the domain:
- noExcessiveNestedTestSuites (recommended)
- noDuplicateTestHooks (recommended)
- noExportsInTest (recommended)
- noFocusedTests (recommended)