2021-08-01 16:04:19 +02:00
|
|
|
{
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
2021-11-14 13:26:12 +01:00
|
|
|
"es2021": true,
|
|
|
|
"node": true
|
2021-08-01 16:04:19 +02:00
|
|
|
},
|
|
|
|
"extends": "eslint:recommended",
|
|
|
|
"parserOptions": {
|
2021-08-24 09:52:40 +02:00
|
|
|
"ecmaVersion": 12
|
2021-08-01 16:04:19 +02:00
|
|
|
},
|
|
|
|
"rules": {
|
2021-11-23 18:16:23 +01:00
|
|
|
"indent": ["error", 2],
|
|
|
|
"keyword-spacing": ["error", { "before": true, "after": true }],
|
|
|
|
"no-trailing-spaces": 2,
|
|
|
|
"space-before-function-paren": ["error", "always"],
|
|
|
|
"space-infix-ops": "error",
|
|
|
|
"comma-spacing": ["error", { "before": false, "after": true }],
|
|
|
|
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
|
|
|
|
"curly": ["error", "multi-line"],
|
|
|
|
"block-spacing": ["error", "always"],
|
|
|
|
"dot-location": ["error", "property"],
|
|
|
|
"key-spacing": ["error", { "beforeColon": false, "afterColon": true }],
|
|
|
|
"spaced-comment": ["error", "always", {
|
|
|
|
"line": { "markers": ["*package", "!", "/", ",", "="] },
|
|
|
|
"block": { "balanced": true, "markers": ["*package", "!", ",", ":", "::", "flow-include"], "exceptions": ["*"] }
|
|
|
|
}]
|
2021-08-01 16:04:19 +02:00
|
|
|
}
|
|
|
|
}
|