Skip to content

Commit af4d584

Browse files
committed
Add prettier dependency, script, and config file
1 parent d458074 commit af4d584

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.prettierrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
singleQuote: true
2+
semi: false

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
{
22
"name": "graphql-rest-api-demo",
33
"version": "0.0.1",
4-
"description":
5-
"A demo of what an equivalent REST API and GraphQL interface look like.",
4+
"description": "A demo of what an equivalent REST API and GraphQL interface look like.",
65
"main": "graphql-server.js",
76
"scripts": {
8-
"test": "echo \"Error: no test specified\" && exit 1"
7+
"prettify": "prettier --write *.js"
98
},
109
"author": "John Resig <[email protected]>",
1110
"license": "MIT",
@@ -14,5 +13,8 @@
1413
"express-graphql": "^0.6.11",
1514
"graphql": "^0.11.7",
1615
"mongoose": "^4.13.5"
16+
},
17+
"devDependencies": {
18+
"prettier": "1.9.2"
1719
}
1820
}

0 commit comments

Comments
 (0)