diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..3d88857 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,5 @@ +[*] +indent_style = tab +indent_size = 2 +charset = "utf-8" +trim_trailing_whitespace = true diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..9f39581 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,15 @@ +{ + "lineWidth": 100, + "parser": "flow", + "singleQuote": true, + "useTabs": true, + "semi": true, + "trailingComma": "es5", + "jsxBracketSameLine": true, + "overrides": [ + { + "files": ".prettierrc", + "options": { "parser": "json" } + } + ] +} \ No newline at end of file diff --git a/package.json b/package.json index 5a0a94d..60c6d43 100644 --- a/package.json +++ b/package.json @@ -43,9 +43,5 @@ }, "jest": { "preset": "react-native" - }, - "prettier": { - "lineWidth": 100, - "parser": "flow" } }