I'm trying to use ESLint with Flow, but when I test it out in my file ESLint doesn't detect that I'm using static types.
var str: number = 'hello world';
What can I install or how can I make my linter ignore this? The colon, specifically.
在.eslintrc中使用babel-eslint作为解析器:
"parser": "babel-eslint",
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.