当前位置:网站首页>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'}
边栏推荐
- 用Unity发布APP到Hololens2无坑教程
- 数学-求和符号的性质
- Why is the pca component not associated
- How to transfer a single node of Youxuan database to a cluster
- torch.roll()
- Use SuperMap iDesktopX data migration tool to migrate map documents and symbols
- 软链接引发的物理备份问题
- Syntax basics (variables, input and output, expressions and sequential statements)
- 今年七夕,「情蔬」比礼物更有爱
- Solve the problem of port occupancy Port xxxx was already in use
猜你喜欢
【滤波跟踪】基于matlab无迹卡尔曼滤波惯性导航+DVL组合导航【含Matlab源码 2019期】
[Filter tracking] based on matlab unscented Kalman filter inertial navigation + DVL combined navigation [including Matlab source code 2019]
Never put off till tomorrow what you can put - house lease management system based on the SSM
Dynamic management of massive service instances
mysql没法Execute 大拿们求解
2022-08-04 The sixth group, hidden from spring, study notes
你要的七夕文案,已为您整理好!
Bubble Sort and Quick Sort
Step by step how to perform data risk assessment
presto启动成功后出现2022-08-04T17:50:58.296+0800 ERROR Announcer-3 io.airlift.discovery.client.Announcer
随机推荐
YYGH-13-客服中心
QStyle platform style
QT language file production
shell脚本:for循环与while循环
AI + Small Nucleic Acid Drugs | Eleven Completes $22 Million Seed Round Financing
How to simulate the background API call scene, very detailed!
sql怎么找字段里所有数据为空的字段
Syntax basics (variables, input and output, expressions and sequential statement completion)
Linux下常见的开源数据库,你知道几个?
The usage of try...catch and finally in js
百日刷题计划 ———— DAY2
[Filter tracking] based on matlab unscented Kalman filter inertial navigation + DVL combined navigation [including Matlab source code 2019]
Native js realizes the effect of selecting and canceling all the multi-select boxes
从“能用”到“好用” 国产软件自主可控持续推进
[Solved] Unity Coroutine coroutine is not executed effectively
2022高处安装、维护、拆除考试题模拟考试题库及在线模拟考试
使用二维码传输文件的小工具 - QFileTrans 1.2.0.1
大像素全景制作完成后,推广方式有哪些?
2022-08-04 第六小组 瞒春 学习笔记
ffmpeg 枚举decoders, encoders 分析