Closed nathan-knight closed 1 year ago
I'm not familiar with --report-unused-disable-directive
but I'm not opposed to supporting it. Feel free to open a pull request
I'm not familiar with
--report-unused-disable-directive
but I'm not opposed to supporting it. Feel free to open a pull request
Ok I took a stab at it, here's the PR: https://github.com/ataylorme/eslint-annotate-action/pull/62
--report-unused-disable-directives
doesn't seem to get picked up by the action. I have confirmed that ESLint is detecting and warning about unused disable directives. This is the lint script in my package.json:Here is how I'm running it in the workflow:
Here is a sample output from linting locally:
My guess is that the absence of a
ruleId
isn't playing well with this: https://github.com/ataylorme/eslint-annotate-action/blob/2450c2aa1460446829f338b254cf49247cb45449/src/getAnalyzedReport.ts#L50Having support for this would be very helpful since this check lets us catch when a linting directive is no longer needed so we can keep them clean.