Questions tagged [prettier-vscode]
The prettier-vscode tag has no usage guidance.
prettier-vscode
111
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,
"...
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 ...
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 ...
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 ...
1
vote
0
answers
282
views
VS Code Not Highlighting Errors/Missing Imports
VS Code stopped highlighting errors/missing imports. Using Prettier, ESLint extensions, but no luck.
I tried to reinstall again, didn't work still. Any suggestions?
More:
Version: 1.84.2 (user setup)
...
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 ...
-1
votes
1
answer
53
views
EsLint /prettier giving unnecessary errors and providing auto adding paranthesis to the end of the expression
I am using redux saga for asynchronous calls, I made an API call and store the data in local storage but eslint/prettier is auto adding parenthesis to assignment operator at the end of line. I don't ...
0
votes
0
answers
82
views
use `prettier-plugin-svelte` in a sub folder project
I have about 3 hours, adjusting configurations and reloading VS Code with no solution to my issue. Obviously I am doing something dumb and found it's time to make it public, while asking for help...
...
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/...
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 ( ...
0
votes
1
answer
215
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) => ...
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 ...
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 ...
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 ...
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 ...