Skip to content
#

prettier

Here are 1,813 public repositories matching this topic...

prettier
lydell
lydell commented Mar 22, 2020

Now that Prettier 2.0 has been released with its improved CLI, I think we should add a section do the docs showing a recommended example setup.

  1. Recommend using an editor extension that lets you run Prettier from your editor. Link to popular extensions. Maybe add some tips on how to configure for example prettier-vscode.
  2. Recommend adding an empty ({}) .prettierrc.json to signify to edit
iamashin
iamashin commented Mar 28, 2020

This problem was found when creating the .Vue file. The project was created using Nuxt & TS. No idea how to fix this. Please help.

I'm a beginner in vue and prettier

package.json

"scripts": {
"dev": "nuxt-ts",
"build": "nuxt-ts build",
"generate": "nuxt-ts generate",
"start": "nuxt-ts start",
"lint": "eslint --ext .js,.vue --ignore-path .gitignore ."

plugin-ruby
cbothner
cbothner commented Feb 9, 2019

Input

Person
  .select('people.id, people.name, comments.text')
  .joins(:comments)
  .where('comments.created_at > ?', 1.week.ago)

Current output

Person.select('people.id, people.name, comments.text').joins(:comments).where(
  'comments.created_at > ?', 1.week.ago
)

Expected output

Person
  .select('people.id, people.name, comment
JohnApache
JohnApache commented Nov 27, 2019

Command:

$ prettier-eslint 'src/**/*.{ts,tsx}' --write 

Executing this command throws an exception!

but when I use the full path, Like this:

$ prettier-eslint '/Users/cuijianwei/WebstormProjects/testproject/hasaki-cli-demo/gen-demo/src/**/*.{ts,tsx}' --write 
 

no error is reported, but I want to support relative paths

When I use version 6.6.0 of

Improve this page

Add a description, image, and links to the prettier topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the prettier topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.