• Welcome to the eight year blog, I'm glad to meet you at the right age!
  • Due to the theme, QQ login partners will display the default avatar in the comments. Please go to the personal center and upload the avatar again.

How to turn off eslint in vue-cli3?

Code Notes barben 8 months ago (12-10) 2488 views 1 comment

Today, I took over the project of a big man. When there was a problem, the head iron was upgraded to node.js and Vue cli. I found that the scaffold version has reached 4.1.1!

In order to see what difference there is after the upgrade of the scaffold, we built a project. Next, Vue create emmmm is as fierce as a tiger after the operation

You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.
Terminate batch operation (Y / N)? Y

Embarrassment. It seems that eslint has been installed carelessly .

How to close eslint in vue-cli3 and above?

file found vue.config.js (if there is no such file, create one in the root directory)
Set the lintonsave property to false. If not, write it yourself.

 module.exports = {
  lintOnSave: false
}

Add it to my own config configuration and it works perfectly.

How to close the old version of eslint?

file found bulid/webpack.base.config.js And comment out the corresponding code.
There may be the following situations, you can annotate any place according to the picture example, and restart the project.



Eight blogs that year, we've been there all the time
If the author does not indicate the original article, please indicate the link and source of this article
How to turn off eslint in vue-cli3? - https://www.barben.cn/code/641.html
Like it( seven )
Post my comments
Cancel comment
expression Mapping Bold Strikethrough Center Italics

You need to bring your nickname and email with you in the year of eight!

  • Nickname (required)
  • Email address (required)
  • website
Successfully captured one A rare spirit
  1. BTW, we need to restart the project
    Stefango 2020-04-16 22:21 reply