react/scripts/rollup
michael faith 5adf40208f
feat(eslint-plugin-react-hooks): convert to typescript and package type declarations (#32240)
<!--
  Thanks for submitting a pull request!
We appreciate you spending the time to work on these changes. Please
provide enough information so that others can review your pull request.
The three fields below are mandatory.

Before submitting a pull request, please make sure the following is
done:

1. Fork [the repository](https://github.com/facebook/react) and create
your branch from `main`.
  2. Run `yarn` in the repository root.
3. If you've fixed a bug or added code that should be tested, add tests!
4. Ensure the test suite passes (`yarn test`). Tip: `yarn test --watch
TestName` is helpful in development.
5. Run `yarn test --prod` to test in the production environment. It
supports the same options as `yarn test`.
6. If you need a debugger, run `yarn test --debug --watch TestName`,
open `chrome://inspect`, and press "Inspect".
7. Format your code with
[prettier](https://github.com/prettier/prettier) (`yarn prettier`).
8. Make sure your code lints (`yarn lint`). Tip: `yarn linc` to only
check changed files.
  9. Run the [Flow](https://flowtype.org/) type checks (`yarn flow`).
  10. If you haven't already, complete the CLA.

Learn more about contributing:
https://reactjs.org/docs/how-to-contribute.html
-->

## Summary

This change converts the eslint hooks plugin to typescript, which also
allows us to include type declarations in the package, for those using
[typescript eslint
configs](https://eslint.org/blog/2025/01/eslint-v9.18.0-released/#stable-typescript-configuration-file-support).

### Constituent changes that should land before this one

- [x] ~https://github.com/facebook/react/pull/32276~
- [x] https://github.com/facebook/react/pull/32279
- [x] https://github.com/facebook/react/pull/32283
- [x] https://github.com/facebook/react/pull/32393
- [x] https://github.com/facebook/react/pull/32396

Closes #30119

---------

Co-authored-by: Lauren Tan <poteto@users.noreply.github.com>
2025-02-16 14:10:54 -05:00
..
externs Replay Client Actions After Hydration (#26716) 2023-04-25 10:22:20 -04:00
plugins Run Closure on non-minified prod builds, too (#28827) 2024-04-19 14:22:38 -04:00
shims Update React Native shims to use export syntax (#31426) 2024-11-07 14:53:44 +00:00
validate Ensure function arity is preserved after build (#31808) 2024-12-18 14:08:56 +01:00
build-all-release-channels.js [ci] Cleanup --ci flag 2024-07-29 19:18:03 -04:00
build.js build: add support to the rollup build for building typescript packages (#32393) 2025-02-16 10:38:13 -05:00
bundles.js feat(eslint-plugin-react-hooks): convert to typescript and package type declarations (#32240) 2025-02-16 14:10:54 -05:00
forks.js Fork Scheduler feature flags for native-fb (#31859) 2024-12-19 11:49:14 -05:00
generate-inline-fizz-runtime.js [useFormState] Allow sync actions (#27571) 2023-10-31 23:32:31 -04:00
modules.js [Flight] Source Map Actions in Reference Node Loader Transforms (#30755) 2024-08-21 09:52:17 -04:00
packaging.js build: add support to the rollup build for building typescript packages (#32393) 2025-02-16 10:38:13 -05:00
stats.js [ci] Cleanup --ci flag 2024-07-29 19:18:03 -04:00
sync.js Fork React Native renderer into FB and OSS bundles (#12625) 2018-04-18 13:16:50 -07:00
utils.js Fixed broken build script --unsafe-partial flag (#22324) 2021-09-15 13:32:09 -04:00
wrappers.js build: add support to the rollup build for building typescript packages (#32393) 2025-02-16 10:38:13 -05:00