当前位置:网站首页>Eslint common error reporting set
Eslint common error reporting set
2022-07-26 02:28:00 【Lin dada】
1、Unexpected space before function parentheses space-before-function-paren

Error reason : Because in the function you write : There is a space between the function name and parameter brackets
resolvent :
data() {
return {
isEdit: false
}
},2、'xxx' must be hyphenated (vue/attribute-hyphenation)
Error reason : Use of component parameters Hump named It will cause this error , Change to short horizontal line connection prop
resolvent :
<innerMain
:problem-list="problemList"
/>3、 Require self-closing on Vue.js custom components (<xxx>) vue/html-self-closing
Error reason : Custom components do not use self closing tag writing
resolvent :
<ProblemItem
v-for="item in problemList"
:key="item.id"
/>4、The "xxx" property should be a constructor vue/require-prop-type-constructor
Error reason : Components props When there are many types, use the array method
resolvent :
props: {
pid: {
type: [Number, String],
default: -1
}
}---- Continuous updating ---
边栏推荐
- Adruino basic experimental learning (I)
- From a data incremental processing problem, we can see the consciousness gap of technicians
- ggplot2学习总结
- 关于mysql的问题,希望个位能帮一下忙
- assert _Aligns
- 18. Delete the penultimate node of the linked list
- 18_请求文件
- Postman报Json序列化错误
- uni-app跨域配置
- Binary search 33. search rotation sort array
猜你喜欢

Acwing 379. hide and seek problem solution (minimum path non repeating point coverage)

我来图书馆小程序签到流程分析
![[C]详解语言文件操作](/img/12/4affa1d3fb3e4ee126e1c1e3872d9b.png)
[C]详解语言文件操作

DFS Niuke maze problem
![[pure theory] Yolo v4: optimal speed and accuracy of object detection](/img/1f/f38c3b38feed9e831ad84b4bbf81c0.png)
[pure theory] Yolo v4: optimal speed and accuracy of object detection

i. Mx6ull snvs power domain GPIO status hold verification

Information System Project Manager - Chapter 10 communication management and stakeholder management examination questions over the years

What can EAM system help enterprises do?

增删改查业务的快速上手

1. Mx6ul core module uses serial NAND FLASH read / write test (III)
随机推荐
[red team] att & CK - using bits services to achieve persistence
IDEA运行web项目出现乱码问题有效解决(附详细步骤)
C unit test
17.反转链表
Exclusive interview with ringcentral he Bicang: empowering future mixed office with innovative MVP
Adruino basic experimental learning (I)
GAMES101复习:光栅化
数仓:浅谈银行业的数仓构建实践
Data warehouse: Practice of hierarchical structure of data warehouse in banking industry
17_ Form Data
Is it safe to open galaxy securities account by mobile phone?
我来图书馆小程序一键签到和一键抢位置工具
Pinia plugin persist, a data persistence plug-in of Pinia
ERROR: could not extract tar starting at offset 000000000000020980+9231072+2
商业智能BI全解析,探寻BI本质与发展趋势
2022-07-17
Exclusive interview with ringcentral he Bicang: empowering future mixed office with innovative MVP
关于mysql的问题,希望个位能帮一下忙
Ggplot2 learning summary
Prometheus+blackbox exporter+grafana monitoring server port and URL address