vscode-standard: Format on save not working on .vue files
- StandardJS version? 1.1.7
- VSCode version? 1.14
- StandardJS configuration?
"editor.formatOnSave": false,
"javascript.validate.enable": false,
"standard.validate": [
"javascript",
"javascriptreact",
"html"
],
"standard.options": {
"globals": [
"$",
"jQuery",
"fetch"
],
"ignore": [
"node_modules/**"
],
"parser": "babel-eslint",
"plugins": [
"html"
]
},
"files.associations": {
"*.vue": "html"
},
"standard.autoFixOnSave": true,
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 16 (5 by maintainers)
I’m using the same setup as @SolT31 but standard.js seems to try and parse the whole .vue file and not just the javascript in the script tag:
This example file shows only a single error by standard in line 2:
@click- “unexpected character @”.StandardJS does not even get to the JS-lines to mark errors.
My configuration works here.
standard v12.0.1 Extension v1.2.3
settings.json
Similar issue, although even Format Document isn’t formatting to Standard.
I think you need this: