vue的报错

A space is required after ‘,’

在,后面要加空格

Extra semicolon

额外分号

Expected indentation of 2 spaces but found 4

所有缩进只能用两个空格

Expected space or tab before ‘*/’ in comment

注释中“*/”前应有空格或制表符

Expected an assignment or function call and instead saw an expression

应为赋值或函数调用,但看到的却是表达式

Identifier ‘sys_val’ is not in camel case

标识符不是驼峰大小写

key-spacing

对象字面量中冒号的前后空格

Missing space before value for key ‘methods’

在关键字“值”之前缺少空格

Missing space before function parentheses

函数括号前缺少空格,方法名和括号之间加个空格

More than 1 blank line not allowed

不允许有多个空行

Newline required at end of file but not found

在最后的后面再加一行

no-unused-vars

不能有声明后未被使用的变量或参数

‘sys_val’ is assigned a value but never used

xx被指定了一个值,但从未使用过

space-before-blocks Missing space before opening brace

关键字后面要空一格

The “data” option should be a function that returns a per-instance value in component definitions.

// 报错
data: {
  current: tp.current
}
// 解决
data () {
  return {
    current: tp.current
  }
}

Unexpected space between function name and paren

函数名和paren之间有意外的空格

Unexpected trailing comma

多余的尾随逗号

Trailing spaces not allowed

不允许尾随空格

  • 2
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值