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.

More Biome tasks

Back to the full Biome cheat sheet