eslint-community / eslint-plugin-eslint-comments

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

`require-description` - Allow comment above #190

Open fregante opened 3 months ago

fregante commented 3 months ago

For longer rule names, I prefer placing the comment on top so it doesn't get lost. e.g.

// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-unnecessary-type-assertion -- The build fails if this is undefined, so `!` is appropriate

vs

// The build fails if this is undefined, so `!` is appropriate
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-unnecessary-type-assertion