跳转到内容

noBiomeFirstException

此内容尚不支持你的语言。

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"]
}
}
biome.json
{
"linter": {
"rules": {
"suspicious": {
"noBiomeFirstException": "error"
}
}
}
}