2020-08-17 15:03:10 -04:00
|
|
|
{
|
2020-08-18 09:47:06 -04:00
|
|
|
"parser": "babel-eslint",
|
2020-08-17 15:03:10 -04:00
|
|
|
"env": {
|
|
|
|
"es6": true,
|
|
|
|
"browser": true
|
|
|
|
},
|
|
|
|
"extends": [
|
|
|
|
"eslint:recommended",
|
|
|
|
"plugin:import/errors",
|
|
|
|
"plugin:import/warnings"
|
|
|
|
],
|
|
|
|
"parserOptions": {
|
|
|
|
"ecmaVersion": 2020,
|
|
|
|
"sourceType": "module"
|
|
|
|
},
|
|
|
|
"plugins": [
|
2020-08-18 09:47:06 -04:00
|
|
|
"import"
|
2020-08-17 15:03:10 -04:00
|
|
|
],
|
|
|
|
"rules": {
|
|
|
|
"indent": [
|
|
|
|
"error",
|
2020-08-18 09:47:06 -04:00
|
|
|
"tab"
|
2020-08-17 15:03:10 -04:00
|
|
|
],
|
|
|
|
"linebreak-style": [
|
|
|
|
"error",
|
|
|
|
"unix"
|
|
|
|
],
|
|
|
|
"quotes": [
|
|
|
|
"error",
|
|
|
|
"double",
|
|
|
|
{
|
|
|
|
"avoidEscape": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"semi": [
|
|
|
|
"error",
|
|
|
|
"never"
|
|
|
|
],
|
|
|
|
"comma-dangle": [
|
|
|
|
"error",
|
|
|
|
"only-multiline"
|
|
|
|
],
|
|
|
|
"comma-spacing": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"after": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"eol-last": [
|
|
|
|
"error",
|
|
|
|
"always"
|
|
|
|
],
|
|
|
|
"no-trailing-spaces": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"import/no-unresolved": "off",
|
|
|
|
"import/named": "error",
|
|
|
|
"import/namespace": "error",
|
|
|
|
"import/default": "error",
|
|
|
|
"import/export": "error",
|
|
|
|
"import/order": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"newlines-between": "always",
|
|
|
|
"groups": [
|
|
|
|
"builtin",
|
|
|
|
"external",
|
|
|
|
[
|
|
|
|
"internal",
|
|
|
|
"sibling",
|
|
|
|
"parent"
|
|
|
|
],
|
|
|
|
"index"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"max-len": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"code": 100
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"prefer-const": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"destructuring": "all",
|
|
|
|
"ignoreReadBeforeAssign": false
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"arrow-spacing": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"before": true,
|
|
|
|
"after": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"space-before-blocks": [
|
|
|
|
"error",
|
|
|
|
"always"
|
|
|
|
],
|
|
|
|
"object-curly-spacing": [
|
|
|
|
"error",
|
|
|
|
"always"
|
|
|
|
],
|
|
|
|
"array-bracket-spacing": [
|
|
|
|
"error",
|
|
|
|
"never"
|
|
|
|
],
|
|
|
|
"space-in-parens": [
|
|
|
|
"error",
|
|
|
|
"never"
|
|
|
|
],
|
|
|
|
"keyword-spacing": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"before": true,
|
|
|
|
"after": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"key-spacing": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"afterColon": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"template-curly-spacing": [
|
|
|
|
"error",
|
|
|
|
"never"
|
|
|
|
],
|
|
|
|
"no-empty": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"allowEmptyCatch": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"arrow-body-style": [
|
|
|
|
"error",
|
|
|
|
"as-needed"
|
|
|
|
],
|
|
|
|
"no-multiple-empty-lines": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"max": 1,
|
|
|
|
"maxBOF": 0,
|
|
|
|
"maxEOF": 0
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"no-prototype-builtins": "off",
|
|
|
|
"dot-notation": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"allowKeywords": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"quote-props": [
|
|
|
|
"error",
|
|
|
|
"as-needed"
|
|
|
|
],
|
|
|
|
"no-multi-spaces": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"space-infix-ops": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"object-curly-newline": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"multiline": true,
|
|
|
|
"consistent": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"no-mixed-operators": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"no-extra-parens": [
|
|
|
|
"error",
|
|
|
|
"all",
|
|
|
|
{
|
|
|
|
"nestedBinaryExpressions": false
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|