-
-
Notifications
You must be signed in to change notification settings - Fork 482
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(linter): add auto-fix metadata to RuleMeta (#4557)
Add a `FIX` constant to `RuleMeta` that describes what kinds of auto fixes a rule can perform (if any). This PR also updates `declare_oxc_lint` to accept a fix capabilities field. Follow-up PRs in this stack will update existing rules and update other parts of the codebase to use this new field. The end goal of this stack is to 1. automate creation of #4179 in a similar way we auto-update rule progress, 2. use it in rule documentation pages when we eventually add lint rules to the website
- Loading branch information
Showing
3 changed files
with
112 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters