Przejdź do głównej zawartości

noBiomeFirstException

Ta treść nie jest jeszcze dostępna w Twoim języku.

biome.json
{
"linter": {
"rules": {
"suspicious": {
"noBiomeFirstException": "error"
}
}
}
}

Prevents the use of the ! pattern in the first position of files.includes in the configuration file.

If the first pattern of files.includes starts with the leading !, Biome won’t have any file to crawl. Generally, it is a good practice to declare the files/folders to include first, and then the files/folder to ignore.

Check the official documentation for more examples.

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