72 lines
1.2 KiB
Plaintext
72 lines
1.2 KiB
Plaintext
{
|
|
"parser": "babel-eslint",
|
|
"extends": "airbnb",
|
|
"env": {
|
|
"browser": true,
|
|
"node": true
|
|
},
|
|
"rules": {
|
|
"arrow-parens": [
|
|
"off"
|
|
],
|
|
"compat/compat": "error",
|
|
"consistent-return": "off",
|
|
"comma-dangle": "off",
|
|
"generator-star-spacing": "off",
|
|
"import/no-unresolved": "error",
|
|
"import/no-extraneous-dependencies": "off",
|
|
"indent": [
|
|
"error",
|
|
"tab"
|
|
],
|
|
"no-console": "off",
|
|
"no-tabs": "off",
|
|
"no-use-before-define": "off",
|
|
"no-multi-assign": "off",
|
|
"promise/param-names": "error",
|
|
"promise/always-return": "error",
|
|
"promise/catch-or-return": "error",
|
|
"promise/no-native": "off",
|
|
"react/sort-comp": [
|
|
"error",
|
|
{
|
|
"order": [
|
|
"type-annotations",
|
|
"static-methods",
|
|
"lifecycle",
|
|
"everything-else",
|
|
"render"
|
|
]
|
|
}
|
|
],
|
|
"react/prop-types": "off",
|
|
"react/jsx-indent": [
|
|
2,
|
|
'tab'
|
|
],
|
|
"react/jsx-filename-extension": [
|
|
"error",
|
|
{
|
|
"extensions": [
|
|
".js",
|
|
".jsx"
|
|
]
|
|
}
|
|
],
|
|
"react/prefer-stateless-function": "off"
|
|
},
|
|
"plugins": [
|
|
"import",
|
|
"promise",
|
|
"compat",
|
|
"react"
|
|
],
|
|
"settings": {
|
|
"import/resolver": {
|
|
"webpack": {
|
|
"config": "webpack.config.eslint.js"
|
|
}
|
|
}
|
|
}
|
|
}
|