Skip to content
#

prettier

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

prettier
JStyle21
JStyle21 commented Apr 20, 2020

Hi,

I'm looking for something like .prettierignore but on a global level, i don't want to copy that file to every new directory i make just to ignore 1 file extension which isn't supported anyway.

AFAIK this isn't supported right?

BTW the extension in this case is EJS which prettier thinks is JS and some other stuff so the best way really is to ignore .ejs as a whole.

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.