Skip to content

Commit

Permalink
move prettier opts to .prettierrc (gatsbyjs#48)
Browse files Browse the repository at this point in the history
* Create .prettierrc

* move prettier opts to .prettierrc
  • Loading branch information
pravdomil authored and KyleAMathews committed Mar 8, 2018
1 parent cbc8986 commit 033168f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"semi": false,
"singleQuote": true,
"trailingComma": "es5"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"scripts": {
"build": "gatsby build",
"develop": "gatsby develop",
"format": "prettier --trailing-comma es5 --no-semi --single-quote --write \"src/**/*.js\"",
"format": "prettier --write \"src/**/*.js\"",
"test": "echo \"Error: no test specified\" && exit 1"
},
"devDependencies": {
Expand Down

0 comments on commit 033168f

Please sign in to comment.