Closed edg2s closed 5 years ago
If eslint is run with the --report-unused-disable-directives option, it incorrectly reports all inline directives inside HTML script tags
--report-unused-disable-directives
e.g.
<script> // eslint-disable-next-line no-eval eval( foo ); </script>
The no-eval directive is clearly required, but eslint --report-unused-disable-directives reports "Unused eslint-disable directive (no problems were reported from 'no-eval')".
no-eval
eslint --report-unused-disable-directives
The same code in a JS file report no such errors.
Thank you for the report! Fixed in 5.0.2
Description
If eslint is run with the
--report-unused-disable-directives
option, it incorrectly reports all inline directives inside HTML script tagsSetup configuration
Aditional context
e.g.
The
no-eval
directive is clearly required, buteslint --report-unused-disable-directives
reports "Unused eslint-disable directive (no problems were reported from 'no-eval')".The same code in a JS file report no such errors.