.vue file can not format when set `prettier.eslintIntegration` in vscode setting config
See original GitHub issueVSCode: v1.24.1 OS: win10 prettier: 1.5.0(vscode plugin) eslint: 1.4.12(vscode plugin)
I use both prettier and eslint in vscode. When I set prettier.eslintIntergration: true
in vscode setting config, prettier can not format .vue file.
output from Vue Language Server:
My .eslintrc.js is:
module.exports = {
root: true,
extends: ['plugin:vue-libs/recommended']
}
Thx!
Issue Analytics
- State:
- Created 5 years ago
- Reactions:16
- Comments:12 (2 by maintainers)
Top Results From Across the Web
VSCode prettier/vue formatting settings don't work properly
Only advice I can give is stop using Prettier. Trying to make it work with ESlint and Vetur was always pain. Then I...
Read more >How to setup ESLint and Prettier with VS Code and VueJS
You can set Vetur as the default by selecting ”Configure Default Formatter” after ”Format Document With…” then select ”Vetur” from the options.
Read more >Efficient Code Analyzing and Formatting (for Vue.js) with ...
Prettier is a zero-configuration code formatting utility by design. ... With the current setup, *.vue files are not processed correctly yet, ...
Read more >Having a tough time setting up EsLint/Prettier to work with Volar
I'm having a tough time understanding how VSCode with the Volar extension, Eslint and Prettier all work together. I followed this article to ......
Read more >Quick VSCode setup for Vue.js with Prettier and ESLint
Prettier formats the JS code in a nice opinionated way. However this is not fully aligned with ESLint and therefore the build fails...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just in case someone has problem. Try adding this in VS Code User Settings
At last I change the config and use two commands… i. Set vetur.format.defaultFormatter.js
ii. Then use keyboard shortcuts to
format Document
andFix all auto-fixable Problems