GN.*_*GN. 7 javascript eslint flowtype
如果我正在使用流程.. https://flowtype.org/
// @flow
var foo = (str: string) => {
return str;
};
Run Code Online (Sandbox Code Playgroud)
和Eslint在一起,Eslint报告意外的令牌str: string.
有没有办法让Eslint忽略(或识别)流类型而不将它们报告为错误?
正如哈姆雷特所 提到的那样,eslint-plugin-flowtype会做一些事情:
| 归档时间: |
|
| 查看次数: |
4052 次 |
| 最近记录: |