-
-
Notifications
You must be signed in to change notification settings - Fork 239
Typescript and plugin-proposal-optional-chaining #727
Comments
babel-eslint doesn't currently read your Babel config file when parsing. There is work being done to change this, but it's a work in progress at the moment. |
Hey @kaicataldo So once #711 is done, i can do optional chaining with typescript? |
Once #711 lands and is released, babel-eslint will read your Babel config file for parsing (no guarantees all the rules will work immediately, but it'll be able to parse everything Babel does!). |
@kaicataldo Thx for that reply. |
|
@kaicataldo |
Once #711 lands babel-eslint will be able to parse anything your configuration of Babel is able to parse. |
It's done, but there's no way to tell typescript this is fine now. So, webstorm for example will still complain that it does not know what you're talking about but the feature works fine. |
@RWOverdijk Have you found a way to force Web/PhpStorm to ignore this "TS: Expression expected" language service error altogether? I use the same setup and Babel compiles it fine, but I almost don't want to use optional chaining at all if all my files are covered in these errors. I assume there's no need to use |
@micaww What I did was disable the TS language services and tell webstorm I'm using babel. I can't remember where... But it's not worth it for me, as I lose all other checks. I guess the only thing left is.. Wait. Or help push the proposal. :) |
.babelrc
Will this work now or in future?
I tried g-plane/pluggable-babel-eslint
but still can't do optional chaining with typescript
The text was updated successfully, but these errors were encountered: