当前位置:网站首页>vscode配置eslint自动格式化报错“The setting is deprecated. Use editor.codeActionsOnSave instead with a source“
vscode配置eslint自动格式化报错“The setting is deprecated. Use editor.codeActionsOnSave instead with a source“
2022-06-11 17:08:00 【Boale_H】
vscode配置eslint自动格式化报错"The setting is deprecated. Use editor.codeActionsOnSave instead with a source.fixAll.eslint member."
背景
在我们配置vscode自动依据eslint格式化代码的时候,报错The setting is deprecated. Use editor.codeActionsOnSave instead with a source.fixAll.eslint member.,意思是:该设置已弃用。 将 editor.codeActionsOnSave 与 source.fixAll.eslint 成员一起使用。
解决办法
解决方案如提示所示,删除"eslint.autoFixOnSave": true, ,用editor.codeActionsOnSave替代即可
{
"search.followSymlinks": false,
"editor.tabSize": 2,
//配置eslint
"eslint.validate": [
"javascript", // 用eslint的规则检测js文件
"javascriptreact",
"vue",
"html",
],
// 启用保存时自动修复eslint,默认只支持.js文件
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
边栏推荐
- 二级造价工程师值得考吗?发展前景如何?
- Web security - shooting range notes
- 10 times faster than 5g. Are you ready for 10 Gigabit communication?
- [Clickhouse column] create a new library, user and role
- Haas, which integrates relevant technologies of Alibaba cloud, Dharma Institute and pingtouge, has officially announced the book
- Song of the sea in 5g Era
- 闭包的简单理解
- Derivation of child numbering formula for nodes numbered I in full k-ary tree
- Char array parsing
- Chip mass production, oppo entering a new era?
猜你喜欢

所见即所得的 markdown 编辑器:Typora

Tornado environment construction and basic framework construction -- familiar Hello World

Learning C language from scratch day 039

solr(一)solr的安装及权限控制

Weekly recommended short video: rookie CEO talks about the new logistics track in the future

Development planning of China's stainless steel market and suggestions on the development direction of the 14th five year plan 2022-2028

Analysis report on the "fourteenth five year plan" proposal and innovation environment of global and Chinese sodium pyrophosphate industry (2022-2028)

AXI协议基础知识

WYSIWYG markdown editor: typora

Haas, which integrates relevant technologies of Alibaba cloud, Dharma Institute and pingtouge, has officially announced the book
随机推荐
Chip mass production, oppo entering a new era?
Cocoapod only updates the specified library (does not update the index)
LeetCode——24. 两两交换链表中的节点(三指针)
Rdkit installation
TypeScript学习笔记(二)
Connection and difference of network streaming media protocol (RTP RTCP RTMP HLS)
【clickhouse专栏】新建库、用户及角色
核密度估计(二维、三维)
The use of histogram function in MATLAB
啟牛商學院給的證券賬戶是安全的嗎?開戶收費嗎
Web security - shooting range notes
Solr (I) installation and permission control of Solr
所见即所得的 markdown 编辑器:Typora
A set of ThinkPHP wechat applet mall source code with background management
如何把树结构存储到数据库
^31原型面试题
Redis --- 学习 NoSQL 五大类型
Leetcode 450. Deleting a node in a binary search tree
Oracle database merge row records, wmsys WM_ Use of the concat function and group in MySQL_ Use and comparison of concat (ID).
ShellBrowser .NET Crack