Use eslint to find unused directives
What does this MR do?
In a lot of files we are using eslint-disable
to overwrite our eslint settings.
eslint has now an option --report-unused-disable-directives
to find unused eslint-disable
directives.
We should use that option to find unnecessary disabled rules in our source code.
Example
Example of something that will throw an error now:
/* eslint-disable max-len */
//eslint-disable-next-line no-new
const foo = 5;
- Conform by the code review guidelines
-
Has been reviewed by a Frontend maintainer
-
Edited by Lukas Eipert