Questions tagged [prettier-standard]

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

JS code formatter which is combines the functionality of the standard linter with the prettier code formatter. https://www.npmjs.com/package/prettier-standard

8 questions
15
votes
7 answers

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 found: ""./**/*.{js,html}"". any ideas how to fix? do you…
Sergino
  • 10,128
  • 30
  • 98
  • 159
9
votes
1 answer

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 "format": "prettier-standard --parser typescript…
developarvin
  • 4,940
  • 12
  • 54
  • 100
6
votes
0 answers

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 route = routeModule.config ?…
Mohsen
  • 1,295
  • 1
  • 15
  • 45
5
votes
1 answer

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 to VSCode I started getting this issue and it…
Kevin192291
  • 1,925
  • 4
  • 26
  • 43
2
votes
0 answers

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 but without autofixing it on format. Is there some…
The Wormple
  • 83
  • 1
  • 6
1
vote
0 answers

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 in the output that prettier is actually running…
0
votes
0 answers

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 here can't print consol.log values like node and…
0
votes
1 answer

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