Is there a way to pass a typecheck stream for each file, and not just those with / * flow * /?

In official examples, they always have /* @flow */ at the top of the page. Now this is good and useful for an existing project where I want to discard the stream for each file. When creating a new project from scratch, I would just like to check the type of stream everywhere, without typing /* @flow */ every time. Is it possible?

+11
source share
1 answer

Assuming you have .flowconfig or you can do it, you can add

 [options] all=true 

there.

Note that these are literally all files, so they will also include random files in node_modules . Another alternative would be to use @flow and just use the lint rule, such as require-valid-file-annotation for ESLint.

+17
source

Source: https://habr.com/ru/post/1265451/


All Articles