Skip to content

chore: exclude **/build/ from eslint ignorePatterns#1082

Merged
msluszniak merged 1 commit intomainfrom
fix/eslint-ignore-cmake-build-dir
Apr 20, 2026
Merged

chore: exclude **/build/ from eslint ignorePatterns#1082
msluszniak merged 1 commit intomainfrom
fix/eslint-ignore-cmake-build-dir

Conversation

@msluszniak
Copy link
Copy Markdown
Member

@msluszniak msluszniak commented Apr 20, 2026

Summary

  • Add **/build/ to ESLint's ignorePatterns so local CMake build artifacts don't trip the linter.
  • CMake-generated compiler_depend.ts timestamp files (the .ts here means "timestamp", not TypeScript) are written into packages/react-native-executorch/common/rnexecutorch/tests/build/ when the native test suite is built locally. The root lint glob "**/*.{js,ts,tsx}" picks them up and fails with Parsing error: Invalid character.
  • These files are already gitignored, so this only affects local developer runs — but aligning ESLint with .gitignore avoids confusing noise.

Test plan

  • yarn lint passes cleanly on a workspace with the CMake test build present (so you need to build tests in packages/react-native-executorch/common/rnexecutorch/tests first)
  • pre-commit hooks (format-js, lint, types) green

CMake-generated compiler_depend.ts timestamp files inside local build/
directories cause parsing errors when lint runs from a workspace that
has built the native test suite.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@msluszniak msluszniak requested a review from qvpiotr April 20, 2026 09:16
@msluszniak msluszniak merged commit 93a4703 into main Apr 20, 2026
2 checks passed
@msluszniak msluszniak deleted the fix/eslint-ignore-cmake-build-dir branch April 20, 2026 09:19
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.

2 participants