This commit is contained in:
Jori Lallo
2018-01-03 21:35:13 -08:00
parent 2fd5fc2dff
commit 2c9e92e5b9
19 changed files with 130 additions and 215 deletions

View File

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