-
-
Notifications
You must be signed in to change notification settings - Fork 503
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(linter): support overriding oxlint rules by eslint config (#1966)
Previously if .eslintrc.json contains ``` { "rules": { "no-empty": "off" } } ``` Then no rules will be enabled. --- This PR changes how we configure oxlint's rules. The rules will start with the categories we apply, and then merge all the configurations stated in the `rules` field. For example, if we begin with `-D correctness` with 80 rules, then * `"no-empty-file": "off"` will remove the rule, yielding 79 rules * `"no-empty": "error"` (restriction) will add the rule, yield 81 rules * ""no-empty": ["error", { "allowEmptyCatch": true }]` add the rule's configuration
- Loading branch information
Showing
5 changed files
with
125 additions
and
185 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
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
Oops, something went wrong.