diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 000000000..eb91e6abb --- /dev/null +++ b/.prettierrc @@ -0,0 +1,8 @@ +{ + "bracketSpacing": false, + "jsxBracketSameLine": true, + "parser": "flow", + "printWidth": 80, + "singleQuote": true, + "trailingComma": "all" +} \ No newline at end of file diff --git a/package.json b/package.json index 36ff14e1f..7d830a136 100644 --- a/package.json +++ b/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": {