Lint files before git commit

pull/81/head
MillenniumEarl 2021-03-04 12:34:00 +01:00
parent e7b56ea29b
commit 692b481a8b
2 changed files with 1194 additions and 0 deletions

1184
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -61,6 +61,8 @@
"eslint": "^7.20.0", "eslint": "^7.20.0",
"eslint-config-prettier": "^8.1.0", "eslint-config-prettier": "^8.1.0",
"eslint-plugin-prettier": "^3.3.1", "eslint-plugin-prettier": "^3.3.1",
"husky": "^5.1.3",
"lint-staged": "^10.5.4",
"lodash": "^4.17.20", "lodash": "^4.17.20",
"mocha": "^8.3.0", "mocha": "^8.3.0",
"nyc": "^15.1.0", "nyc": "^15.1.0",
@ -69,6 +71,14 @@
"ts-node": "^9.1.1", "ts-node": "^9.1.1",
"typescript": "^4.2.0-insiders.20210210" "typescript": "^4.2.0-insiders.20210210"
}, },
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": ["prettier --write", "git add"]
},
"bugs": { "bugs": {
"url": "https://github.com/MillenniumEarl/F95API/issues" "url": "https://github.com/MillenniumEarl/F95API/issues"
}, },