From 41588bd2677cfb21fd57c3ca636f01ce31763c83 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 26 Mar 2026 13:02:03 +0000 Subject: [PATCH] chore: fix .eslintrc.json sourceType and add eslint:recommended extends - Change sourceType from 'module' to 'script': the extension uses CommonJS (require/module.exports), not ES Modules. The 'module' setting caused ESLint to misparse the code. - Add 'extends: eslint:recommended' to enable a sensible baseline of recommended rules automatically. - Remove 'browser: false' (already the default) and the unnecessary 'ecmaFeatures.jsx' option (no JSX in this project). - Add explicit 'ecmaVersion: 2015' to match the jsconfig.json target. - Existing rules are kept as 'warn' overrides so as not to introduce new lint errors on the current codebase. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .eslintrc.json | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 02509e2..9fd1a21 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,15 +1,13 @@ { + "extends": "eslint:recommended", "env": { - "browser": false, "commonjs": true, "es6": true, "node": true }, "parserOptions": { - "ecmaFeatures": { - "jsx": true - }, - "sourceType": "module" + "ecmaVersion": 2015, + "sourceType": "script" }, "rules": { "no-const-assign": "warn",