Per-File Overrides in Biome
From the Biome cheat sheet ยท Overrides & Language Support ยท verified Aug 2026
Per-File Overrides
Change formatter and linter behavior for tests, generated code, or scripts.
json
{
"overrides": [
{
"includes": ["**/*.test.ts", "**/*.spec.ts"],
"linter": {
"domains": {
"test": "recommended"
},
"rules": {
"suspicious": {
"noExplicitAny": "off"
}
}
}
}
]
}๐ก Overrides are applied to files matched by files.includes
๐ Keep exceptions narrow and tied to a real file pattern
๐ Later matching overrides can refine earlier settings
โก Domains can be activated only where their files live
overridestestsgenerated-files
Continue with Biome
Save the full cheat sheet or work through every related task.