Fixes
This commit is contained in:
30
.eslintrc
30
.eslintrc
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user