WebStorm Scoped React Coding Assistance

Hi!

I have a monorepo project with several packages. Some of which use React + Flow.

Under JavaScript Libraries, in settings, I can decide which libraries will be used in each package/sub-directory (NodeJs Core in Node packages, HTML in browser packages, etc.)

However, when I open the packages using React + Flow, I am asked to change the project language version to Flow. But that is a global setting.

Is there a way to enable React coding assistance only for some subdirectories like with libraries?

I saw that there are some React and Flow libraries available to download in settings, but has it the same effect as changing the language version?

What should I do?

Thank you very much!

2 comments
Comment actions Permalink

Yes, you can also configure different JavaScript language versions for different folders. Click the button next to the drop-down with the version, then select a folder and the language version used for its files

 

 

 

see https://blog.jetbrains.com/webstorm/2017/09/webstorm-2017-3-eap-173-2463/#multiple-js-versions

1
Comment actions Permalink

Great! Thank you very much! Worked fine.

0

Please sign in to leave a comment.