[英]Using babel-eslint caused false no-empty error
After adding to the project babel-plugin-transform-class-properties
and therefore babel-eslint
as the eslint parser, we all of a sudden got no-empty
errors on empty blocks that contain only a comment. 在将项目
babel-plugin-transform-class-properties
添加到项目中并因此将babel-eslint
为eslint解析器之后,我们突然在仅包含注释的空块上出现了no-empty
错误。 According to the docs , this is allowed. 根据文档 ,这是允许的。
Any ideas? 有任何想法吗?
versions: eslint: 3.13.1 babel-eslint: 8.2.5 版本:eslint:3.13.1 babel-eslint:8.2.5
升级到eslint 5.0.1解决了该问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.