Closed
Description
v0.5.0
with the following JSX
function Foo() {
return <Bar baz />;
}
I get the following error:
Cannot read property 'type' of null
TypeError: Cannot read property 'type' of null
at EventEmitter.JSXAttribute (/path/to/project/node_modules/eslint-plugin-jsx-a11y/lib/rules/valid-aria-role.js:27:43)
However it works if I use this instead:
function Foo() {
return <Bar baz={false} />;
}