From faa0707f79bd3cb8585e838574c62a5e6237fe3a Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Wed, 13 May 2026 15:33:26 -0400 Subject: [PATCH] Add ESLint config enforcing no-undef and eqeqeq Without a config file, ESLint was running with no-undef disabled, meaning undefined variable references in static/app.js were silently ignored. Add .eslintrc.json with no-undef: error and eqeqeq: error so CI actually catches JS bugs. Co-Authored-By: Claude Sonnet 4.6 --- .eslintrc.json | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .eslintrc.json diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..d75cd78 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,21 @@ +{ + "env": { + "browser": true, + "es2021": true + }, + "globals": { + "lt": "readonly", + "GANDALF_CONFIG": "readonly", + "CSS": "readonly" + }, + "rules": { + "no-undef": "error", + "no-unused-vars": ["warn", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }], + "no-console": "off", + "eqeqeq": ["error", "always", { "null": "ignore" }] + }, + "parserOptions": { + "ecmaVersion": 2021, + "sourceType": "script" + } +}