Add reportDescriptionlessDisables option #4868
Labels
status: ready to implement
is ready to be worked on by someone
type: enhancement
a new feature that isn't related to rules
Within Google, we want to require that all exceptions to stylelint rules are documented.
As I understand it,
stylelint-disable-reason
(#2227) was deprecated because there was no inherent connection between a comment existing immediately before a/* stylelint-disable */
tag and that comment actually providing a reason for the disabled lint. Now that #4840 is implemented, there's a more explicit way to provide a description for a disable tag, but there's still no way to enforce it.Judging by issues like #2292, it seems like the best way to model this would be as a flag rather than as a rule. So I propose a
reportDisablesWithoutDescriptions
flag that flags any disable tag that doesn't have an associated reason as a violation.If this is something you'd be amenable to, my team can probably implement it.
The text was updated successfully, but these errors were encountered: