ec38f5d79c
* refactor: Remove deprecated APIs * bump mobx-react for hooks support * inject -> useStores https://mobx-react.js.org/recipes-migration\#hooks-to-the-rescue * chore: React rules of hooks lint
105 lines
2.0 KiB
Plaintext
105 lines
2.0 KiB
Plaintext
{
|
|
"parser": "babel-eslint",
|
|
"extends": [
|
|
"react-app",
|
|
"plugin:import/errors",
|
|
"plugin:import/warnings",
|
|
"plugin:flowtype/recommended",
|
|
"plugin:react-hooks/recommended"
|
|
],
|
|
"plugins": [
|
|
"prettier",
|
|
"flowtype"
|
|
],
|
|
"rules": {
|
|
"eqeqeq": 2,
|
|
"no-unused-vars": 2,
|
|
"no-mixed-operators": "off",
|
|
"import/order": [
|
|
"error",
|
|
{
|
|
"alphabetize": {
|
|
"order": "asc"
|
|
},
|
|
"pathGroups": [
|
|
{
|
|
"pattern": "shared/**",
|
|
"group": "external",
|
|
"position": "after"
|
|
},
|
|
{
|
|
"pattern": "stores",
|
|
"group": "external",
|
|
"position": "after"
|
|
},
|
|
{
|
|
"pattern": "stores/**",
|
|
"group": "external",
|
|
"position": "after"
|
|
},
|
|
{
|
|
"pattern": "models/**",
|
|
"group": "external",
|
|
"position": "after"
|
|
},
|
|
{
|
|
"pattern": "scenes/**",
|
|
"group": "external",
|
|
"position": "after"
|
|
},
|
|
{
|
|
"pattern": "components/**",
|
|
"group": "external",
|
|
"position": "after"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"flowtype/require-valid-file-annotation": [
|
|
2,
|
|
"always",
|
|
{
|
|
"annotationStyle": "line"
|
|
}
|
|
],
|
|
"flowtype/space-after-type-colon": [
|
|
2,
|
|
"always"
|
|
],
|
|
"flowtype/space-before-type-colon": [
|
|
2,
|
|
"never"
|
|
],
|
|
"prettier/prettier": [
|
|
"error",
|
|
{
|
|
"printWidth": 80,
|
|
"trailingComma": "es5"
|
|
}
|
|
]
|
|
},
|
|
"settings": {
|
|
"react": {
|
|
"createClass": "createReactClass",
|
|
"pragma": "React",
|
|
"version": "detect"
|
|
},
|
|
"import/resolver": {
|
|
"node": {
|
|
"paths": [
|
|
"app",
|
|
"."
|
|
]
|
|
}
|
|
},
|
|
"flowtype": {
|
|
"onlyFilesWithFlowAnnotation": false
|
|
}
|
|
},
|
|
"env": {
|
|
"jest": true
|
|
},
|
|
"globals": {
|
|
"EDITOR_VERSION": true
|
|
}
|
|
} |