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

Allow requiring collapsed blocks for directive comments

Open haykam821 opened this issue 3 years ago • 1 comments

I would like to enforce directive comments to use block comment syntax on a single line, such as the following:

/* eslint-disable no-undef */

The following styles should be disallowed:

// eslint-disable no-undef
/*
  eslint-disable no-undef
*/

Comments that are not directive comments should not be affected.

haykam821 avatar Jan 09 '22 08:01 haykam821

Hi @haykam821!

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