Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow changing the "unused suppression comment" lint severity to "error" #6891
Currently it is possible to change the severity of all lints except for the "unused suppression comment" lint. I guess that stems from the fact that suppression linting was developed prior to the concept of other lints and follows a different code-path.
It would be very useful to make it configurable, just as with other lints, e.g.:
The main reason for this is that we create test suites for Flow typings, and write code like:
// $FlowErrorExpected const a : number = 'abc'
It makes total sense to have the
An alternative would be to allow a separate suppression comment, used exactly for the purpose of testing errors, like