Skip to content

Commit

Permalink
chore: lint all files by default and add `--report-unused-disable-dir…
Browse files Browse the repository at this point in the history
…ectives` flag

Linting all by default, and later adding an `.eslintignore` if necessary, allows IDEs to avoid showing errors on intentionally ignored files.
  • Loading branch information
brettz9 committed Feb 11, 2021
1 parent c368f68 commit 831eb4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"scripts": {
"precommit": "lint-staged --concurrent false",
"test": "jest",
"lint": "eslint rules __tests__ index.js",
"lint": "eslint --report-unused-disable-directives .",
"format": "prettier --write '**/*.js'"
},
"dependencies": {},
Expand Down Expand Up @@ -47,7 +47,7 @@
],
"*.js": [
"prettier --write",
"eslint --fix"
"eslint --report-unused-disable-directives --fix"
],
"*.+(json|md)": [
"prettier --write"
Expand Down

0 comments on commit 831eb4b

Please sign in to comment.