mirror of
https://github.com/CesiumGS/obj2gltf.git
synced 2024-11-27 10:30:16 -05:00
Merge pull request #257 from CesiumGS/prettier-auto-formatting
Prettier in travis and on commit
This commit is contained in:
commit
09dd1e06ee
@ -3,6 +3,7 @@ node_js:
|
|||||||
- "12"
|
- "12"
|
||||||
script:
|
script:
|
||||||
- npm run eslint
|
- npm run eslint
|
||||||
|
- npm run prettier-check
|
||||||
- npm run test -- --failTaskOnError --suppressPassed
|
- npm run test -- --failTaskOnError --suppressPassed
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
|
@ -50,6 +50,11 @@
|
|||||||
"prettier": "2.3.2",
|
"prettier": "2.3.2",
|
||||||
"pretty-quick": "^3.1.1"
|
"pretty-quick": "^3.1.1"
|
||||||
},
|
},
|
||||||
|
"husky": {
|
||||||
|
"hooks": {
|
||||||
|
"pre-commit": "eslint && pretty-quick --staged"
|
||||||
|
}
|
||||||
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"jsdoc": "jsdoc ./lib -R ./README.md -d doc",
|
"jsdoc": "jsdoc ./lib -R ./README.md -d doc",
|
||||||
"eslint": "eslint \"./**/*.js\" --cache --quiet",
|
"eslint": "eslint \"./**/*.js\" --cache --quiet",
|
||||||
|
Loading…
Reference in New Issue
Block a user