-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
New: Description in directive comments #33
Conversation
Looks no objections from TSC. I'm merging this RFC. |
…2699) * Breaking: description in directive comments (refs eslint/rfcs#33) * Update docs/user-guide/configuring.md Co-Authored-By: Kai Cataldo <kai@kaicataldo.com> * Update docs/user-guide/configuring.md Co-Authored-By: Kai Cataldo <kai@kaicataldo.com> * Update docs/user-guide/configuring.md Co-Authored-By: Kai Cataldo <kai@kaicataldo.com> * Update docs/user-guide/configuring.md Co-Authored-By: Kai Cataldo <kai@kaicataldo.com> * Update docs/user-guide/configuring.md Co-Authored-By: Kai Cataldo <kai@kaicataldo.com> * Update tests/lib/linter/linter.js Co-Authored-By: Kai Cataldo <kai@kaicataldo.com> * Update docs/user-guide/configuring.md Co-Authored-By: Kai Cataldo <kai@kaicataldo.com> * update configuring.md Co-authored-by: Kai Cataldo <kai@kaicataldo.com>
…lint#12699) * Breaking: description in directive comments (refs eslint/rfcs#33) * Update docs/user-guide/configuring.md Co-Authored-By: Kai Cataldo <kai@kaicataldo.com> * Update docs/user-guide/configuring.md Co-Authored-By: Kai Cataldo <kai@kaicataldo.com> * Update docs/user-guide/configuring.md Co-Authored-By: Kai Cataldo <kai@kaicataldo.com> * Update docs/user-guide/configuring.md Co-Authored-By: Kai Cataldo <kai@kaicataldo.com> * Update docs/user-guide/configuring.md Co-Authored-By: Kai Cataldo <kai@kaicataldo.com> * Update tests/lib/linter/linter.js Co-Authored-By: Kai Cataldo <kai@kaicataldo.com> * Update docs/user-guide/configuring.md Co-Authored-By: Kai Cataldo <kai@kaicataldo.com> * update configuring.md Co-authored-by: Kai Cataldo <kai@kaicataldo.com>
Great to see this implemented, because I proposed it first. @mysticatea: can you please update the link in the OP? It's broken now. |
Thanks for this! Sorry if I'm being too off-topic (hope you can point me in the right direction if that's the case), but is there (or are there plans for) a rule to enforce that all disabled directives should have a description? Sometimes a comment is added and after some time it's no longer clear if it's an intentional "violation" of a rule or something meant to be temporal that became permanent. |
Summary
This RFC adds the description support into directive comments such as
/*eslint-disable*/
. For example,/* eslint-disable no-new -- this class has a side-effect in the constructor and it's a library's. */
.Related Issues