保存后,flowconfig不会忽略指定的文件夹

时间:2019-09-12 16:20:54

标签: react-native visual-studio-code flowtype

我在VSCode中。我将flowconfig设置为忽略node_modules文件夹:

[ignore]
node_modules

[include]

[libs]

[lints]

[options]

[strict]

当我单击保存时,一切都很好,并且文件浏览器中的node_modules是灰色的。但是,一旦我开始进行其他工作,几下单击,文件浏览器中的node_modules再次变成红色,并且不再被忽略!

顺便说一句,Flow发现的错误是__DEV__模块中某些位置的所有地方都使用了react-native。它只有几个文件,而且奇怪的是,当我declare var __DEV__将这些文件静音时,其他许多文件也会亮起。

所以是的,我该如何坚持下去?

0 个答案:

没有答案