当前位置:网站首页>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'}边栏推荐
- [Solved] Unity Coroutine coroutine is not executed effectively
- Open Source License Description LGPL
- Tencent Cloud [Hiflow] New Era Automation Tool
- [Filter tracking] based on matlab unscented Kalman filter inertial navigation + DVL combined navigation [including Matlab source code 2019]
- undo problem
- 冰蝎V4.0攻击来袭,安全狗产品可全面检测
- 队列题目:最近的请求次数
- 【 genius_platform software platform development 】 : seventy-six vs the preprocessor definitions written cow force!!!!!!!!!!(in the other groups conding personnel told so cow force configuration to can
- ASP.NET application--Hello World
- 905. 区间选点
猜你喜欢

Intersection of Boolean Operations in SuperMap iDesktop.Net - Repairing Complex Models with Topological Errors

Why is the pca component not associated

通过模拟Vite一起深入其工作原理

Multithreading (2)

Apache DolphinScheduler, a new generation of distributed workflow task scheduling platform in practice - Medium

用CH341A烧录外挂Flash (W25Q16JV)

dmp (dump) dump file

为什么pca分量没有关联

龙蜥社区第二届理事大会圆满召开!理事换届选举、4 位特约顾问加入

人人都在说的数据中台,你需要关注的核心特点是什么?
随机推荐
Review 51 MCU
【 genius_platform software platform development 】 : seventy-six vs the preprocessor definitions written cow force!!!!!!!!!!(in the other groups conding personnel told so cow force configuration to can
rpc-remote procedure call demo
【已解决】Unity Coroutinue 协程未有效执行的问题
How to transfer a single node of Youxuan database to a cluster
从“能用”到“好用” 国产软件自主可控持续推进
Cloud Native (32) | Introduction to Platform Storage System in Kubernetes
IJCAI2022 | DictBert: Pre-trained Language Models with Contrastive Learning for Dictionary Description Knowledge Augmentation
【软件测试】自动化测试之unittest框架
The linear table lookup
引领数字医学高地,中山医院探索打造未来医院“新范式”
dmp (dump) dump file
Physical backup issues caused by soft links
Why is the pca component not associated
腾讯云【Hiflow】新时代自动化工具
人人都在说的数据中台,你需要关注的核心特点是什么?
Native js realizes the effect of selecting and canceling all the multi-select boxes
905. 区间选点
High Item 02 Information System Project Management Fundamentals
Matlab drawing 3