Browse Source

Moved Prettier config to config file

main
Brian Vaughn 7 years ago
parent
commit
1da83176da
  1. 8
      .prettierrc
  2. 2
      package.json

8
.prettierrc

@ -0,0 +1,8 @@
{
"bracketSpacing": false,
"jsxBracketSameLine": true,
"parser": "flow",
"printWidth": 80,
"singleQuote": true,
"trailingComma": "all"
}

2
package.json

@ -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": {

Loading…
Cancel
Save