Skip to content

Commit

Permalink
Merge 44a7bf1 into a543fd8
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Jan 26, 2021
2 parents a543fd8 + 44a7bf1 commit b790f5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
],
"scripts": {
"coverage": "cat coverage/lcov.info | coveralls",
"format": "npm run lint:fix || true",
"format": "npm run lint:fix && npm run prettier || true",
"prettier": "prettier src/** test/** --write",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"test": "npm run lint && npm run test:coverage",
Expand Down
6 changes: 2 additions & 4 deletions src/loadSchemaJSON.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ const DEFAULT_GRAPHQL = graphql

function readFile(filename) {
return new Promise((resolve, reject) => {
fs.readFile(
filename,
'utf8',
(err, data) => (err ? reject(err) : resolve(data))
fs.readFile(filename, 'utf8', (err, data) =>
err ? reject(err) : resolve(data)
)
})
}
Expand Down

0 comments on commit b790f5e

Please sign in to comment.