Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
301 views
in Technique[技术] by (71.8m points)

vue脚手架eslint模式如何更换

在创建vue项目的时候选择了每次保存时执行eslint规则,现在感觉太烦了 如何更改为 commit时执行呢?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

那只能先关闭,提交时再开启了。而且vue也可以使用npm run lint命令,查看eslint错误;

再根据提示的错误行数和文字,到eslint查看是什么错误,再进行处理:https://eslint.bootcss.com/docs/rules/


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...