-
Notifications
You must be signed in to change notification settings - Fork 47.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(eslint-plugin-react-hooks): change array type and improve conditionals #32400
refactor(eslint-plugin-react-hooks): change array type and improve conditionals #32400
Conversation
This change adds configuration to the eslint config governing `eslint-plugin-react-hooks` to use the typescript-eslint plugin and parser. It adds the typescript-recommended config, and configures the team's preferred `array-type` convention.
This change addresses several feedback items from facebook#32240
540d0d9
to
a3279f4
Compare
Comparing: eb1f77d...9913a7b Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: (No significant changes) |
@@ -40,11 +40,11 @@ jobs: | |||
uses: actions/cache@v4 | |||
id: node_modules | |||
with: | |||
path: "**/node_modules" | |||
path: "node_modules" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this just to bust the cache? I don't see why what it was previously needs to be changed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The node_modules
within the fixtures are soft-linking to the build directory for the eslint-plugin. When those node_modules
were fulfilled from cache, the symlinks were broken, and after the build, it's not re-linked. So this changes it so that it's still caching the root node_modules, but not the nested ones. That way those node_modules with the symlinks can be created each time.
a3279f4
to
ff47b9e
Compare
This change removes the nested fixture node_modules from being cached, so that the symbolic link can be made after the build happens. ci (eslint-e2e): exclude nested `node_modules` from cache This change removes the nested fixture node_modules from being cached, so that the symbolic link can be made after the build happens.
ff47b9e
to
6ea4c0d
Compare
…nditionals (#32400) - [build(eslint-plugin-react-hooks): add ts-linting](4c0fbe7) This change adds configuration to the eslint config governing `eslint-plugin-react-hooks` to use the typescript-eslint plugin and parser. It adds the typescript-recommended config, and configures the team's preferred `array-type` convention. - [refactor(eslint-plugin-react-hooks): improve conditionals](540d0d9) This change addresses several feedback items from #32240 - [ci (eslint-e2e): exclude nested node_modules from cache](a3279f4) This change removes the nested fixture `node_modules` from being cached, so that the symbolic link can be made after the build happens. DiffTrain build for [4632e36](4632e36)
build(eslint-plugin-react-hooks): add ts-linting
This change adds configuration to the eslint config governing
eslint-plugin-react-hooks
to use the typescript-eslint plugin and parser. It adds the typescript-recommended config, and configures the team's preferredarray-type
convention.refactor(eslint-plugin-react-hooks): improve conditionals
This change addresses several feedback items from feat(eslint-plugin-react-hooks): convert to typescript and package type declarations #32240
ci (eslint-e2e): exclude nested node_modules from cache
This change removes the nested fixture
node_modules
from being cached, so that the symbolic link can be made after the build happens.