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

Questions tagged [prettier-standard]

JS code formatter which is combines the functionality of the `standard` linter with the `prettier` code formatter.

prettier-standard
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
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
2 votes
0 answers
473 views

Autofix CSS/SCSS files with semicolons

I'm looking for a way to have my CSS and SCSS code automatically fill in missing semicolons at the end of lines when needed. I've tried both Prettier and Stylelint and both seem to notice the error ...
The Wormple's user avatar
0 votes
1 answer
462 views

Prettier configuration for JSX tag to be in one line

My JSX looks like this: But I really want it to look this way: Can anyone provide their react-prettier json
Rhythm Shandlya's user avatar
7 votes
1 answer
4k views

disable multiline ternary in prettier

Is there way to config prettier to prevent not multi line the ternary operation? wanted this: const route = routeModule.config ? routeModule.config(router) : routeModule(router); not this: const ...
Mohsen's user avatar
  • 1,422
18 votes
8 answers
31k views

Getting an error 'No files matching the pattern were found' when using prettier

I found this answer how to format code using prettier Here is what I've done npm i prettier -g prettier --write \"./**/*.{js,html}\" Got an error [error] No files matching the pattern were ...
Sergino's user avatar
  • 10.6k
1 vote
0 answers
762 views

Settings mentioned in .prettierrc not working

I am using Eslint and prettier for formatting in my react project. This combination was working fine until now but all of a sudden the prettier has stopped doing the formatting. However, I can see ...
prakhar pandey's user avatar
6 votes
1 answer
11k views

Prettier formatting with double quotes

Anyone else come across Prettier formatting code with Double quotes instead of Single even though you explicitly set it to replace with single in the preferences? Here is a pic: After a recent update ...
Kevin192291's user avatar
  • 2,065
9 votes
1 answer
5k views

Prevent prettier-standard from removing semicolons in Typescript interfaces

I have this Typescript interface definition. interface CurrencyAmountProps { value: number; currency: string; } I am currently using prettier-standard this command to format Typescript files "...
developarvin's user avatar
  • 5,039