-
-
Notifications
You must be signed in to change notification settings - Fork 503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 Cannot ignore biome.jsonc #4770
Comments
Can you please be more precise about the semantics of "ignore"? Biome needs to read it, and provide diagnostics if it's broken. Failing to have a valid configuration is vital, and Biome should not function if the configuration isn't correct |
I don't want to format it, I'm running |
For this use case, doesn’t it make more sense to move the |
I don't understand though why is the "files-being-formatted" related to the self-config of the app. I think the two has nothing to do with each other. The self-config shouldn't receive special treatment. |
Without getting too into the internals, "Ignoring" a file in biome means that we don't process the file, and therefore don't emit diagnostics for errors in that file, whether those are for parsing, formatting, or linting. However, we must process the config file in order to read the configuration. By default, "processing" includes formatting. You should be able to add an override that disables the formatter. "overrides": [
{
"include": ["biome.jsonc"],
"formatter": {
"enabled": false
},
}
] |
Environment information
What happened?
The following pattern ignores all JSON/JSONC files in the repo, but not biome.jsonc. It's impossible to ignore that file, no matter what I do.
Expected result
It should follow the config and ignore that file.
Code of Conduct
The text was updated successfully, but these errors were encountered: