当前位置:网站首页>Vscode configures eslint to automatically format an error "auto fix is enabled by default. use the single string form“
Vscode configures eslint to automatically format an error "auto fix is enabled by default. use the single string form“
2022-06-11 17:20:00 【Boale_ H】
vscode To configure eslint Auto format error "Auto Fix is enabled by default. Use the single string form"
background
In our configuration vscode Automatic basis eslint When formatting code , Report errors Auto Fix is enabled by default. Use the single string form, intend : Auto repair is enabled by default . Use single string form 
terms of settlement
The solution is shown in the prompt , Delete "autoFix": true,, Configure the file type to be verified in the form of a single string
{
"search.followSymlinks": false,
"editor.tabSize": 2,
// To configure eslint
"eslint.validate": [
"javascript", // use eslint Rule detection for js file
"javascriptreact",
"vue",
"html",
],
// Enable auto repair on save eslint, Only supported by default .js file
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
边栏推荐
- 我的CのERROR们
- Report on the operation situation and future prospects of China's gear oil industry (2022-2028)
- Project failed to load the configuration file of Nacos configuration center
- What products are good for cross-border e-commerce? What are the top selling categories?
- 【clickhouse专栏】新建库、用户及角色
- Export data prompt -- solution to the problem of secure file priv option
- LeetCode-1005. Maximized array sum after K negations
- Exception handling and exception usage in golang
- Docker installs mysql5.7 (enable binlog function and modify characters)
- TypeScript学习笔记(二)
猜你喜欢

Elasitcsearch基础学习笔记(1)

Switching power supply circuit diagram and principle 12V analysis - detailed version

^32执行上下文栈面试题

RecyclerView缓存复用解析,源码解读

^31原型面试题

Intranet penetration based on UDP port guessing

Environment configuration and pymysql installation

Typescript learning notes (II)

Authing Share|理解 SAML2 协议

vscode配置eslint自动格式化报错“Auto Fix is enabled by default. Use the single string form“
随机推荐
Le compte de titres de l'école de commerce kainiu est - il sécurisé? Frais d'ouverture de compte
字符串转数值
通过Xshell连接有跳板机/堡垒机的服务器
Authing 双周动态:Authing 论坛上线(4.25-5.8)
LeetCode——24. Exchange the nodes in the linked list in pairs (three pointers)
二级造价工程师值得考吗?发展前景如何?
用实际案例分析PMP与ACP应该考哪个?哪个更有用?
(validation file) validatejarfile report errors
Read and understand the development plan for software and information technology service industry during the "14th five year plan"
Weekly recommended short video: rookie CEO talks about the new logistics track in the future
ShellBrowser . NET Crack
Error: error summary of pointer as function parameter
拜登下令强制推行零信任架构
Why does chip design also need "Craftsmanship"?
ASP.NET教育OA系统源码 教育行业OA系统源码带文档
Leetcode-- array
“is-a”,“has-a”,“like-a”
Authing Share|理解 SAML2 协议
Katalon Studio Enterprise
Is the securities account given by qiniu business school safe? Do you charge for opening an account