197 lines
3.2 KiB
JSON
197 lines
3.2 KiB
JSON
{
|
|
"env": {
|
|
"es6": true,
|
|
"browser": true
|
|
},
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:import/errors",
|
|
"plugin:import/warnings"
|
|
],
|
|
"parser": "@babel/eslint-parser",
|
|
"parserOptions": {
|
|
"sourceType": "module",
|
|
"requireConfigFile": false
|
|
},
|
|
"plugins": [
|
|
"import",
|
|
"react-hooks"
|
|
],
|
|
"rules": {
|
|
"indent": [
|
|
"error",
|
|
"tab"
|
|
],
|
|
"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"
|
|
],
|
|
"camelcase": [
|
|
"error",
|
|
{
|
|
"properties": "always"
|
|
}
|
|
],
|
|
"import/no-unresolved": "off",
|
|
"import/named": "error",
|
|
"import/namespace": "error",
|
|
"import/default": "error",
|
|
"import/export": "error",
|
|
"import/order": [
|
|
"error",
|
|
{
|
|
"newlines-between": "always",
|
|
"pathGroups": [
|
|
{
|
|
"pattern": "{.,..,../..,../../..,../../../..}/lib/**",
|
|
"group": "external"
|
|
}
|
|
],
|
|
"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": false,
|
|
"consistent": true
|
|
}
|
|
],
|
|
"no-mixed-operators": [
|
|
"error"
|
|
],
|
|
"no-extra-parens": [
|
|
"error",
|
|
"all",
|
|
{
|
|
"nestedBinaryExpressions": false
|
|
}
|
|
]
|
|
}
|
|
}
|