diff options
| author | Markus Heiser <markus.heiser@darmarIT.de> | 2021-12-14 08:07:22 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-14 08:07:22 +0100 |
| commit | 4f22615259fc4a9fb80b47ad5b4bcd17f994bc68 (patch) | |
| tree | 15bcc625b749b3434576837414c66e7cab9d31b8 /searx/static/themes/simple/.eslintrc.json | |
| parent | 5c7167cd5af2c18826595bfff877766dab4b44ca (diff) | |
| parent | f287787c44956a6584f78fdd9d6bf423384d1643 (diff) | |
Merge pull request #538 from return42/eslint
SearXNG JavaScript Style Guide
Diffstat (limited to 'searx/static/themes/simple/.eslintrc.json')
| -rw-r--r-- | searx/static/themes/simple/.eslintrc.json | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/searx/static/themes/simple/.eslintrc.json b/searx/static/themes/simple/.eslintrc.json index 069111bca..57d227f3d 100644 --- a/searx/static/themes/simple/.eslintrc.json +++ b/searx/static/themes/simple/.eslintrc.json @@ -9,5 +9,21 @@ "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"], + "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": ["*"] } + }] } } |