fix: convert all eslint warnings to errors (#42527)

Rather than having to configure each rule to be an error rather than a
warning, we just fail the linting if there are any issues at all.
This commit is contained in:
Oliver Eyton-Williams
2021-06-17 20:23:52 +02:00
committed by GitHub
parent 873cd64fdb
commit 6fedc48495

View File

@ -64,7 +64,7 @@
"lint": "npm-run-all ensure-env -p lint:*",
"lint:challenges": "cd ./curriculum && npm run lint",
"lint:css": "npm run prettier -- --check",
"lint:js": "eslint .",
"lint:js": "eslint --max-warnings 0 .",
"lint:ts": "tsc -p client",
"lint:translations": "cd ./client && npm run lint",
"postinstall": "npm run bootstrap",
@ -90,7 +90,7 @@
},
"lint-staged": {
"*.css": "prettier --write",
"*.(js|ts|tsx)": "eslint --cache --fix",
"*.(js|ts|tsx)": "eslint --max-warnings 0 --cache --fix",
"./curriculum/challenges/**/*.md": "node ./tools/scripts/lint/index.js"
},
"dependencies": {