简体   繁体   English

使用babel-eslint导致错误的空值错误

[英]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.

相关问题 在Sublime Text 3上使用babel-eslint时,Linting无法正常工作 - Linting not working when using babel-eslint on Sublime Text 3 babel-eslint 不允许动态导入 - babel-eslint does not allow dynamic import 在 Windows 10 上全局安装 ESLint + babel-eslint 解析器 - Install ESLint + babel-eslint parser globally on Windows 10 如何在没有配置文件的情况下修复导入/导出babel-eslint? - How to fix import/export babel-eslint without configuration file? Create React App 提供的 react-scripts package 需要依赖: "babel-eslint": "^10.1.0" 不要手动安装 - The react-scripts package provided by Create React App requires a dependency: "babel-eslint": "^10.1.0" dont install it manually 使用 monorepo (Lerna + Yarn Workspaces) 共享代码的 ReactJS linting (eslint) 和 transpiling (babel) 错误 - ReactJS linting (eslint) and transpiling (babel) error on shared code using monorepo (Lerna + Yarn Workspaces) @babel/eslint-parser 在 vue 文件上抛出错误 - @babel/eslint-parser throwing error on vue files 错误:在 VUEJS(ESLINT)中找不到模块“babel-code-frame” - Error: Cannot find module 'babel-code-frame' in VUEJS ( ESLINT) 当我在nextjs上使用babel别名时出现Eslint错误 - Eslint error when I use babel alias on nextjs Eslint 解析错误:由下划线模板引起的`Unexpected token &lt;` - Eslint parsing error: `Unexpected token <` caused by underscore template
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM