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

eslint-comments/require-description comment above? #55

Open
JasonMore opened this issue Feb 8, 2021 · 3 comments
Open

eslint-comments/require-description comment above? #55

JasonMore opened this issue Feb 8, 2021 · 3 comments

Comments

@JasonMore
Copy link

Hi! Is it possible to have a comment above the rule work? I've not done a lot of eslint work, but happy to fix this if you think its possible.

@ehellman
Copy link

ehellman commented May 25, 2022

I'm looking for the same thing, but what pattern should be required? I guess you could pass a flag like requirePatternForPreviousLineComment and either pass a pattern yourself or just disabling it, making any comment above the disable rule work.

I don't know enough about making ESLint plugins to tell you if it's possible, but it would be an amazing addition

EDIT: Saw that you made a PR: #56

@MichaelDeBoey
Copy link

Hi @JasonMore!

Since this repo is unmaintained, you might want to re-open this issue in the @eslint-community fork https://github.com/eslint-community/eslint-plugin-eslint-comments

For more info about why we created this organization, you can read https://eslint.org/blog/2023/03/announcing-eslint-community-org

@fregante
Copy link

fregante commented Mar 6, 2024

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

No branches or pull requests

4 participants