当前位置:网站首页>Resolve the format conflict between formatted document and eslint
Resolve the format conflict between formatted document and eslint
2022-06-25 16:08:00 【. calin.】
Right click the back point format document Formable document , But the format of the formatted document is the same as eslint The required format is conflicting .# solve
1. Change the format after formatting , Make it and eslint Consistent requirements
src Create configuration file in directory .prettierrc Modify the formatted format , Such as the following code in the file :
The first line means no semicolon after formatting
The second line indicates using single quotation marks
{
"semi":false,
"singleQuote":true
}
2. change eslint The rules of , No requirements for a certain format , Don't complain
Pictured , Some eslint The error of , There are wrong rules in the box
find .eslintrc.js In the document rules, Pictured , Set the value to 0 To eliminate the rule
边栏推荐
- Tensorflow loading cifar10 dataset
- Uniapp converts graphic verification codes in the form of file streams into images
- The style of the mall can also change a lot. DIY can learn about it!
- Message format of Modbus (PLC)
- Share the code technology points and software usage of socket multi client communication
- 赫尔辛基交通安全改善项目部署Velodyne Lidar智能基础设施解决方案
- Gold three silver four, an article to solve the resume and interview
- Asynchronous processing of error prone points
- Why is it said that restarting can solve 90% of the problems
- Error: homebrew core is a shallow clone
猜你喜欢
GO语言-什么是临界资源安全问题?
iVX低代码平台系列详解 -- 概述篇(一)
Learning notes of rxjs takeuntil operator
Super comprehensive custom deep copy function
How to reload the win10 app store?
The paid video at station B caused the up master to lose more than ten thousand fans
Popular cross domain
Open the box to experience rust, come on!!!
Startup and shutdown of appium service
合宙Air32F103CBT6开发板上手报告
随机推荐
What are some tricks that novice programmers don't know?
Consumer and producer cases of inter thread synchronization (condition variable)
基于神经标签搜索,中科院&微软亚研零样本多语言抽取式摘要入选ACL 2022
What are the reasons why the game industry needs high defense servers?
商城风格也可以很多变,DIY了解一下!
Webgl and webgpu comparison [4] - uniform
元宇宙系统的概念解析
About the use of Aidl, complex data transmission
Continuous integration of aspnetcore & cloud flow
Continuously improve the overall performance of adaoracle Oracle Oracle
原生js动态添加元素
VectorDraw Developer Framework 10.1001 Crack
Learning notes of rxjs takeuntil operator
Uncover gaussdb (for redis): comprehensive comparison of CODIS
Rapport de la main - d'oeuvre du Conseil de développement de l'aecg air32f103cbt6
Analysis of the concept of metacosmic system
What can NFT metauniverse development do?
Time wheel and implementation analysis of time wheel in go zero
10 Super VIM plug-ins, I can't put them down
Go development team technical leader Russ Cox sends a document to share go's version control history