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

docs(lint): add entry in manual #6258

Merged
merged 1 commit into from
Jun 12, 2020

Conversation

bartlomieju
Copy link
Member

Closes #6235

@bartlomieju bartlomieju requested a review from ry June 12, 2020 12:18
- `require-yield`
- `triple-slash-reference`
- `use-isnan`
- `valid-typeof`
Copy link
Member

Choose a reason for hiding this comment

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

Not for now - but it would be cool to have an API to get a list of these rules and their associated descriptions. Then we could do something like deno lint --rules to examine them...

Copy link
Member Author

@bartlomieju bartlomieju Jun 12, 2020

Choose a reason for hiding this comment

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

We don't have rule descriptions yet, but I can whip up deno lint --rules pretty quickly to display a list of names. I agree it'd be useful to get list of available rules in terminal. Unfortunately doing so in Clap is a nightmare because of lifetimes: https://github.com/denoland/deno_lint/blob/e2ec70237cb238ee1744bac65feb745f375d7097/examples/dlint/main.rs#L49-L56

On the other note I could add --all-rules as well that would apply bigger set of rules. Let me know

Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

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

LGTM

@bartlomieju bartlomieju merged commit c073f55 into denoland:master Jun 12, 2020
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.

Update manual with entry for linter
2 participants