Vetur Prettier ignores ESLint rules with prettier.eslintIntegration set to true
See original GitHub issueInfo
- Platform: macOS
- Vetur version: 0.11.7
- VS Code version: 1.20.1
Problem
Vetur’s version of prettier does not respect my ESLint rules even though I have prettier.eslintIntegration
set to true
.
Cannot get .vue
files to format according to eslintrc.js
. .js files format without issue.
This causes a problem when using vue-cli and the Standard ESLint rules.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:36
- Comments:32 (6 by maintainers)
Top Results From Across the Web
Integrating with Linters - Prettier
Linters usually contain not only code quality rules, but also stylistic rules. Most stylistic rules are unnecessary when using Prettier, but worse –...
Read more >Using Prettier and ESLint to automate formatting and fixing ...
Methods for linting and pretty-printing your code; Remove conflicting rules and run serially; Run Prettier followed by ESLint programmatically ...
Read more >Efficient Code Analyzing and Formatting (for Vue.js) with ...
Lately, I have been investigating quite some time into linting and formatting of JavaScript code for large projects with many developers and ...
Read more >How to use Prettier with ESLint - Robin Wieruch
In this brief setup guide, I want to show you how to combine Prettier with ESLint without wasting any tear. If you haven't...
Read more >ESLint runs prettier twice if config in .eslintrc and .prettierrc
defaultFormatter": "vscode.typescript-language-features" }, "editor.formatOnSave": true, "vetur.experimental.templateInterpolationService": true ...
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
Open your
settings.json
and overwrite the default settings:cc @iamswain25 @gilesbutler
I had the same issue. I was using ESLint & Prettier to format my code but it was only formatting code between
<template>
and<style>
tags – not<script>
's. The following configuration should solve this issue:.eslintrc.json
:package.json
:Required VSCode plugins: