lint
This commit is contained in:
parent
2e609d7f4f
commit
f9c24574da
11
.babelrc
11
.babelrc
|
@ -1,8 +1,5 @@
|
|||
{
|
||||
"presets": [
|
||||
"react",
|
||||
"env"
|
||||
],
|
||||
"presets": ["react", "env"],
|
||||
"plugins": [
|
||||
"lodash",
|
||||
"styled-components",
|
||||
|
@ -15,9 +12,7 @@
|
|||
],
|
||||
"env": {
|
||||
"development": {
|
||||
"presets": [
|
||||
"react-hmre"
|
||||
]
|
||||
"presets": ["react-hmre"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
26
.eslintrc
26
.eslintrc
|
@ -6,10 +6,7 @@
|
|||
"plugin:import/warnings",
|
||||
"plugin:flowtype/recommended"
|
||||
],
|
||||
"plugins": [
|
||||
"prettier",
|
||||
"flowtype"
|
||||
],
|
||||
"plugins": ["prettier", "flowtype"],
|
||||
"rules": {
|
||||
"eqeqeq": 2,
|
||||
"no-unused-vars": 2,
|
||||
|
@ -22,9 +19,7 @@
|
|||
"import/no-unresolved": [
|
||||
"error",
|
||||
{
|
||||
"ignore": [
|
||||
"slate-drop-or-paste-images"
|
||||
]
|
||||
"ignore": ["slate-drop-or-paste-images"]
|
||||
}
|
||||
],
|
||||
// Flow
|
||||
|
@ -35,14 +30,8 @@
|
|||
"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",
|
||||
|
@ -56,10 +45,7 @@
|
|||
"settings": {
|
||||
"import/resolver": {
|
||||
"node": {
|
||||
"paths": [
|
||||
"app",
|
||||
"."
|
||||
]
|
||||
"paths": ["app", "."]
|
||||
}
|
||||
},
|
||||
"flowtype": {
|
||||
|
@ -78,4 +64,4 @@
|
|||
"afterAll": true,
|
||||
"Bugsnag": true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue