Open
Description
Package versions
"eslint": "8.56.0"
"eslint-plugin-ft-flow": "3.0.9"
"eslint-config-recommended": "4.1.0",
"flow-bin": "0.236.0"
"hermes-eslint": "0.21.1"
.eslintrc
{
"parser": "hermes-eslint",
"plugins": [
"ft-flow"
],
"extends": [
"eslint:recommended",
"plugin:ft-flow/recommended",
]
}
Code
component C() {
return <div />;
}
export default C;
Expected behavior
No errors!
Actual behavior
I'm scratching my head with this one. I reduced my .eslintrc
config to the bare minimum of what is expected but can't seem to make it work. What confuses me is that it works fine @ Try Flow, which makes it that much more confusing as to figuring out what I'm doing wrong.
If I make the component into a plain functional component, it works as expected. Am I missing some details when it comes to component syntax?
Activity