Skip to content

Commit

Permalink
Fail on ESLint warnings
Browse files Browse the repository at this point in the history
Configure ESLint to fail on any number of warnings. This better surfaces
warnings on PR checks.

I considered putting this in the ESLint config file (.eslintrc.yaml),
however it cannot be configured there and there are no plans to support
that behavior¹.

¹ eslint/eslint#16804 (comment)
  • Loading branch information
victorlin committed Aug 28, 2024
1 parent e62fde9 commit 81bee2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"server": "npm run view",
"build": "node auspice.js build --verbose",
"prepare": "npm run build",
"lint": "eslint .",
"lint": "eslint --max-warnings=0 .",
"lint:fix": "eslint --fix .",
"type-check": "tsc",
"type-check:watch": "npm run type-check -- --watch",
Expand Down

0 comments on commit 81bee2f

Please sign in to comment.