react/scripts
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
..
babel [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
bench Bump ecstatic from 2.2.1 to 2.2.2 in /scripts/bench (#20468) 2021-06-29 16:53:31 -04:00
circleci Add snapshot testing on e2e test failure (#24672) 2022-06-06 10:36:58 -07:00
devtools [DevTools][BE] Read username using gh in release script (#25270) 2022-09-15 18:12:46 -07:00
error-codes Rename experimental useEvent to useEffectEvent (#25881) 2022-12-14 15:08:29 -05:00
eslint [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
eslint-rules Remove Reconciler fork (1/2) (#25774) 2022-12-01 23:06:25 -05:00
flow ESLint upgrade to use hermes-eslint (#25915) 2022-12-20 14:27:01 -05:00
git Remove leftover env variable logic in pre-commit hook 2015-09-01 14:35:47 -07:00
jest Remove Reconciler fork (1/2) (#25774) 2022-12-01 23:06:25 -05:00
perf-counters [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
prettier [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
print-warnings [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
release [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
rollup ESLint upgrade to use hermes-eslint (#25915) 2022-12-20 14:27:01 -05:00
shared Add Bun streaming server renderer (#25597) 2022-11-17 13:15:56 -08:00
tasks [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
yarn chore: upgrade to jest 24 (#15778) 2019-10-03 22:44:18 +05:30
authors AUTHORS 2013-09-09 23:42:54 -07:00