使用 vue-cli serve 时如何禁用 linting? [英] How do you disable linting when using vue-cli serve?
本文介绍了使用 vue-cli serve 时如何禁用 linting?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 vue-cli 使用以下命令运行我的项目:
I am running my project with vue-cli using the command:
vue-cli-service serve --open
vue-cli-service serve --open
如何禁用所有 linting,目前每次保存时都会重新 linting,更改代码需要很长时间.
How do I disable all linting, currently it's re-linting every time I save and it takes way too long to make code changes.
我已经把:
lintOnSave: false,
在我的 vue.config.js 中,但这似乎没有任何作用.
in my vue.config.js but that doesn't seem to do anything.
感谢您的帮助.
推荐答案
在根目录中添加一个名为 vue.config.js
的文件,代码如下:
Adding a file called vue.config.js
in your root directory with the code:
module.exports = {
lintOnSave: false
}
应该可以解决问题.
这篇关于使用 vue-cli serve 时如何禁用 linting?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文