Flow-for-vscode: What does javascript.validate.enable": false mean?

Created on 22 Aug 2016  路  3Comments  路  Source: flowtype/flow-for-vscode

I am using flow in a JavaScript, not TypeScript, project.

I was struggling to remove syntax errors where flow type annotations were used.

Adding "javascript.validate.enable": false to my workspace fixes this issue.

How is "javascript.validate.enable": false normally used? Is this likely to interfere with other projects? The README states to add this line, but does not reflect on any undesired side-effects I'd like to be aware of.

Most helpful comment

Although I get the theory, isn't this a pretty big tradeoff to make? VSCode does lots of syntax checking beyond types that flow doesn't catch right? Like eslint issues, for example... Is there some way to get flow to do all these things?

All 3 comments

It is not a standard option. It basically turns off validations that VSCode tries to do. VSCode does not understand Flow types which is why you end up with syntax errors. The only real ramifications is that VSCode's built in code syntax checking doesn't run which shouldn't be a problem if you are using Flow.

Makes sense! Thanks.

Although I get the theory, isn't this a pretty big tradeoff to make? VSCode does lots of syntax checking beyond types that flow doesn't catch right? Like eslint issues, for example... Is there some way to get flow to do all these things?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tomitrescak picture tomitrescak  路  7Comments

booboothefool picture booboothefool  路  4Comments

yurtaev picture yurtaev  路  3Comments

siegebell picture siegebell  路  5Comments

rattrayalex-stripe picture rattrayalex-stripe  路  4Comments