2021-12-27 22:57:05 +01:00
|
|
|
{
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
2022-09-23 22:45:29 +02:00
|
|
|
"es2019": true,
|
2021-12-27 22:57:05 +01:00
|
|
|
"jquery": true
|
|
|
|
},
|
|
|
|
"extends": [
|
|
|
|
"eslint:recommended"
|
|
|
|
],
|
|
|
|
"ignorePatterns": ["dist/", "node_modules/"],
|
|
|
|
"rules": {
|
|
|
|
"block-scoped-var": "error",
|
|
|
|
"consistent-return": "error",
|
|
|
|
"curly": "error",
|
|
|
|
"default-case": "error",
|
|
|
|
"default-param-last": ["error"],
|
|
|
|
"dot-notation": "error",
|
|
|
|
"eqeqeq": "error",
|
|
|
|
"guard-for-in": "error",
|
|
|
|
"max-classes-per-file": "error",
|
|
|
|
"no-alert": "error",
|
|
|
|
"no-caller": "error",
|
|
|
|
"no-else-return": "error",
|
|
|
|
"no-empty-function": "error",
|
|
|
|
"no-floating-decimal": "error",
|
|
|
|
"no-implicit-coercion": "error",
|
|
|
|
"no-multi-spaces": "error",
|
|
|
|
"no-multi-str": "error",
|
|
|
|
"no-param-reassign": "error",
|
|
|
|
"no-return-assign": "error",
|
|
|
|
"no-return-await": "error",
|
|
|
|
"no-self-compare": "error",
|
|
|
|
"no-throw-literal": "error",
|
|
|
|
"no-useless-concat": "error",
|
|
|
|
"radix": ["error", "as-needed"],
|
|
|
|
"require-await": "error",
|
|
|
|
"yoda": "error",
|
|
|
|
"no-shadow": "off",
|
|
|
|
"prefer-destructuring": ["error", { "array": false, "object": true }],
|
|
|
|
"padding-line-between-statements": [
|
|
|
|
"error",
|
|
|
|
{ "blankLine": "always", "prev": "import", "next": "export" },
|
|
|
|
{ "blankLine": "always", "prev": "export", "next": "export" },
|
|
|
|
{ "blankLine": "always", "prev": "*", "next": "return" }
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"parserOptions": {
|
|
|
|
"sourceType": "module"
|
|
|
|
}
|
|
|
|
}
|