• Welcome to the eight year blog, I'm glad to meet you at the right age!
  • In QQ, please log in to the avatar again.

How to turn off eslint in vue-cli3?

Note code barben 8 months ago (12-10) 2404 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

Well, eslin, it's embarrassing .

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 does the old version close eslint?

file found bulid/webpack.base.config.js And comment out the corresponding code.
Restart the project, you may have any comments according to the following examples.



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 the esvline3? - https://www.barben.cn/code/641.html
Like it( seven )
Post my comments
Cancel comment
expression Mapping Bold Delete line 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