Add analyzer and frontend lint guardrails

This commit is contained in:
2026-02-07 02:12:00 +01:00
parent 34d274d244
commit 5b06e279f3
19 changed files with 1313 additions and 53 deletions

21
eslint.config.js Normal file
View File

@@ -0,0 +1,21 @@
import js from "@eslint/js";
import globals from "globals";
export default [
{
files: ["wwwroot/**/*.js"],
...js.configs.recommended,
languageOptions: {
...js.configs.recommended.languageOptions,
ecmaVersion: 2024,
sourceType: "module",
globals: {
...globals.browser,
},
},
rules: {
...js.configs.recommended.rules,
"no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
},
},
];