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

All Questions

0 votes
0 answers
12 views

Prettier ignores tab width despite settings seem correct

I have this .prettierrc with "prettier": "^3.3.3" installed (package.json): { "printWidth": 100, "useTabs": true, "tabWidth": 2, "...
Oliver Hausler's user avatar
0 votes
0 answers
29 views

Prettier not doing anything to a minified section of HTML?

Given the following code <ul><li><a href="https://www.google.com">Google</a></li></ul> When running prettier it keeps it one single line like that.. any ...
Alfred's user avatar
  • 23
0 votes
0 answers
163 views

Prettier plugin tailwindcss not working in the visual code

In our project we defined the configs for the prettier and eslint. the problem we facing down below so the when eslint server starting working that will not find the prettier-plugin-eslint but its ...
Shankar CJ's user avatar
0 votes
0 answers
15 views

Node_ Modules/qualifier/standalone. js 418:11

I introduced Prettier in my React project, but there was a compilation error/ Node_ Modules/qualifier/standalone. js 418:11 I would like to know how to solve it, When I commented out the code with the ...
尹皓秋's user avatar
0 votes
0 answers
37 views

How to fix auto remove line break in VS Code prettier

Prettier auto remove line break but I want the line break. "prettier.printWidth": 80, prettier.printWidth increases or decrease this is not the solve. Do not remove the line break. Look at ...
Rabiul Souvon's user avatar
0 votes
1 answer
269 views

ERROR: Invalid configuration for file "/Users/hello/Documents/projects/hello_world/.eslintrc.json"

I'm getting this error message when I run the npm run format command in the root directory of my nextjs project: [error] Invalid configuration for file "/Users/hello/Documents/projects/...
r121's user avatar
  • 2,698
0 votes
1 answer
88 views

Prettier add additional tabs

Prettier not adds an additional tab before the return and props declaration. Such formatting is in IntelliJ idea, how I can repeat it in vs code with prettier? My prettier format files: return ( ...
iKotyaX's user avatar
0 votes
1 answer
214 views

How can I make prettier put HTML/JSX attributes on the same line up to a specific length?

prettier do this auto newline <TextField name="message" variant="outlined" label="Message" fullWidth value={postData.message} onChange={(e) => ...
NoobMaster's user avatar
0 votes
0 answers
171 views

Why isn't my prettier custom plugin working?

i am creating new Vscode extention using prettier custom plugin for formatting code as requirement, my whole code work properly even extension is running properly but my plugin file that i describe ...
Mohit kavad's user avatar
0 votes
1 answer
1k views

How to get ESLint/Prettier to underline errors in code in TypeScript for VS Code

I've installed ESLint and Prettier in my project folder, along with about every add on I could find to help solve the issue. I've also installed and enabled the extensions. However, I don't get any ...
Scott-MEARN-Developer's user avatar
0 votes
0 answers
136 views

Prettier ESLint - Can I force quotes to both avoidEscape and be consistent?

I have the array: ["R'", "L", "U", "D'", "F'", "B"] and it keeps getting formatted to use single quotes on only some of the values because ...
Justin's user avatar
  • 1,019
1 vote
2 answers
1k views

Multiple prettier config in one project in VSC

I have a project where I have tests and src of my code. I wish to use different prettier configs for tests and application sources, so VSC would do the formatting according to the folder i'm in. Is ...
Paweł Małecki's user avatar
2 votes
1 answer
1k views

how to use prettier-plugin-svelte with prettier-plugin-tailwindcss

I'm trying to use prettier to format svelte files with tailwind classes, so that tailwind utilities classes get automatically sorted following tailwind's recommended order I followed this docs: ...
opensas's user avatar
  • 62.3k
0 votes
1 answer
2k views

Why do I have a prettier newline warning on every single line?

The problem is I am getting a prettier error on every single line in my file. Prettier Screenshot I created a blank new Typescript file in an already existing code for a client and that's the only ...
Casey Brown's user avatar
9 votes
1 answer
2k views

Format On Save is ignoring .prettierignore file

I'm currently using Prettier for my projects on Visual Studio Code. Whenever I save, it formats. However, I recently wanted to ignore a specific file from formatting, so I did some research and found ...
Neeko's user avatar
  • 311

15 30 50 per page
1
2 3 4 5
7