Skip to content
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

fix(cli/lint): use deno_lint::rules::get_recommended_rulesto get rules #7222

Merged
merged 3 commits into from
Aug 29, 2020

Conversation

magurotuna
Copy link
Member

Currently, Deno CLI has its own lint rules to be used. It doesn't use deno_lint::rules::get_recommended_rules because some rules were broken.
But now, thanks to awesome work by the contributors, already known bugs have been fixed.
So there seems no problem switching to deno_lint::rules::get_recommended_rules.

By switching, these rules are going to be added:

  • adjacent_overload_signatures
  • ban_types
  • no_constant_condition
  • no_control_regex
  • no_invalid_regexp
  • no_irregular_whitespace
  • no_mixed_spaces_and_tabs
  • no_self_assign
  • no_unexpected_multiline

related: denoland/deno_lint#277
CC: @bartlomieju

@bartlomieju
Copy link
Member

Please update docs/tools/linter.md with new list of rules.

@magurotuna
Copy link
Member Author

Oh I missed that, thanks for pointing out. I did it.

Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@magurotuna thanks, LGTM, minus one nitpick

docs/tools/linter.md Outdated Show resolved Hide resolved
Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @magurotuna

@bartlomieju bartlomieju merged commit 0d11f35 into denoland:master Aug 29, 2020
@magurotuna magurotuna deleted the get-recommended-rules branch August 29, 2020 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants