Added --max-warnings=0 to eslint:fix command (#3971)

`--max-warnings=0` to force fix any remaining eslint warnings

(Some rules can't be forced fixed, by design)
This commit is contained in:
Rares Mardare 2024-02-29 11:22:41 +02:00 committed by GitHub
parent 8b39546de0
commit 1db80b5600
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,7 +4,7 @@
"description": "Grafana OnCall Plugin",
"scripts": {
"lint": "eslint --cache --ext .js,.jsx,.ts,.tsx --max-warnings=0 ./src ./e2e-tests",
"lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx ./src ./e2e-tests",
"lint:fix": "eslint --max-warnings=0 --fix --cache --ext .js,.jsx,.ts,.tsx ./src ./e2e-tests",
"stylelint": "stylelint ./src/**/*.{css,scss,module.css,module.scss}",
"stylelint:fix": "stylelint --fix ./src/**/*.{css,scss,module.css,module.scss}",
"build": "webpack -c ./webpack.config.ts --env production",