Add auto-formatting

This commit is contained in:
Sean Lilley 2021-08-02 11:34:02 -04:00
parent dc3ec3074f
commit 944c68a191
2 changed files with 6 additions and 0 deletions

View File

@ -3,6 +3,7 @@ node_js:
- "12"
script:
- npm run eslint
- npm run prettier-check
- npm run test -- --failTaskOnError --suppressPassed
after_success:

View File

@ -50,6 +50,11 @@
"prettier": "2.3.2",
"pretty-quick": "^3.1.1"
},
"husky": {
"hooks": {
"pre-commit": "eslint && pretty-quick --staged"
}
},
"scripts": {
"jsdoc": "jsdoc ./lib -R ./README.md -d doc",
"eslint": "eslint \"./**/*.js\" --cache --quiet",