-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
feat(lint): add support for config file and CLI flags for rules #11776
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are no flags for lint.rules.tags
, lint.rules.include
, and lint.rules.exclude
.
Correct. What's your suggestion here? |
We agreed on no config file options that don't also have flags. |
I can add the flags. Honestly having only |
This PR is now feature complete, but I'm very unhappy about the code quality and intend to give it another pass to refactor it and make code better. I also want to add some more integration tests to test all combinations of config/flags passed to "deno lint". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. Well done @bartlomieju.
This commit adds support for following flags in
deno lint
subcommand:--config
- allows to load configuration file and parses "lint" object--rules-tags=<tags>
- allows specifying which set of tagged rules should be run--rules-include=<rules>
- allow specifying which rules should be run--rules-exclude=<rules>
- allow specifying which rules should not be runRef #11686