Domains
Use this domain inside Next.js projects.
Next activation
Section titled Next activation{ "linter": { "rules": { "domains": { "next": "on" } } }}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
- useHookAtTopLevel
- noDocumentImportInPage
- noHeadElement
- noHeadImportInDocument
- noImgElement
- noUnwantedPolyfillio
- useGoogleFontDisplay
- useGoogleFontPreconnect
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 activation{ "linter": { "rules": { "domains": { "react": "on" } } }}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:
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 activation{ "linter": { "rules": { "domains": { "solid": "on" } } }}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 activation{ "linter": { "rules": { "domains": { "test": "on" } } }}Test dependencies
Section titled Test dependenciesEnabled when the following dependencies are declared:
jest:>=26.0.0mocha:>=8.0.0ava:>=2.0.0vitest:>=1.0.0
Test globals
Section titled Test globalsWhen enabled, the following global bindings are recognised by Biome:
afterafterAllafterEachbeforebeforeEachbeforeAlldescribeitexpecttest
Test rules
Section titled Test rulesRules that belong to the domain: