Skip to content

Commit a297be0

Browse files
committed
Add prettier
1 parent 8c7936b commit a297be0

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.prettierrc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
singleQuote: true
2+
semi: false

package-lock.json

+7-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"build": "babel src -d dist --ignore **/*.test.js",
88
"dev": "babel src -d dist --watch --ignore **/*.test.js",
99
"test": "jest --watch",
10-
"prepublishOnly": "npm run build"
10+
"prepublishOnly": "npm run build",
11+
"prettify": "prettier --write **/*.js"
1112
},
1213
"engines": {
1314
"node": ">=8"
@@ -25,6 +26,7 @@
2526
"babel-jest": "^24.7.1",
2627
"graphql": "^14.2.1",
2728
"jest": "^24.7.1",
29+
"prettier": "^1.16.4",
2830
"waait": "^1.0.4"
2931
},
3032
"homepage": "https://github.com/GraphQLGuide/apollo-datasource-mongodb",

0 commit comments

Comments
 (0)