summaryrefslogtreecommitdiff
path: root/searx/static/themes/simple/eslint.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'searx/static/themes/simple/eslint.config.js')
-rw-r--r--searx/static/themes/simple/eslint.config.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/searx/static/themes/simple/eslint.config.js b/searx/static/themes/simple/eslint.config.js
new file mode 100644
index 000000000..bc82727b5
--- /dev/null
+++ b/searx/static/themes/simple/eslint.config.js
@@ -0,0 +1,26 @@
+module.exports = [
+ {
+ "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": ["*"] }
+ }
+ ]
+ },
+ languageOptions: {
+ ecmaVersion: 12
+ }
+ }
+];