Skip to content
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.

Commit

Permalink
Add prettier as part of format
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed Dec 9, 2019
1 parent 5c43d4d commit a0d26b7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const examples = {
isTrue // TODO: Replace this with added example.
}

// prettier-ignore
const envVars = [
'LOG_LEVEL',
'LOG_FILTER',
Expand Down
12 changes: 11 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@
"example:inspect": "babel-node --inspect examples",
"example:inspect:watch": "nodemon --exec babel-node --inspect examples",
"watch": "gulp watch",
"format": "standard --fix",
"pretty": "prettier --write **/*.js **/*.json **/*.graphql",
"format": "npm-run-all --serial pretty format:*",
"format:js": "npm-run-all --serial",
"report": "nyc report"
},
"babel": {
Expand Down Expand Up @@ -93,6 +95,13 @@
"tmp/"
]
},
"prettier": {
"semi": false,
"singleQuote": true,
"jsxSingleQuote": true,
"trailingComma": "none",
"endOfLine": "lf"
},
"engines": {
"node": ">=10.13.0"
},
Expand All @@ -115,6 +124,7 @@
"nodemon": "^2.0.1",
"npm-run-all": "^4.1.2",
"nyc": "^14.0.0",
"prettier": "^1.19.1",
"standard": "^14.0.2"
}
}
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5644,6 +5644,11 @@ preserve@^0.2.0:
resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"
integrity sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=

prettier@^1.19.1:
version "1.19.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb"
integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==

pretty-hrtime@^1.0.0:
version "1.0.3"
resolved "https://registry.yarnpkg.com/pretty-hrtime/-/pretty-hrtime-1.0.3.tgz#b7e3ea42435a4c9b2759d99e0f201eb195802ee1"
Expand Down

0 comments on commit a0d26b7

Please sign in to comment.