noBiomeFirstException
Summary
Section titled “Summary”- Diagnostic Category:
lint/suspicious/noBiomeFirstException
- This rule is recommended, which means is enabled by default.
- This rule has a safe fix.
- The default severity of this rule is error.
Description
Section titled “Description”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.
Examples
Section titled “Examples”Invalid
Section titled “Invalid”{ "files": { "includes": ["!dist"] }}
{ "files": { "includes": ["src/**", "!dist"] }}
How to configure
Section titled “How to configure”{ "linter": { "rules": { "suspicious": { "noBiomeFirstException": "error" } } }}