mysticatea / eslint-plugin-eslint-comments

Additional ESLint rules for directive comments of ESLint.
https://mysticatea.github.io/eslint-plugin-eslint-comments/
MIT License
354 stars 44 forks source link

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

Open JasonMore opened 3 years ago

JasonMore commented 3 years ago

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 commented 2 years ago

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: https://github.com/mysticatea/eslint-plugin-eslint-comments/pull/56

MichaelDeBoey commented 8 months ago

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 commented 3 months ago

Opened: