mirror of
https://github.com/searxng/searxng.git
synced 2024-11-05 00:44:17 +00:00
a7f1649190
Partial merge of [PR-1736] [PR-1736] https://github.com/searxng/searxng/pull/1736 Suggested-by: @FunctionalHacker in [1] Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
28 lines
1 KiB
JSON
28 lines
1 KiB
JSON
{
|
|
"env": {
|
|
"browser": true,
|
|
"es2021": true,
|
|
"node": true
|
|
},
|
|
"extends": "eslint:recommended",
|
|
"parserOptions": {
|
|
"ecmaVersion": 12
|
|
},
|
|
"rules": {
|
|
"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": ["*"] }
|
|
}]
|
|
}
|
|
}
|