mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Enable the --report-unused-disable-directives
ESLint command line option
This option was added in [version `4.8.0` of ESLint](https://github.com/eslint/eslint/releases/tag/v4.8.0), which is already listed as the minimum version in our `package.json` file; please refer to https://eslint.org/docs/user-guide/command-line-interface#--report-unused-disable-directives for additional details. Despite the caveat listed in the link above, I still think that using this option makes sense since it will help ensure that no longer necessary disable statements are removed.
This commit is contained in:
parent
5ad945f462
commit
04b46831c1
3 changed files with 2 additions and 3 deletions
|
@ -1160,7 +1160,8 @@ gulp.task('lint', function (done) {
|
|||
console.log('### Linting JS files');
|
||||
|
||||
// Ensure that we lint the Firefox specific *.jsm files too.
|
||||
var options = ['node_modules/eslint/bin/eslint', '--ext', '.js,.jsm', '.'];
|
||||
var options = ['node_modules/eslint/bin/eslint', '--ext', '.js,.jsm', '.',
|
||||
'--report-unused-disable-directives'];
|
||||
var esLintProcess = spawn('node', options, { stdio: 'inherit', });
|
||||
esLintProcess.on('close', function (code) {
|
||||
if (code !== 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue