react/scripts/rollup
Jan Kassens 2b1fb91a55
ESLint upgrade to use hermes-eslint (#25915)
Hermes parser is the preferred parser for Flow code going forward. We
need to upgrade to this parser to support new Flow syntax like function
`this` context type annotations or `ObjectType['prop']` syntax.

Unfortunately, there's quite a few upgrades here to make it work somehow
(dependencies between the changes)

- ~Upgrade `eslint` to `8.*`~ reverted this as the React eslint plugin
tests depend on the older version and there's a [yarn
bug](https://github.com/yarnpkg/yarn/issues/6285) that prevents
`devDependencies` and `peerDependencies` to different versions.
- Remove `eslint-config-fbjs` preset dependency and inline the rules,
imho this makes it a lot clearer what the rules are.
- Remove the turned off `jsx-a11y/*` rules and it's dependency instead
of inlining those from the `fbjs` config.
- Update parser and dependency from `babel-eslint` to `hermes-eslint`.
- `ft-flow/no-unused-expressions` rule replaces `no-unused-expressions`
which now allows standalone type asserts, e.g. `(foo: number);`
- Bunch of globals added to the eslint config
- Disabled `no-redeclare`, seems like the eslint upgrade started making
this more precise and warn against re-defined globals like
`__EXPERIMENTAL__` (in rollup scripts) or `fetch` (when importing fetch
from node-fetch).
- Minor lint fixes like duplicate keys in objects.
2022-12-20 14:27:01 -05:00
..
plugins [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
shims [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
validate ESLint upgrade to use hermes-eslint (#25915) 2022-12-20 14:27:01 -05:00
wrappers Fix module-boundary wrappers (#22688) 2021-11-04 10:40:35 -04:00
build-all-release-channels.js React `version` field should match package.json (#24445) 2022-04-26 16:28:48 -04:00
build.js Remove Reconciler fork (1/2) (#25774) 2022-12-01 23:06:25 -05:00
bundles.js [react-www] remove forked bundle (#25866) 2022-12-13 10:44:48 -05:00
forks.js Revert "Fork ReactDOMSharedInternals for www (#25791)" (#25864) 2022-12-12 09:39:57 -08:00
generate-inline-fizz-runtime.js [Float] add support for scripts and other enhancements (#25480) 2022-10-17 14:00:20 -07:00
modules.js Remove old react-fetch, react-fs and react-pg libraries (#25577) 2022-10-27 17:52:53 -04:00
packaging.js Add Bun streaming server renderer (#25597) 2022-11-17 13:15:56 -08:00
stats.js Fix sizebot (#15771) 2019-05-29 21:30:16 -07: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 Add Bun streaming server renderer (#25597) 2022-11-17 13:15:56 -08:00