chore(lint): ignore dist build output in shared ESLint config (#48216)

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/**`

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Chores**
* Updated linting exclusions to ignore generated build output and static
asset directories.
  * Generalized related configuration documentation for clarity.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
This commit is contained in:
Alaister YoungandAlaister Young authored and GitHub committed 2026-07-22 18:29:41 +00:00
1 parent ca2a390a3d
commit 25658ab733
1 file changed
+2 -2
+2 -2
View File
@@ -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'],