Skip to content

Commit

Permalink
install prettier and add config files
Browse files Browse the repository at this point in the history
  • Loading branch information
d-yokoi committed Mar 23, 2019
1 parent 717868a commit 54169e3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
Empty file added .prettierignore
Empty file.
4 changes: 4 additions & 0 deletions .prettierrc.json
@@ -0,0 +1,4 @@
{
"singleQuote": true,
"trailingComma": "all"
}
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions package.json
Expand Up @@ -5,6 +5,9 @@
"main": "index.js",
"scripts": {
"coverage": "nyc --branches 100 --functions 100 --check-coverage npm run unit",
"format": "npm run prettier -- --write",
"format:ci": "npm run prettier -- --check",
"prettier": "prettier 'ts_src/**/*.ts' --ignore-path ./.prettierignore",
"standard": "standard",
"test": "npm run standard && npm run unit",
"unit": "tape test/*.js",
Expand Down Expand Up @@ -33,6 +36,7 @@
"devDependencies": {
"node-fetch": "^1.6.3",
"nyc": "^13.1.0",
"prettier": "^1.16.4",
"proxyquire": "^1.7.10",
"standard": "^10.0.2",
"tape": "^4.6.2",
Expand Down

0 comments on commit 54169e3

Please sign in to comment.