Skip to content

useBiomeIgnoreFolder (JSON)

Language JSON (and super languages)
biome.json
{
"linter": {
"rules": {
"suspicious": {
"useBiomeIgnoreFolder": "error"
}
}
}
}

Prefer folder exclusions that prevent Biome from scanning the folder.

A negated pattern such as !dist/** excludes files inside dist, but Biome still enters the directory to discover them. Use !dist to exclude the folder itself and avoid unnecessary filesystem traversal. The same applies to nested patterns such as !**/dist.

{
"files": {
"includes": ["**", "!dist/**", "!**/dist/**"]
}
}
{
"files": {
"includes": ["**", "!dist", "!**/dist"]
}
}