当前位置:网站首页>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'}
边栏推荐
- 冰蝎V4.0攻击来袭,安全狗产品可全面检测
- dmp (dump) dump file
- burp安装及代理设置
- The Tanabata copywriting you want has been sorted out for you!
- 软链接引发的物理备份问题
- PostgreSQL数据库 用navicat 打开表结构的时候报错 cannot update secondarysnapshot during a parallel operation 怎么解决?
- 使用二维码传输文件的小工具 - QFileTrans 1.2.0.1
- J9 Digital Currency: What is the creator economy of web3?
- Android实战开发-Kotlin教程(入门篇-登录功能实现 3.3)
- CPDA|How Operators Learn Data Analysis (SQL) from Negative Foundations
猜你喜欢
Intersection of Boolean Operations in SuperMap iDesktop.Net - Repairing Complex Models with Topological Errors
Tencent Cloud [Hiflow] New Era Automation Tool
Multithreading (2)
ASP.NET应用程序--Hello World
引领数字医学高地,中山医院探索打造未来医院“新范式”
冒泡排序与快速排序
论治理与创新,2022 开放原子全球开源峰会 OpenAnolis 分论坛圆满落幕
public static <T> List<T> asList(T... a) 原型是怎么回事?
毕设-基于SSM房屋租赁管理系统
金仓数据库如何验证安装文件平台正确性
随机推荐
队列题目:最近的请求次数
The pit of std::string::find return value
【滤波跟踪】基于matlab无迹卡尔曼滤波惯性导航+DVL组合导航【含Matlab源码 2019期】
[Solved] Unity Coroutine coroutine is not executed effectively
北斗三号短报文终端露天矿山高边坡监测方案
.NET Application -- Helloworld (C#)
大像素全景制作完成后,推广方式有哪些?
用Unity发布APP到Hololens2无坑教程
【Daily Training】1403. Minimum Subsequence in Non-Increasing Order
人人都在说的数据中台,你需要关注的核心特点是什么?
In 2022, you still can't "low code"?Data science can also play with Low-Code!
presto启动成功后出现2022-08-04T17:50:58.296+0800 ERROR Announcer-3 io.airlift.discovery.client.Announcer
Use @Mapper to query the partition status of oracle and report an error
QT: The Magical QVarient
How to Add Category-Specific Widgets in WordPress
905. 区间选点
达梦8数据库导出导入
Object.defineProperty monitors data changes in real time and updates the page
sql server 安装提示用户名不存在
Study Notes-----Left-biased Tree