style: add prettier
This commit is contained in:
parent
b9acdb0944
commit
c74ab67ccf
3 changed files with 6 additions and 0 deletions
0
.prettierignore
Normal file
0
.prettierignore
Normal file
4
.prettierrc.json
Normal file
4
.prettierrc.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"singleQuote": true,
|
||||
"trailingComma": "all"
|
||||
}
|
|
@ -19,6 +19,7 @@
|
|||
"coverage-report": "npm run build && npm run nobuild:coverage-report",
|
||||
"coverage-html": "npm run build && npm run nobuild:coverage-html",
|
||||
"coverage": "npm run build && npm run nobuild:coverage",
|
||||
"format": "prettier ts_src/*.ts ts_src/**/*.ts --ignore-path ./.prettierignore --write",
|
||||
"integration": "npm run build && npm run nobuild:integration",
|
||||
"nobuild:coverage-report": "nyc report --reporter=lcov",
|
||||
"nobuild:coverage-html": "nyc report --reporter=html",
|
||||
|
@ -68,6 +69,7 @@
|
|||
"minimaldata": "^1.0.2",
|
||||
"mocha": "^5.2.0",
|
||||
"nyc": "^11.8.0",
|
||||
"prettier": "^1.16.4",
|
||||
"proxyquire": "^2.0.1",
|
||||
"standard": "^11.0.1",
|
||||
"typescript": "3.2.2",
|
||||
|
|
Loading…
Reference in a new issue