当前位置:网站首页>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
}
}
边栏推荐
- 二级造价工程师值得考吗?发展前景如何?
- ASP. Net education OA system source code education industry OA system source code with document
- Characteristics of interfaces & comparison between interfaces and abstract classes
- (validation file) validatejarfile report errors
- Drug evaluation index
- Solr (II) Solr adds core and dependent package path
- 核密度估计(二维、三维)
- LeetCode——24. Exchange the nodes in the linked list in pairs (three pointers)
- Leetcode-- array
- TypeScript学习笔记(二)
猜你喜欢

Solr (I) installation and permission control of Solr

Research Report on operation mode and investment opportunities of China's aluminum industry 2022-2028

vscode保存代碼時自動eslint格式化

Kernel density estimation (2D, 3D)

vscode保存代码时自动eslint格式化

GUI guess number game, directly open play

How unittest knows the execution time of each test case

用实际案例分析PMP与ACP应该考哪个?哪个更有用?

Solve the problem that jupyter cannot connect to the kernel based on pycharm and Anaconda -- solution 1

ShellBrowser . NET Crack
随机推荐
TypeScript学习笔记(二)
Talk about the interview questions of the collection
ASP.NET教育OA系统源码 教育行业OA系统源码带文档
[Clickhouse column] create a new library, user and role
Derivation of child numbering formula for nodes numbered I in full k-ary tree
消息队列-推/拉模式学习 & ActiveMQ及JMS学习
啟牛商學院給的證券賬戶是安全的嗎?開戶收費嗎
^32执行上下文栈面试题
LeetCode-384. 打乱数组
LeetCode——42. 接雨水(双指针)
【clickhouse专栏】新建库、用户及角色
Analyze which should be tested in PMP and ACP with actual cases? Which is more useful?
VLAN partition and routing between VLANs
Wechat applet timestamp conversion time format + time subtraction
美团获得小样本学习榜单FewCLUE第一!Prompt Learning+自训练实战
Time series prediction | MATLAB realizes future multi-step prediction of RBF RBF neural network time series
Text driven for creating and editing images (with source code)
A simple understanding of closures
Research Report on operation mode and investment opportunities of China's aluminum industry 2022-2028
How to disable the notebook's own keyboard after the notebook is connected to an external keyboard