当前位置:网站首页>You may use special comments to disable some warnings. Three ways to report errors
You may use special comments to disable some warnings. Three ways to report errors
2022-08-05 03:19:00 【Beauty and strength coexist】
You may use special comments to disable (disable) some warnings. Error resolution
Cause ESLint's syntax requirements are too strict, resulting in the errors in the figure above when compiling.
You must know that this is not an abnormality in the code, but a problem with the code format. These errors will not affect the execution result of the code.
Method 1
Find the webpack.base.conf.js file in the build directory, and comment out the related eslint rules.
Turn off the coding specification check, edit webpack.base.conf.js, find the rules node under the module node, and comment out this line:
// ...(config.dev.useEslint ? [createLintingRule()] : []),
Method 2
When the project does not have a build folder, that is, it does not belong to the vue scaffolding project, please go to the index.js file under the config folder in the root directory and set the useEslint property to false.
module.exports = {dev: {useEslint: false}}
Method three
Add rules rules to module.export in the.eslintrc.js folder
rules: {'@typescript-eslint/no-unused-vars': 'off'}
边栏推荐
- 百日刷题计划 ———— DAY2
- Summary of domestic environments supported by SuperMap
- 为什么pca分量没有关联
- 语法基础(变量、输入输出、表达式与顺序语句)
- shell脚本:for循环与while循环
- Simple description of linked list and simple implementation of code
- Use SuperMap iDesktopX data migration tool to migrate map documents and symbols
- Confessing the era of digital transformation, Speed Cloud engraves a new starting point for value
- The Tanabata copywriting you want has been sorted out for you!
- 语法基础(变量、输入输出、表达式与顺序语句完成情况)
猜你喜欢
public static <T> List<T> asList(T... a) 原型是怎么回事?
[论文笔记] MapReduce: Simplified Data Processing on Large Clusters
2022-08-04 The sixth group, hidden from spring, study notes
北斗三号短报文终端露天矿山高边坡监测方案
使用二维码传输文件的小工具 - QFileTrans 1.2.0.1
Confessing the era of digital transformation, Speed Cloud engraves a new starting point for value
.NET应用程序--Helloworld(C#)
tree table lookup
论治理与创新,2022 开放原子全球开源峰会 OpenAnolis 分论坛圆满落幕
Leading the highland of digital medicine, Zhongshan Hospital explores to create a "new paradigm" for future hospitals
随机推荐
Syntax basics (variables, input and output, expressions and sequential statements)
How to sort multiple fields and multiple values in sql statement
ffmpeg 像素格式基础知识
Chinese characters to Pinyin
[Solved] Unity Coroutine coroutine is not executed effectively
sql server 安装提示用户名不存在
Study Notes-----Left-biased Tree
21天学习挑战赛(2)图解设备树的使用
用Unity发布APP到Hololens2无坑教程
.NET Application -- Helloworld (C#)
Question about #sql shell#, how to solve it?
大像素全景制作完成后,推广方式有哪些?
运维监控系统之Open-Falcon
Use @Mapper to query the partition status of oracle and report an error
Simple description of linked list and simple implementation of code
Open Source License Description LGPL
用CH341A烧录外挂Flash (W25Q16JV)
sql怎么找字段里所有数据为空的字段
Android实战开发-Kotlin教程(入门篇-登录功能实现 3.3)
静态方法获取配置文件数据