-
-
Notifications
You must be signed in to change notification settings - Fork 75
[Error] JSX functional component #103
Comments
Note: We do not yet officially support TypeScript 2 (although that does not mean that it does not work in all cases). It is not clear from your debug output that this parser, or even ESLint, is the cause of your issue. Please provide more information as to what is going wrong. What is your ESLint config? |
{
"parser": "typescript-eslint-parser",
"extends": ["airbnb"],
"env": {
"node": true,
"jasmine": true
},
"globals": {
"jest": true
},
"rules": {
// conflicts with 'arrow body style'
"no-confusing-arrow": "off",
// due to TypeScript
"no-undef": "off",
"import/no-unresolved": "off",
"import/extensions": "off",
"react/prop-types": "off"
}
} |
Please provide actual source code as per #102 (comment) |
😅 sorry for me being non-predictive. I didn't take you wanting to copy the code into consideration const Component = props => (
<div>
<input
type="text"
value={props.input.value}
onChange={props.input.onChange}
onFocus={props.input.onFocus}
onBlur={props.input.onBlur}
/>
</div>
); |
Thanks @oreqizer, as per #105 TS 2 seems to have broken some JSX related assertions, so my top priority is getting to the bottom of those so we can fully support TS 2. Hopefully this issue you are having will be solved by that work, but if not, I will loop back to this as soon as I am done with TS 2 support. |
@JamesHenry This should also be fixed by #158 |
We have just released @oreqizer Please could you see if you still have the issue with that version? |
Closing as no feedback to the contrary was given. Please feel free to reopen if it is still an issue. |
What version of TypeScript are you using?
^2.0.3
What version of
typescript-eslint-parser
are you using?^0.4.0
What code were you trying to parse?
What did you expect to happen?
I expected it to lint the file.
What happened?
npm-debug.txt
The text was updated successfully, but these errors were encountered: