PC端编译报错 Empty block statement no-empty


报错信息

编译PC端发现报错:

 YESWEB开发框架PC端编译报错信息

E:\GZ\TMS\TMS.PC\pc-sub-xqtms\src\views\sales\data-view.vue

  165:19  error  Empty block statement  no-empty

图片

报错解析

这种错误信息,首先根据信息翻译一下,Empty block statement 意思就是 空的代码块,ESLint检查不通过引起的

前面的 165:19 代表第165行19个位置出现的报错

图片

我们需要把这个改成

图片

 

其他参考

ESLint检查中,空的代码块设置如下,就不会报错

JavaScript 全选
/*eslint no-empty: "error"*/

if (foo) {
    // empty
}

while (foo) {
    /* empty */
}

try {
    doSomething();
} catch (ex) {
    // continue regardless of error
}

try {
    doSomething();
} finally {
    /* continue regardless of error */
}

更多详细参考:

http://eslint.cn/docs/rules/no-empty

版权声明:本文为YES开发框架网发布内容,转载请附上原文出处连接
张国生
评论列表

发表评论

评论内容
昵称:
关联文章

PC编译 Empty block statement no-empty
新建vue项目出现error Unexpected ‘debugger‘ statement no-debugger
html发布到服务器后部分jpg:net::ERR_BLOCKED_BY_CLIENT
插入代码页面
WCF中常见的:The content type text
.NET Core Winform 打开窗体设计器
EFCore链接数据库
VS .NET使用EF添加实体数据模型向导添加连接
.NETCore 运行项目:Could not load file or assembly ***
C#HTTP请求RestSharp.RestClient发起https请求
阿里云搭建FTP服务器访问 200,227错误
EF 分页 SQL2008 Featch Next
Python多线程中试用wmi
window远程桌面连接:出现身份验证错误。要求的函数不受支持
Python windows服务: Installing service ALicense Error installing service: 拒绝访问
支付宝支付:4004,卖家不在设置的收款账户列表之中
Python读取excel xlrd读取xlsx:Excel xlsx file; not supported
IIS中应用程序池自动停止,重启
支付宝支付:40003,三方应用未绑定服务商账号
.Net启动程序:It was not possible to find any compatible framework version