diff --git a/dashboards/admin-web/eslint.config.mjs b/dashboards/admin-web/eslint.config.mjs index 5a14310e..0e5c7d42 100644 --- a/dashboards/admin-web/eslint.config.mjs +++ b/dashboards/admin-web/eslint.config.mjs @@ -3,6 +3,19 @@ import nextVitals from "eslint-config-next/core-web-vitals"; import nextTs from "eslint-config-next/typescript"; const eslintConfig = defineConfig([ + // Ignores MUST come first so they apply to every subsequent + // config item. globalIgnores() at the bottom of the array works + // for *.next / out / build / next-env.d.ts because eslint-config- + // next handles those internally, but .pnpmfile.cjs is not in that + // default list — declaring an explicit `{ ignores: [...] }` block + // at index 0 is the documented way to make eslint v9 skip files + // entirely before any config rules apply. + { + ignores: [ + "**/.pnpmfile.cjs", + "**/*.cjs", + ], + }, ...nextVitals, ...nextTs, {