Repository navigation
Ignore the Gradle plugin's build output in ESLint - #60376
Merged
Merged
Conversation
ide
force-pushed
the
@ide/gradle-eslint-ignore-plugin-build
branch
from
November 29, 2026 12:02
6aebee2 to
5f04b69
Compare
ide
marked this pull request as ready for review
November 29, 2026 13:49
chrfalch
reviewed
Nov 29, 2026
chrfalch
left a comment
Collaborator
There was a problem hiding this comment.
Looks good, can be approved.
One optional nit: packages/gradle-plugin/*/build/ only matches a build/ folder one level down. The plugin's own .gitignore has build/, which ignores build output at any depth, including packages/gradle-plugin/build/. Nothing writes test-report JS there today as far as I can tell, but packages/gradle-plugin/**/build/ would match what git ignores and keep the two from drifting.
huntie
approved these changes
Nov 30, 2026
ide
force-pushed
the
@ide/gradle-eslint-ignore-plugin-build
branch
from
December 1, 2026 01:24
5f04b69 to
0d17300
Compare
Visual regressionNo visual differences at |
Gradle writes an HTML test report, with a `report.js`, into the build directory of a module under `packages/gradle-plugin` when its tests run. 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>
ide
force-pushed
the
@ide/gradle-eslint-ignore-plugin-build
branch
from
December 1, 2026 03:06
0d17300 to
2ea3999
Compare
Contributor
Author
|
@chrfalch Changed to |
cortinico
approved these changes
Dec 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
When a module under
packages/gradle-pluginruns its tests, Gradle writes an HTML test report with areport.jsinto the module's build directory. The file has no Flow annotation, soyarn lintfails once the plugin's tests have run:packages/gradle-plugin/.gitignorealready ignoresbuild/at any depth, but ESLint does not read.gitignore. This change addspackages/gradle-plugin/**/build/, which matches the same directories, to.eslintignore, next to the entries for ReactAndroid's build directories.Changelog:
[INTERNAL] [FIXED] - Stop
yarn lintfrom checking the Gradle plugin's test reportsTest Plan:
After running the plugin's tests (
./gradlew -p packages/gradle-plugin :react-native-gradle-plugin:test --tests com.facebook.react.tasks.internal.PreparePrefabHeadersTaskTest), withreport.jspresent:main: an error and two warnings, all inreport.js.Not run:
yarn lintover the whole repository.