Skip to content

Commit

Permalink
Use prettier config file for better editor integration (#975)
Browse files Browse the repository at this point in the history
  • Loading branch information
janicduplessis committed Mar 13, 2020
1 parent 7048f64 commit 6bb4ab8
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 @@
{
"jsxBracketSameLine": true,
"printWidth": 80,
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"trailingComma": "es5"
}
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -95,7 +95,7 @@
},
"lint-staged": {
"*.js": [
"prettier --write --print-width 80 --tab-width 2 --single-quote --jsx-bracket-same-line=true --trailing-comma=es5",
"prettier --write",
"git add"
]
},
Expand Down

0 comments on commit 6bb4ab8

Please sign in to comment.