Skip to content

chore: exclude example/dist from eslint#49

Merged
janicduplessis merged 1 commit into
mainfrom
@janic/fix-eslint-ignore-example-dist
Jul 2, 2026
Merged

chore: exclude example/dist from eslint#49
janicduplessis merged 1 commit into
mainfrom
@janic/fix-eslint-ignore-example-dist

Conversation

@janicduplessis

Copy link
Copy Markdown
Collaborator

Summary

Running yarn lint locally never finishes when example/dist (the example app's web export) exists: the eslint glob picks up the 2 MB minified _expo/static/js/web/entry-*.js bundle and the prettier/prettier rule grinds on it for 10+ minutes. CI is unaffected since it lints a clean checkout. This adds example/dist/ to the flat-config ignores next to the other generated output (lib/).

Test Plan

  • With example/dist present locally, yarn lint:eslint used to hang for 10+ minutes; with this change it completes in ~7 s with no errors.

The example web export contains a 2 MB minified bundle that the
prettier rule takes many minutes to process, so a local yarn lint
effectively never finishes when example/dist exists.
@janicduplessis janicduplessis marked this pull request as ready for review July 2, 2026 03:44
@janicduplessis janicduplessis merged commit b5bff6a into main Jul 2, 2026
5 checks passed
@janicduplessis janicduplessis deleted the @janic/fix-eslint-ignore-example-dist branch July 2, 2026 03:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant