diff options
| author | Markus Heiser <markus.heiser@darmarit.de> | 2025-01-30 20:41:22 +0100 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarIT.de> | 2025-02-28 12:27:41 +0100 |
| commit | b74496b192b6bf2d097066deb6981b50ad22d819 (patch) | |
| tree | 7c58c06653044ad97e8f47a706cedd04afb64747 /searx/static | |
| parent | 7a6ea56565362fb9c5de7e056583e4415b6eb320 (diff) | |
[web-client] simple theme: eslint JS source files
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/static')
| -rw-r--r-- | searx/static/themes/simple/eslint.config.mjs | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/searx/static/themes/simple/eslint.config.mjs b/searx/static/themes/simple/eslint.config.mjs deleted file mode 100644 index 747f6bfd4..000000000 --- a/searx/static/themes/simple/eslint.config.mjs +++ /dev/null @@ -1,68 +0,0 @@ -import globals from "globals"; -import path from "node:path"; -import { fileURLToPath } from "node:url"; -import js from "@eslint/js"; -import { FlatCompat } from "@eslint/eslintrc"; - -const __filename = fileURLToPath(import.meta.url); -const __dirname = path.dirname(__filename); -const compat = new FlatCompat({ - baseDirectory: __dirname, - recommendedConfig: js.configs.recommended, - allConfig: js.configs.all -}); - -export default [...compat.extends("eslint:recommended"), { - languageOptions: { - globals: { - ...globals.browser, - ...globals.node, - }, - - ecmaVersion: 12, - sourceType: "commonjs", - }, - - 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: ["*"], - }, - }], - }, -}];
\ No newline at end of file |