move prettier config to its own file

This commit is contained in:
Bart Akeley 2017-12-24 11:46:28 -06:00
parent ef1fdfe805
commit 0349c8ba4d
3 changed files with 20 additions and 4 deletions

5
.editorconfig Normal file
View file

@ -0,0 +1,5 @@
[*]
indent_style = tab
indent_size = 2
charset = "utf-8"
trim_trailing_whitespace = true

15
.prettierrc Normal file
View file

@ -0,0 +1,15 @@
{
"lineWidth": 100,
"parser": "flow",
"singleQuote": true,
"useTabs": true,
"semi": true,
"trailingComma": "es5",
"jsxBracketSameLine": true,
"overrides": [
{
"files": ".prettierrc",
"options": { "parser": "json" }
}
]
}

View file

@ -43,9 +43,5 @@
}, },
"jest": { "jest": {
"preset": "react-native" "preset": "react-native"
},
"prettier": {
"lineWidth": 100,
"parser": "flow"
} }
} }