eslint-plugin-eslint-comments icon indicating copy to clipboard operation
eslint-plugin-eslint-comments copied to clipboard

eslint-comments/require-description comment above?

Open JasonMore opened this issue 4 years ago • 3 comments

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.

JasonMore avatar Feb 08 '21 20:02 JasonMore

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

ehellman avatar May 25 '22 17:05 ehellman

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

MichaelDeBoey avatar Oct 14 '23 15:10 MichaelDeBoey

Opened:

  • https://github.com/eslint-community/eslint-plugin-eslint-comments/issues/190

fregante avatar Mar 06 '24 03:03 fregante