This commit is contained in:
Jori Lallo
2018-01-03 21:39:32 -08:00
parent 2e609d7f4f
commit f9c24574da
2 changed files with 9 additions and 28 deletions

View File

@@ -1,8 +1,5 @@
{ {
"presets": [ "presets": ["react", "env"],
"react",
"env"
],
"plugins": [ "plugins": [
"lodash", "lodash",
"styled-components", "styled-components",
@@ -15,9 +12,7 @@
], ],
"env": { "env": {
"development": { "development": {
"presets": [ "presets": ["react-hmre"]
"react-hmre"
]
} }
} }
} }

View File

@@ -6,10 +6,7 @@
"plugin:import/warnings", "plugin:import/warnings",
"plugin:flowtype/recommended" "plugin:flowtype/recommended"
], ],
"plugins": [ "plugins": ["prettier", "flowtype"],
"prettier",
"flowtype"
],
"rules": { "rules": {
"eqeqeq": 2, "eqeqeq": 2,
"no-unused-vars": 2, "no-unused-vars": 2,
@@ -22,9 +19,7 @@
"import/no-unresolved": [ "import/no-unresolved": [
"error", "error",
{ {
"ignore": [ "ignore": ["slate-drop-or-paste-images"]
"slate-drop-or-paste-images"
]
} }
], ],
// Flow // Flow
@@ -35,14 +30,8 @@
"annotationStyle": "line" "annotationStyle": "line"
} }
], ],
"flowtype/space-after-type-colon": [ "flowtype/space-after-type-colon": [2, "always"],
2, "flowtype/space-before-type-colon": [2, "never"],
"always"
],
"flowtype/space-before-type-colon": [
2,
"never"
],
// Enforce that code is formatted with prettier. // Enforce that code is formatted with prettier.
"prettier/prettier": [ "prettier/prettier": [
"error", "error",
@@ -56,10 +45,7 @@
"settings": { "settings": {
"import/resolver": { "import/resolver": {
"node": { "node": {
"paths": [ "paths": ["app", "."]
"app",
"."
]
} }
}, },
"flowtype": { "flowtype": {