diff --git a/configs/template.config.json b/config/template.config.json similarity index 100% rename from configs/template.config.json rename to config/template.config.json diff --git a/configs/.htmlvalidate.json b/dev_config/.htmlvalidate.json similarity index 100% rename from configs/.htmlvalidate.json rename to dev_config/.htmlvalidate.json diff --git a/configs/.stylelintrc.json b/dev_config/.stylelintrc.json similarity index 100% rename from configs/.stylelintrc.json rename to dev_config/.stylelintrc.json diff --git a/configs/eslint.config.mjs b/dev_config/eslint.config.mjs similarity index 55% rename from configs/eslint.config.mjs rename to dev_config/eslint.config.mjs index 15a9eef..b5522eb 100644 --- a/configs/eslint.config.mjs +++ b/dev_config/eslint.config.mjs @@ -1,17 +1,6 @@ import { defineConfig } from "eslint/config"; 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 defineConfig([js.configs.recommended,{ languageOptions: { @@ -29,8 +18,11 @@ export default defineConfig([js.configs.recommended,{ "linebreak-style": ["error", "unix"], quotes: ["error", "double"], semi: ["error", "always"], - "brace-style": ["error", "stroustrup", { - allowSingleLine: false, - }], + "brace-style": ["error", "stroustrup", { allowSingleLine: false }], + "no-unused-vars": ["warn", { + "argsIgnorePattern": "^_", + "varsIgnorePattern": "^_", + "caughtErrorsIgnorePattern": "^_" + }] }, }]); \ No newline at end of file diff --git a/package.json b/package.json index 012ed57..c5e066d 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Front-end for ProxmoxAAS", "type": "module", "scripts": { - "lint": "html-validate --config configs/.htmlvalidate.json web/html/*; stylelint --config configs/.stylelintrc.json --formatter verbose --fix web/css/*.css; DEBUG=eslint:cli-engine eslint --config configs/eslint.config.mjs --fix web/scripts/", + "lint": "html-validate --config dev_config/.htmlvalidate.json web/html/*; stylelint --config dev_config/.stylelintrc.json --formatter verbose --fix web/css/*.css; DEBUG=eslint:cli-engine eslint --config dev_config/eslint.config.mjs --fix web/scripts/", "update-modules": "rm -rf web/modules/wfa.js web/modules/wfa.wasm; curl https://git.tronnet.net/alu/WFA-JS/releases/download/latest/wfa.js -o web/modules/wfa.js; curl https://git.tronnet.net/alu/WFA-JS/releases/download/latest/wfa.wasm -o web/modules/wfa.wasm" }, "devDependencies": {