当前位置:网站首页>vscode配置eslint自动格式化报错“Auto Fix is enabled by default. Use the single string form“
vscode配置eslint自动格式化报错“Auto Fix is enabled by default. Use the single string form“
2022-06-11 17:08:00 【Boale_H】
背景
在我们配置vscode自动依据eslint格式化代码的时候,报错Auto Fix is enabled by default. Use the single string form,意思是:默认情况下启用自动修复。 使用单字符串形式
解决办法
解决方案如提示所示,删除"autoFix": true,,用单字符串形式配置需要校验的文件类型即可
{
"search.followSymlinks": false,
"editor.tabSize": 2,
//配置eslint
"eslint.validate": [
"javascript", // 用eslint的规则检测js文件
"javascriptreact",
"vue",
"html",
],
// 启用保存时自动修复eslint,默认只支持.js文件
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
边栏推荐
- Oracle数据库合并行记录,WMSYS.WM_CONCAT 函数的用和MySQL 中GROUP_CONCAT(id)的使用及比较。
- WYSIWYG markdown editor: typora
- Jinte Net Foundation will participate in the global strategy conference of dimension chain through online live broadcast
- How to disable the notebook's own keyboard after the notebook is connected to an external keyboard
- select into from 和 insert into select 区别
- golang中的异常处理和异常使用
- Switching power supply circuit diagram and principle 12V analysis - detailed version
- Analysis report on competition pattern and future development strategy of China's corn industry 2022-2028 Edition
- 二级造价工程师值得考吗?发展前景如何?
- Leetcode 450. 删除二叉搜索树中的节点
猜你喜欢

Redis --- 学习 NoSQL 五大类型

Solr (I) installation and permission control of Solr

C language: use H and C. summary of problems encountered in documents

Elasitcsearch basic learning notes (1)

^32 execution context stack interview questions

《DAMA数据管理知识体系指南》:章节分值占比

Song of the sea in 5g Era

Pychart tips - how to set up a background picture

一套ThinkPHP微信小程序商城源码带后台管理

^31 prototype interview questions
随机推荐
10 times faster than 5g. Are you ready for 10 Gigabit communication?
ASP. Net education OA system source code education industry OA system source code with document
用实际案例分析PMP与ACP应该考哪个?哪个更有用?
Global and China Mobile Network Optimization (MnO) industry development panoramic survey and Investment Strategy Research Report 2022-2028
[opencvsharp] spot detection barcode decoding image operation image rotation / flip / Zoom perspective transformation image display control demo notes
小白在同花顺上直接办理账户是安全的吗?
Analysis report on future development trend and investment suggestions of global and Chinese soybean protein industry 2022-2028
Intranet penetration based on UDP port guessing
A set of ThinkPHP wechat applet mall source code with background management
Katalon Studio Enterprise
LeetCode——24. 两两交换链表中的节点(三指针)
LeetCode——24. Exchange the nodes in the linked list in pairs (three pointers)
From a "trendsetter" to a "wind chaser", can master Kang still lead the market?
GemBox.Bundle 43.0 Crack
Oracle 分析函数 over 和MySQL 实现类似效果写法
LeetCode-384. 打乱数组
启牛商学院给的证券账户是安全的吗?开户收费吗
A journey of database full SQL analysis and audit system performance optimization
导出数据提示--secure-file-priv选项问题的解决方法
“is-a”,“has-a”,“like-a”