当前位置:网站首页>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'}边栏推荐
- HDU 1114: Piggy-Bank ← The Complete Knapsack Problem
- 开发Hololens遇到The type or namespace name ‘HandMeshVertex‘ could not be found..
- rpc-remote procedure call demo
- Use SuperMap iDesktopX data migration tool to migrate map documents and symbols
- Common open source databases under Linux, how many do you know?
- undo problem
- The second council meeting of the Dragon Lizard Community was successfully held!Director general election, 4 special consultants joined
- Multithreading (2)
- 毕设-基于SSM房屋租赁管理系统
- 惨遭打脸:字节某部门竟有这么多测试员
猜你喜欢

冒泡排序与快速排序

word column notes

Web3.0 Dapps——通往未来金融世界的道路

tree table lookup

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

After the large pixel panorama is completed, what are the promotion methods?

Details such as compiling pretreatment

2022 High-level installation, maintenance, and removal of exam questions mock exam question bank and online mock exam

IJCAI2022 | DictBert: Pre-trained Language Models with Contrastive Learning for Dictionary Description Knowledge Augmentation

2022-08-04 The sixth group, hidden from spring, study notes
随机推荐
AI + Small Nucleic Acid Drugs | Eleven Completes $22 Million Seed Round Financing
21 Days Learning Challenge (2) Use of Graphical Device Trees
2022-08-04 第六小组 瞒春 学习笔记
Beidou no. 3 short message terminal high slope in open-pit mine monitoring programme
How Jin Cang database correctness verification platform installation file
One hundred - day plan -- -- DAY2 brush
(十一)元类
PostgreSQL数据库 用navicat 打开表结构的时候报错 cannot update secondarysnapshot during a parallel operation 怎么解决?
Step by step how to perform data risk assessment
Confessing the era of digital transformation, Speed Cloud engraves a new starting point for value
sql server installation prompts that the username does not exist
QStyle platform style
[Solved] Unity Coroutine coroutine is not executed effectively
【七夕节】浪漫七夕,代码传情。将爱意变成绚烂的立体场景,给她(他)一个惊喜!(送代码)
【已解决】Unity Coroutinue 协程未有效执行的问题
The Tanabata copywriting you want has been sorted out for you!
private封装
运维监控系统之Open-Falcon
剑指Offer--找出数组中重复的数字(三种解法)
1667. Fix names in tables