-
Notifications
You must be signed in to change notification settings - Fork 660
📎 Add files
config option for ignore
#3328
Comments
This issue is stale because it has been open 14 days with no activity. |
I take this issue and created the draft PR!
Above the case, can I ignore test1.js and test2.js or only test2.js when linting? |
As a user, I would expect file1.js and file2.js to be ignored by the linter. file1.js should be ignored by all Rome analysis (except maybe invalid |
I agree the ignore lists should be additive, meaning the linter should ignore paths that match any pattern in both |
What's your recommendation on the order in which the lists are "added". Because the order becomes important if you have negative patterns. @leops is it correct that Rome ignores some files by default? If so, should @nissy-dev : Don't feel pressured to implement all the ideas in a single PR (or leave some of the functionalities to others). |
Logically we should be concatenating the two lists with the global ignores coming first, then the tool-specific ignores
Yes tools/crates/rome_fs/src/fs/os.rs Line 139 in b6af8f0
Whether the global ignore list should override these depends on whether we support negative patterns I guess. If we do then users could de-ignore some of these by adding |
Closing, as it's been implemented in #3564 |
Description
I found myself wanting to add the same directories/patterns to
linter.ignore
andformatter.ignore
. It would be nice so that instead of:I could do:
The text was updated successfully, but these errors were encountered: