当前位置:网站首页>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 
边栏推荐
- js 给元素添加自定义属性
- Converting cifar10 datasets
- What are the reasons why the game industry needs high defense servers?
- How to debug grpc by postman
- Lecun predicts AgI: big model and reinforcement learning are both ramps! My "world model" is the new way
- Interviewer: your resume says you are proficient in mysql, so you say cluster / Union / overlay index, table return, index push down
- 不要小看了积分商城,它的作用可以很大!
- Desktop development (Tauri) opens the first chapter
- Prototype mode
- 李飞飞团队将ViT用在机器人身上,规划推理最高提速512倍,还cue了何恺明的MAE
猜你喜欢

Detailed explanation of IVX low code platform series -- Overview (I)
Introduction to database transactions

mysql整体架构和语句的执行流程

GO语言-什么是临界资源安全问题?
[golang] leetcode intermediate - find the first and last position of an element in a sorted array & Merge interval

Stop "outsourcing" Ai models! The latest research finds that some "back doors" that undermine the security of machine learning models cannot be detected

The paid video at station B caused the up master to lose more than ten thousand fans
MySQL installation tutorial
After the project is pushed to the remote warehouse, Baota webhook automatically publishes it

商城风格也可以很多变,DIY了解一下!
随机推荐
Deep learning pytorch cifar10 dataset training "suggestions collection"
Client development (electron) system level API usage
镁光256Gb NAND Flash芯片介绍
Don't underestimate the integral mall, its role can be great!
10款超牛Vim插件,爱不释手了
商城风格也可以很多变,DIY 了解一下!
Bugly hot update usage
Interviewer: your resume says you are proficient in mysql, so you say cluster / Union / overlay index, table return, index push down
Gold three silver four, an article to solve the resume and interview
Alvaria宣布客户体验行业资深人士Jeff Cotten担任新首席执行官
Go language - lock operation
Introduction to database transactions
Native JS dynamically add elements
What are some tricks that novice programmers don't know?
leetcode-8. String to integer (ATOI)
Learning notes of rxjs takeuntil operator
赫尔辛基交通安全改善项目部署Velodyne Lidar智能基础设施解决方案
Popular cross domain
Educational administration system development (php+mysql)
Once the code was encrypted by the company's computer, the compilation failed