1 import svelte from "eslint-plugin-svelte";
2 import mocha from "eslint-plugin-mocha";
3 import globals from "globals";
4 import path from "node:path";
5 import { fileURLToPath } from "node:url";
6 import js from "@eslint/js";
7 import { FlatCompat } from "@eslint/eslintrc";
9 const __filename = fileURLToPath(import.meta.url);
10 const __dirname = path.dirname(__filename);
11 const compat = new FlatCompat({
12 baseDirectory: __dirname,
13 recommendedConfig: js.configs.recommended,
14 allConfig: js.configs.all
17 export default [...compat.extends(
19 "plugin:mocha/recommended",
20 "plugin:svelte/recommended",
41 Nominatim_Config: true,
50 "no-multiple-empty-lines": "off",
52 "no-use-before-define": ["error", {
56 "padded-blocks": "off",
57 "no-param-reassign": "off",
59 "max-len": ["error", 100, 2, {