Disable ESlint parser error messages - VSCode

前端 未结 5 1753
一生所求
一生所求 2020-12-17 08:31

I have ESlint configured with vscode using the plugin, now I\'m wondering is there some way I can stop ESlint from showing me the parser/syntax errors, so I can instead view

相关标签:
5条回答
  • 2020-12-17 08:40

    go to File => Preferences => Settings

    go to Extensions=>ESLint

    Uncheck the EsLint:Enable

    0 讨论(0)
  • 2020-12-17 08:46

    In order to disable ESLint only for a specific repo (instead of disabling it globally). Create .vscode folder in your project root and there create a settings.json then add the following config:

    {
        "eslint.enable": false
    }
    

    Maybe after this setting you should consider adding the .vscode/settings.json line to your .gitignore file too, but it is based on your dev team's preference. }

    Additionally if you'd like to ignore only some vendor/3PP .js files only then you should consider creating an .eslintignore file. Read more about this here.

    0 讨论(0)
  • 2020-12-17 08:54

    Open up settings.json and add the property: "eslint.enable": false

    Check: https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint

    0 讨论(0)
  • 2020-12-17 09:04
    1-) npm install -g eslint
    2-) Open up settings.json and add the property: "eslint.enable": false
    
    0 讨论(0)
  • 2020-12-17 09:04

    The old:

    "eslint.enable": false
    

    Is deprecated, now you need to use the builtin VSCode mechanism for disabling extensions:

    0 讨论(0)
提交回复
热议问题