style: add prettier

This commit is contained in:
d-yokoi 2019-03-03 23:07:34 +09:00
parent b9acdb0944
commit c74ab67ccf
No known key found for this signature in database
GPG key ID: 49EAF81BC6A0D19A
3 changed files with 6 additions and 0 deletions

0
.prettierignore Normal file
View file

4
.prettierrc.json Normal file
View file

@ -0,0 +1,4 @@
{
"singleQuote": true,
"trailingComma": "all"
}

View file

@ -19,6 +19,7 @@
"coverage-report": "npm run build && npm run nobuild:coverage-report", "coverage-report": "npm run build && npm run nobuild:coverage-report",
"coverage-html": "npm run build && npm run nobuild:coverage-html", "coverage-html": "npm run build && npm run nobuild:coverage-html",
"coverage": "npm run build && npm run nobuild:coverage", "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", "integration": "npm run build && npm run nobuild:integration",
"nobuild:coverage-report": "nyc report --reporter=lcov", "nobuild:coverage-report": "nyc report --reporter=lcov",
"nobuild:coverage-html": "nyc report --reporter=html", "nobuild:coverage-html": "nyc report --reporter=html",
@ -68,6 +69,7 @@
"minimaldata": "^1.0.2", "minimaldata": "^1.0.2",
"mocha": "^5.2.0", "mocha": "^5.2.0",
"nyc": "^11.8.0", "nyc": "^11.8.0",
"prettier": "^1.16.4",
"proxyquire": "^2.0.1", "proxyquire": "^2.0.1",
"standard": "^11.0.1", "standard": "^11.0.1",
"typescript": "3.2.2", "typescript": "3.2.2",