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

New: Description in directive comments #33

Merged
merged 2 commits into from
Sep 28, 2019

Conversation

mysticatea
Copy link
Member

@mysticatea mysticatea commented Jul 20, 2019

Link to rendered RFC.

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

@mysticatea mysticatea added the Initial Commenting This RFC is in the initial feedback stage label Jul 20, 2019
@mysticatea mysticatea added Final Commenting This RFC is in the final week of commenting and removed Initial Commenting This RFC is in the initial feedback stage labels Sep 17, 2019
@mysticatea
Copy link
Member Author

Looks no objections from TSC. I'm merging this RFC.

@mysticatea mysticatea merged commit 0d82825 into master Sep 28, 2019
@mysticatea mysticatea added the breaking change This RFC contains breaking changes label Oct 14, 2019
mysticatea added a commit to eslint/eslint that referenced this pull request Dec 22, 2019
mysticatea added a commit to eslint/eslint that referenced this pull request Dec 22, 2019
btmills pushed a commit to eslint/eslint that referenced this pull request Jan 17, 2020
…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>
montmanu pushed a commit to montmanu/eslint that referenced this pull request Mar 4, 2020
…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>
@dandv
Copy link

dandv commented May 9, 2020

Great to see this implemented, because I proposed it first.

@mysticatea: can you please update the link in the OP? It's broken now.

@battaglr
Copy link

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.

@bradzacher
Copy link

@battaglr https://mysticatea.github.io/eslint-plugin-eslint-comments/rules/require-description.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change This RFC contains breaking changes Final Commenting This RFC is in the final week of commenting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants