dillon1000/react
Commit
Browse files feat(eslint-plugin-react-hooks): merge rule from eslint-plugin-react-compiler into `react-hooks` plugin (#32416)
This change merges the `react-compiler` rule from `eslint-plugin-react-compiler` into the `eslint-plugin-react-hooks` plugin. In order to do the move in a way that keeps commit history with the moved files, but also no remove them from their origin until a future cleanup change can be done, I did the `git mv` first, and then recreated the files that were moved in their original places, as a separate commit. Unfortunately GH shows the moved files as new instead of the ones that are truly new. But in the IDE and `git blame`, commit history is intact with the moved files. Since this change adds new dependencies, and one of those dependencies has a higher `engines` declaration for `node` than what the plugin currently has, this is technically a breaking change and will have to go out as part of a major release. ### Related Changes - https://github.com/facebook/react/pull/32458 --------- Co-authored-by: Lauren Tan <[email protected]>
Changed paths26 files
First-parent comparisonbabel.config-react-compiler.js AddedM compiler/apps/playground/yarn.lock ModifiedM compiler/packages/babel-plugin-react-compiler/tsconfig.json ModifiedM compiler/packages/babel-plugin-react-compiler/tsup.config.ts ModifiedM compiler/yarn.lock ModifiedM fixtures/eslint-v6/yarn.lock ModifiedM fixtures/eslint-v7/yarn.lock ModifiedM fixtures/eslint-v8/yarn.lock ModifiedM fixtures/eslint-v9/yarn.lock ModifiedM package.json ModifiedA packages/eslint-plugin-react-hooks/__tests__/ReactCompilerRule-test.ts AddedA packages/eslint-plugin-react-hooks/__tests__/ReactCompilerRuleTypescript-test.ts AddedM packages/eslint-plugin-react-hooks/package.json ModifiedM packages/eslint-plugin-react-hooks/src/index.ts ModifiedA packages/eslint-plugin-react-hooks/src/rules/ReactCompiler.ts AddedA packages/eslint-plugin-react-hooks/src/types/hermes-eslint.d.ts AddedA packages/eslint-plugin-react-hooks/src/types/hermes-parser.d.ts AddedM packages/eslint-plugin-react-hooks/tsconfig.json ModifiedM packages/react-refresh/src/__tests__/__snapshots__/ReactFreshBabelPlugin-test.js.snap ModifiedM scripts/error-codes/__tests__/__snapshots__/transform-error-messages.js.snap ModifiedM scripts/jest/config.base.js ModifiedA scripts/react-compiler/build-compiler.sh AddedA scripts/react-compiler/link-compiler.sh AddedM scripts/rollup/build.js ModifiedM scripts/rollup/bundles.js ModifiedM yarn.lock ModifiedPatch
Files changed
Rendering syntax-highlighted changes…