当前位置:网站首页>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'}边栏推荐
- On governance and innovation, the 2022 OpenAtom Global Open Source Summit OpenAnolis sub-forum came to a successful conclusion
- The Tanabata copywriting you want has been sorted out for you!
- ffmpeg 枚举decoders, encoders 分析
- shell脚本:for循环与while循环
- In 2022, you still can't "low code"?Data science can also play with Low-Code!
- From "useable" to "easy to use", domestic software is self-controllable and continues to advance
- 开发Hololens遇到The type or namespace name ‘HandMeshVertex‘ could not be found..
- Chinese characters to Pinyin
- 【Daily Training】1403. Minimum Subsequence in Non-Increasing Order
- QT language file production
猜你喜欢

Why did they choose to fall in love with AI?

Beidou no. 3 short message terminal high slope in open-pit mine monitoring programme

.NET Application -- Helloworld (C#)

今年七夕,「情蔬」比礼物更有爱

word column notes

tree table lookup

The usage of try...catch and finally in js

大像素全景制作完成后,推广方式有哪些?

presto启动成功后出现2022-08-04T17:50:58.296+0800 ERROR Announcer-3 io.airlift.discovery.client.Announcer

告白数字化转型时代,时速云镌刻价值新起点
随机推荐
倒计时 2 天|云原生 Meetup 广州站,等你来!
ffmpeg -sources分析
你要的七夕文案,已为您整理好!
通过模拟Vite一起深入其工作原理
On governance and innovation, the 2022 OpenAtom Global Open Source Summit OpenAnolis sub-forum came to a successful conclusion
用Unity发布APP到Hololens2无坑教程
【 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
用CH341A烧录外挂Flash (W25Q16JV)
冒泡排序与快速排序
(11) Metaclass
HDU 1114: Piggy-Bank ← The Complete Knapsack Problem
627. Change of gender
Syntax basics (variables, input and output, expressions and sequential statement completion)
Kubernetes 网络入门
Ant Sword Advanced Module Development
1667. Fix names in tables
【七夕节】浪漫七夕,代码传情。将爱意变成绚烂的立体场景,给她(他)一个惊喜!(送代码)
Likou - preorder traversal, inorder traversal, postorder traversal of binary tree
MRTK3开发Hololens应用-手势拖拽、旋转 、缩放物体实现
public static <T> List<T> asList(T... a) 原型是怎么回事?