How to disable ESLint in vue-cli?

前端 未结 13 1010
灰色年华
灰色年华 2020-12-02 09:28

How do I go about disabling ESlint in project generated with vue-cli?

preLoaders: [
  {
    test: /\\.vue$/,
    loader: \'eslint\         


        
相关标签:
13条回答
  • 2020-12-02 10:26

    on vue cli 4.5 edit package.json

    look for:

    "eslintConfig": {
        "root": true,
        "env": {
            "node": true
        },
        ...
    }
    

    Change to:

    "eslintConfig": {
        "root": false,
        "env": {
            "node": false
        },
        ...
    }
    
    0 讨论(0)
提交回复
热议问题