Closed
Description
Users adding Flow to their project will bump into this error:
https://github.com/evcohen/eslint-plugin-jsx-a11y/issues/249
node_modules/eslint-plugin-jsx-a11y/src/rules/media-has-caption.js:54
54: if (child.type !== 'JSXElement') {
^^^^ property `type`. Property not found in
54: if (child.type !== 'JSXElement') {
^^^^^ Node
This is because eslint-plugin-jsx-a11y
currently intentionally ships src
directory which recently got Flow annotations.
I don't know what the solution is but filed this to keep tracking.
The workaround for now would be to add this plugin to [ignore]
section of .flowconfig
but of course this breaks our zero-config promise.