-
-
Notifications
You must be signed in to change notification settings - Fork 75
Known Issue with JsxText nodes and whitespace (bug in ts.findNextToken() in tsc) #70
Comments
Thanks, @andersekdahl. You are clearly using some plugins, and this error is actually being thrown in ESLint itself, so please can you provide your full configuration? |
Sure, sorry I didn't include it in the first place. .eslintrc
|
There's something in the |
I have dug into this today, and it seems to be because of the I reported the issue here: microsoft/TypeScript#7471 The whitespace characters between the JSX nodes are TypeScript @andersekdahl a temporary workaround (until we can fix this in the TypeScript compiler) is to get rid of the whitespace characters between the JSX nodes: const x = (
<form><div className={styles.separator}></div></form>
); |
@JamesHenry |
@soda0289 TypeScript has been updated significantly since that issue was originally filed, and so I will need to look into it again, and then hopefully be in a position to submit a PR to TS. |
@JamesHenry |
It is still marked as being open to PRs from the community so I will be investigating that as a first option. JSX seems to be the last remaining area which is causing problems for TypeScript + ESLint usage and so it is definitely top of my list of things to resolve! |
I'm delighted to say that this should finally be fixed on master. Release coming soon! |
Fantastic, thank you!! |
First off, thanks for creating this! I'm reeeaaally looking forward to being able to use ESLint with TypeScript!
What version of TypeScript are you using?
1.8.10
What version of
typescript-eslint-parser
are you using?0.1.3
What code were you trying to parse?
What did you expect to happen?
It shouldn't throw an error.
What happened?
The text was updated successfully, but these errors were encountered: