Merge pull request #5574 from overleaf/jpa-bulk-lint-format

[misc] set up bulk lint/format in dev-env

GitOrigin-RevId: 6f7939c4c732bca72c9b658491e2c4c851c82b44
This commit is contained in:
Jakob Ackermann
2021-10-28 08:03:47 +00:00
committed by Copybot
parent 638fbd5510
commit 4b996c53d3
6 changed files with 14 additions and 6 deletions
+2 -1
View File
@@ -6,7 +6,8 @@
"scripts": {
"test": "npm run lint && npm run format && npm run test:unit",
"test:unit": "mocha",
"lint": "eslint src test *.js",
"lint": "eslint --max-warnings 0 --format unix .",
"lint:fix": "eslint --fix .",
"format": "prettier-eslint $PWD'/**/*.js' --list-different",
"format:fix": "prettier-eslint $PWD'/**/*.js' --write",
"test:ci": "npm run test:unit"