You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried restarting VS Code or running Vetur: Restart VLS
Info
Platform: MacOs (intel)
Vetur version: 0.33.1
VS Code version: 1.55.0
Node version: 12.18.3
Problem
The "vetur.format.defaultFormatter.js": "prettier-eslint" setting does not work. I've tried this setting at both the workspace level and at the user level.
consttest={'hello-world': 'foo',"foo": 'bar'// "foo" is now quoted}
Eslint works correctly when run directly using: ./node_modules/.bin/eslint --fix ./src/Test.vue or using the ESlint: Fix all auto-fixable issues option in VSCode.
The user setting "vetur.useWorkspaceDependencies": true does not affect this issue. I've tried with both this setting on and off.
VLS Logs
[DEBUG] Using prettier. Options
{"singleQuote":true,"semi":false,"trailingComma":"none","printWidth":80,"tabWidth":2,"useTabs":false,"parser":"vue"}
[DEBUG] Using prettier-eslint. Options
{"singleQuote":true,"semi":false,"trailingComma":"none","printWidth":80,"tabWidth":2,"useTabs":false,"parser":"babel"}
As an aside, with "vetur.format.defaultFormatter.js": "prettier-eslint" prettier no longer respects .prettierrc.json file(tested by turning semi:false on and off).
Also, there's nothing special with the quote-props eslint rule. I simply picked a rule that I knew demonstrated the issue.
Reproducible Case
I've created a sample repo here that demonstrates the issue.
The text was updated successfully, but these errors were encountered:
Vetur: Restart VLS
Info
Problem
The
"vetur.format.defaultFormatter.js": "prettier-eslint"
setting does not work. I've tried this setting at both the workspace level and at the user level.With a fairly basic eslint config:
This:
Should transform into below when eslint is run:
Eslint works correctly when run directly using:
./node_modules/.bin/eslint --fix ./src/Test.vue
or using theESlint: Fix all auto-fixable issues
option in VSCode.The user setting
"vetur.useWorkspaceDependencies": true
does not affect this issue. I've tried with both this setting on and off.VLS Logs
As an aside, with
"vetur.format.defaultFormatter.js": "prettier-eslint"
prettier no longer respects.prettierrc.json
file(tested by turningsemi:false
on and off).Also, there's nothing special with the
quote-props
eslint rule. I simply picked a rule that I knew demonstrated the issue.Reproducible Case
I've created a sample repo here that demonstrates the issue.
The text was updated successfully, but these errors were encountered: