From 25658ab7331b9b8843a7a0d97cabfbff68cd076d Mon Sep 17 00:00:00 2001 From: Alaister Young Date: Thu, 23 Jul 2026 02:29:41 +0800 Subject: [PATCH] chore(lint): ignore dist build output in shared ESLint config (#48216) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Follow-up to #48202. The shared ESLint flat config only globally ignored `.next`, `public`, and `.contentlayer`, so with the TanStack Start migration, Studio's Vite build output in `dist/` was getting linted too — making `pnpm --filter studio run lint:ratchet` (and regular lint) far slower than it should be. ESLint flat config doesn't respect `.gitignore`, so being gitignored didn't help. **Changed:** - Added `dist` to the global `ignores` in `eslint-config-supabase/next` (applies to all apps extending the shared config) ## To test - In `apps/studio` (with a `dist/` folder present from a TanStack build), run `npx eslint dist/server/server.js` — it should report "File ignored because of a matching ignore pattern" - `pnpm --filter studio run lint:ratchet` no longer spends time linting `dist/**` ## Summary by CodeRabbit * **Chores** * Updated linting exclusions to ignore generated build output and static asset directories. * Generalized related configuration documentation for clarity. Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com> --- packages/eslint-config-supabase/next.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/eslint-config-supabase/next.js b/packages/eslint-config-supabase/next.js index 049e34bacdd..71265a33557 100644 --- a/packages/eslint-config-supabase/next.js +++ b/packages/eslint-config-supabase/next.js @@ -48,8 +48,8 @@ const typescriptConfig = { } module.exports = defineConfig([ - // Global ignore for the .next folder - { ignores: ['.next', 'public', '.contentlayer'] }, + // Global ignore for build output and static assets + { ignores: ['.next', 'dist', 'public', '.contentlayer'] }, turboConfig, prettierConfig, tanstackQuery.configs['flat/recommended'],