Skip to content

Ignore the Gradle plugin's build output in ESLint - #60376

Draft
ide wants to merge 1 commit into
react:mainfrom
expo:@ide/gradle-eslint-ignore-plugin-build
Draft

ide wants to merge 1 commit into
react:mainfrom
expo:@ide/gradle-eslint-ignore-plugin-build

Conversation

@ide

@ide ide commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Summary:

Gradle writes an HTML test report, with a report.js, into the build directory of each module under packages/gradle-plugin. The file has no Flow annotation, so yarn lint fails once the plugin's tests have run:

packages/gradle-plugin/react-native-gradle-plugin/build/reports/tests/test/js/report.js
   1:1   error    Flow file annotation is missing  ft-flow/require-valid-file-annotation

Git already ignores these directories, but ESLint does not read .gitignore. This change adds them to .eslintignore, next to the entries for ReactAndroid's build directories.

Changelog:

[INTERNAL] [FIXED] - Stop yarn lint from checking the Gradle plugin's test reports

Test Plan:

After running the plugin's tests (./gradlew -p packages/gradle-plugin :react-native-gradle-plugin:test --tests com.facebook.react.tasks.internal.PreparePrefabHeadersTaskTest), with report.js present:

yarn eslint --max-warnings 0 packages/gradle-plugin
  • upstream/main 94aee19ac9: 1 error and 2 warnings, all in report.js.
  • This branch: no problems.

yarn lint over the whole repository was not run.

🤖 Generated with Claude Code

Gradle writes an HTML test report, with a `report.js`, into the build
directory of each module under `packages/gradle-plugin`. The file has
no Flow annotation, so `yarn lint` fails with
`ft-flow/require-valid-file-annotation` once the plugin's tests have
run. Git already ignores these directories; ESLint does not read
`.gitignore`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 28, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant