lint
This commit is contained in:
9
.babelrc
9
.babelrc
@@ -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"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
24
.eslintrc
24
.eslintrc
@@ -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": {
|
||||||
|
|||||||
Reference in New Issue
Block a user