Created by: iainbeeston
Background
After upgrading my app to create-react-app
1.0.0, I started seeing flow errors, coming from eslint-plugin-jsx-a11y
that's bundled with create-react-app
. I've been able to reproduce in a simple test app, and you can see the flow errors raised in the circleci build for it.
What went wrong?
create-react-app
currently uses eslint-plugin-jsx-a11y
locked to version 5.0.1, which has a bug with it's flow types. This issue was fixed in version 5.0.2.
How have I fixed it?
I've updated the package.json
file for each of the packages in create-react-app
to use the latest version (5.0.3) of eslint-plugin-jsx-a11y
, which has the fix. I've also removed some flow config from react-error-overlay
that was explicitly ignoring the flow errors that I've been seeing (no longer needed now the underlying issue in eslint-plugin-jsx-a11y
has been fixed).