当前位置:网站首页>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'}边栏推荐
- 基于生长的棋盘格角点检测方法
- 语法基础(变量、输入输出、表达式与顺序语句完成情况)
- How to Add Category-Specific Widgets in WordPress
- Likou - preorder traversal, inorder traversal, postorder traversal of binary tree
- How to transfer a single node of Youxuan database to a cluster
- private package
- ffmpeg -sources分析
- PostgreSQL数据库 用navicat 打开表结构的时候报错 cannot update secondarysnapshot during a parallel operation 怎么解决?
- In 2022, you still can't "low code"?Data science can also play with Low-Code!
- public static <T> List<T> asList(T... a) 原型是怎么回事?
猜你喜欢

Step by step how to perform data risk assessment

Study Notes-----Left-biased Tree

【软件测试】自动化测试之unittest框架

mysql没法Execute 大拿们求解

Details such as compiling pretreatment

冰蝎V4.0攻击来袭,安全狗产品可全面检测

ASP.NET application--Hello World

Simple description of linked list and simple implementation of code

如何在WordPress中添加特定类别的小工具

Kubernetes 网络入门
随机推荐
tree table lookup
【滤波跟踪】基于matlab无迹卡尔曼滤波惯性导航+DVL组合导航【含Matlab源码 2019期】
运维监控系统之Open-Falcon
2022-08-04 The sixth group, hidden from spring, study notes
High Item 02 Information System Project Management Fundamentals
Why is the pca component not associated
IJCAI2022 | DictBert: Pre-trained Language Models with Contrastive Learning for Dictionary Description Knowledge Augmentation
Kubernetes 网络入门
Question about #sql shell#, how to solve it?
用CH341A烧录外挂Flash (W25Q16JV)
Likou - preorder traversal, inorder traversal, postorder traversal of binary tree
Chinese characters to Pinyin
Syntax basics (variables, input and output, expressions and sequential statement completion)
905. 区间选点
21 Days Learning Challenge (2) Use of Graphical Device Trees
为什么pca分量没有关联
private package
Syntax basics (variables, input and output, expressions and sequential statements)
AI+PROTAC | dx/tx completes $5 million seed round
private封装