Simplify prettier command

This commit is contained in:
Dolan Miu
2018-02-10 17:56:52 +00:00
parent cb8e9fdd36
commit ab05ccb846
2 changed files with 6 additions and 1 deletions

5
.prettierrc.yml Normal file
View File

@ -0,0 +1,5 @@
trailingComma: all
printWidth: 140
tabWidth: 4
arrowParens: always
bracketSpacing: true

View File

@ -14,7 +14,7 @@
"webpack": "rimraf ./build && webpack",
"demo": "npm run build && node ./demo",
"typedoc": "npm run build && typedoc --out docs/ src/ --module commonjs --target ES6 --disableOutputCheck",
"style": "prettier -l --trailing-comma all --print-width 140 --arrow-parens always \"src/**/*.ts\"",
"style": "prettier -l \"src/**/*.ts\"",
"fix-types": "node types-absolute-fixer.js"
},
"files": [