2021-08-02 22:55:03 +02:00
|
|
|
{
|
2021-08-15 17:13:13 +02:00
|
|
|
"root": true,
|
2021-08-02 22:55:03 +02:00
|
|
|
"env": {
|
|
|
|
"es2021": true,
|
|
|
|
"node": true
|
|
|
|
},
|
|
|
|
"extends": "eslint:recommended",
|
|
|
|
"parserOptions": {
|
|
|
|
"ecmaVersion": 12,
|
|
|
|
"sourceType": "module"
|
|
|
|
},
|
|
|
|
"rules": {
|
2021-08-04 21:27:32 +02:00
|
|
|
"eqeqeq": [ "warn", "always" ],
|
2021-08-03 16:14:40 +02:00
|
|
|
"indent": [
|
|
|
|
"warn",
|
|
|
|
4,
|
|
|
|
{
|
|
|
|
"ArrayExpression": "first",
|
|
|
|
"CallExpression": { "arguments": "first" },
|
|
|
|
"MemberExpression": "off",
|
|
|
|
"ObjectExpression": "off",
|
|
|
|
"ignoreComments": true,
|
|
|
|
"ignoredNodes": [
|
2021-08-03 16:59:01 +02:00
|
|
|
"AssignmentExpression:has(Literal)"
|
2021-08-03 16:14:40 +02:00
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
2021-08-02 22:55:03 +02:00
|
|
|
"getter-return": "off",
|
|
|
|
"no-control-regex": "off",
|
|
|
|
"no-empty": [ "error", { "allowEmptyCatch": true } ],
|
2021-08-04 21:27:32 +02:00
|
|
|
"no-promise-executor-return": [ "error" ],
|
|
|
|
"no-template-curly-in-string": [ "error" ],
|
|
|
|
"no-unreachable-loop": [ "error" ],
|
|
|
|
"no-useless-backreference": [ "error" ],
|
|
|
|
"no-useless-escape": "off",
|
|
|
|
"require-atomic-updates": [ "warn" ]
|
2021-08-02 22:55:03 +02:00
|
|
|
}
|
|
|
|
}
|