Merge pull request #257 from CesiumGS/prettier-auto-formatting

Prettier in travis and on commit
This commit is contained in:
Ian Lilley 2021-08-02 08:41:12 -07:00 committed by GitHub
commit 09dd1e06ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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",