diff --git a/.lintstagedrc.js b/.lintstagedrc.js --- a/.lintstagedrc.js +++ b/.lintstagedrc.js @@ -8,7 +8,7 @@ '*.{js,mjs,cjs}': function eslint(files) { // This logic is likely broken and needs to be updated. see ENG-1011 return ( - 'eslint --cache --fix --max-warnings=0 ' + + 'eslint --cache --fix --report-unused-disable-directives --max-warnings=0 ' + files.filter(file => !cli.isPathIgnored(file)).join(' ') ); }, diff --git a/package.json b/package.json --- a/package.json +++ b/package.json @@ -17,8 +17,8 @@ "clean": "yarn workspace lib clean && yarn workspace web clean && yarn workspace native clean && yarn workspace keyserver clean && yarn workspace landing clean && yarn workspace desktop clean && yarn workspace rust-node-addon clean && yarn workspace electron-update-server clean && rm -rf node_modules/", "cleaninstall": "(killall flow || pkill flow || true) && yarn clean && yarn", "ci-cleaninstall": "yarn cleaninstall --frozen-lockfile --skip-optional --network-timeout 180000", - "eslint:all": "eslint .", - "eslint:fix": "eslint --fix .", + "eslint:all": "eslint --report-unused-disable-directives .", + "eslint:fix": "eslint --fix --report-unused-disable-directives .", "clang-format-all": "eval `node scripts/get_clang_paths_cli.js` | xargs clang-format -i", "rust-pre-commit": "./scripts/rust_pre_commit.sh", "terraform-pre-commit": "./scripts/terraform_pre_commit.sh",