Skip to content

Commit

Permalink
Moved Prettier config to config file
Browse files Browse the repository at this point in the history
  • Loading branch information
bvaughn committed Oct 5, 2017
1 parent 192c429 commit 1da8317
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .prettierrc
@@ -0,0 +1,8 @@
{
"bracketSpacing": false,
"jsxBracketSameLine": true,
"parser": "flow",
"printWidth": 80,
"singleQuote": true,
"trailingComma": "all"
}
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -71,7 +71,7 @@
"dev": "gatsby develop -H 0.0.0.0",
"lint": "eslint .",
"netlify": "yarn install && yarn build",
"prettier": "prettier --no-bracket-spacing --single-quote --jsx-bracket-same-line --trailing-comma all --print-width 80 --parser flow --write 'src/**/*.js'",
"prettier": "prettier --config .prettierrc --write '{flow-typed,plugins,src}/**/*.js'",
"reset": "rimraf ./.cache"
},
"devDependencies": {
Expand Down

0 comments on commit 1da8317

Please sign in to comment.