• Welcome to the eight blog of that year. I am very glad to meet you at the right age.
  • The little buddy who has logged on QQ due to the theme shows the default head in the comments. Please go to the personal center to upload the avatar again.

How do I close eslint above vue-cli3?

Code Notes Barben 7 months ago (12-10) 2039 browse 1 comments

Today, I took over a project of a big guy. When there was a problem, node.js and vue-cli came up, and found that the scaffold version had arrived at 4.1.1!

In order to see the difference between scaffolding upgrading, we set up a project. Next, Vue create emmmm operates like a tiger.

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.
Terminating batch operation? (Y/N)? Y

Awkward, it seems that ESlint is not installed. .

How to close ESlint in vue-cli3 version above?

file found Vue.config.js (without this file, create one on the root directory)
Set the lintOnSave property to false, if not, write it yourself.

 Module.exports = {
lintOnSave: false
}

In my own config configuration, the solution is perfect.

How does the old version close ESlint?

file found Bulid/webpack.base.config.js And annotate the corresponding code.
There may be several situations. You can restart the project according to the annotations in any example.



Eight this year's blog, we've been there.
If the author does not indicate the original article, please indicate the link and source.
How do I close eslint above vue-cli3? - https://www.barben.cn/code/641.html
Love ( Seven )
Publish my comments
Cancel comment
Expression Map Thickening Delete line Centered Italics

In the eight year commentary, you need to bring your nickname and mailbox.

  • Nickname (required)
  • Mailbox (required)
  • Website
Successfully captured. One Only rare elves
  1. BTW, you need to restart the project.
    Stefango 2020-04-16 22:21. Reply