2021-08-01 14:04:19 +00:00
|
|
|
{
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
2021-11-14 12:26:12 +00:00
|
|
|
"es2021": true,
|
|
|
|
"node": true
|
2021-08-01 14:04:19 +00:00
|
|
|
},
|
|
|
|
"extends": "eslint:recommended",
|
|
|
|
"parserOptions": {
|
2021-08-24 07:52:40 +00:00
|
|
|
"ecmaVersion": 12
|
2021-08-01 14:04:19 +00:00
|
|
|
},
|
|
|
|
"rules": {
|
2021-11-23 17:16:23 +00: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"],
|
|
|
|
"comma-spacing": ["error", { "before": false, "after": true }],
|
|
|
|
"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 14:04:19 +00:00
|
|
|
}
|
|
|
|
}
|