vscode-eslint doesn't work on .vue files

Created on 27 Aug 2017  路  1Comment  路  Source: microsoft/vscode-eslint

I've got an app with some .vue files in it and I've installed the official vue eslint plugin, so when I run on the command line, eslint provides useful output for these files. In vscode, the eslint plugin appears to only work for .js files, despite eslint being configured to work correctly for .vue files.

Most helpful comment

You need to tell the ESLint extension to validate vue files. To do add the following to your VS Code settings.

"eslint.validate": [
    "javascript", {
        "language": "vue",
        "autoFix": true
    }
]

>All comments

You need to tell the ESLint extension to validate vue files. To do add the following to your VS Code settings.

"eslint.validate": [
    "javascript", {
        "language": "vue",
        "autoFix": true
    }
]
Was this page helpful?
0 / 5 - 0 ratings