Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
0 answers
12 views

How To Unquote Numeric Properties In Vue

When assigning attributes to components in the template section of Vue, values of numeric props are placed inside quotes which tend to generate a lot of warning in the console. Even after removing ...
coochie's user avatar
  • 59
0 votes
1 answer
84 views

Visual Studio Code bad formatting in vuejs

I've reinstalled my Windows again and installed Visual Studio Code along with Prettier, but it's formatting the syntax and everything else very poorly. Below is an example of how it looks and how it ...
Octavian's user avatar
0 votes
1 answer
337 views

How to use 4 spaces formatting for indentation in VSCode for Volar through Vue - Official extension in .vue files?

I have a vuejs project and my team uses VSCode as the editor. I'm trying to setup a general project configuration for consistent autoformatting, including 4 space indentation instead of 2. I installed ...
Furious Gamer's user avatar
0 votes
0 answers
30 views

Code formatting not working properly in prettier-eslint

I use prettier-eslint for code formatting in vscode. All major tags formatted succesfully when save. But some tags divide the tag and it's class to another code line. I won't to get the tag and class ...
Nipun Vidarshana's user avatar
0 votes
0 answers
50 views

How to get VSCode to use Prettier for HTML and not JS in Vue files

My team is using VS Code for a Vue project. We like the Prettier formatting for HTML but not for Javascript. How can I configure VS Code to use Prettier for one language and not another, within .vue ...
hobbes_child's user avatar
0 votes
0 answers
15 views

how to config prettier

automatic prettier,make my code like this.Anti-human! <v-footer :absolute="!fixed" app ><span>&copy; {{ new Date().getFullYear() }}</span></v-footer &...
397927031qqcom's user avatar
1 vote
1 answer
2k views

Prettier and ESlint not working well together

it seems that prettier is not formatting the code like I want to. My current ESLint config is as follows: "eslintConfig": { "root": true, "env": { "...
Haidepzai's user avatar
  • 990
0 votes
2 answers
210 views

It is not possible to select prettier as the default formatting tool

I have two projects, both vue projects, but one project says I can't use prettier as a formatting tool, and the other one works You can see the screenshot below for details The following two images ...
feihong huang's user avatar
0 votes
2 answers
200 views

VSCode - indenting adds spaces around strings

I am using Vue 3 & Prettier w/ VS Code. Whenever I have a string on it's own line, it gets formatted how I want it. The problem... My Dev Tool browser renders strings with spaces around them. I ...
Sam Britt's user avatar
0 votes
1 answer
522 views

How to make Prettier ignore formatting code in Vue?

I'm new to Vue.js. I working on a Vue project and I'm having a problem with Prettier. I use Vue Language Features (Volar). I don't know if it's the problem. I use // prettier-ignore to make Prettier ...
bitterkofte's user avatar
0 votes
0 answers
108 views

ESLint unused var error with Vue script + setup

I'm getting the error of @typescript-eslint/no-unused-vars rule because of the "test" var in this component <script setup lang="ts"> import { ref } from 'vue' const test: ...
Martin Pilaszek's user avatar
-1 votes
1 answer
2k views

ESLint and Prettier are having conflicts with each other on running both commands back and forth

I have two commands written in my package.json file- "format": "prettier --write \"{src,{tests,mocks}}/**/*.{js,ts,vue}\"", "lint": "eslint . -c .eslintrc....
Neha Soni's user avatar
  • 4,463
1 vote
1 answer
285 views

Trim whitespace at Vue template compilation

I'd want to use Prettier to format the <script> part my Vue project, but I've encountered a slight hiccup. Prettier will also format the <template> as it deems correct and I'm also ...
Gábor Kovács's user avatar
1 vote
1 answer
473 views

How do I configure prettier to behave in a specific way for Vue.js template syntax?

I want to customize a specific behavior in Prettier. I'm wondering if there's a quick way to implement below solution without having to write my own parser. My .prettierrc.js: module.exports = { $...
passionateLearner's user avatar
1 vote
0 answers
202 views

How to use formatSelection on .vue files using Prettier in VS Code?

I'm trying to use the editor.action.formatSelection command on .vue files in VS Code. However, the option is not available. I'm aware that Vetur doesn't support this feature, therefore, i've disabled ...
David's user avatar
  • 16.6k

15 30 50 per page
1
2 3 4 5
8