Skip to content

Instantly share code, notes, and snippets.

@shelooks16
Created September 10, 2021 22:40
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save shelooks16/6070050aeea2eeaa4b7a84c8e0ebdac3 to your computer and use it in GitHub Desktop.
Save shelooks16/6070050aeea2eeaa4b7a84c8e0ebdac3 to your computer and use it in GitHub Desktop.
Prettier
{
"trailingComma": "none",
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"arrowParens": "always"
}
@nirav1993
Copy link

where to put it? if in settings.json?

@shelooks16
Copy link
Author

@nirav1993 hi

File .prettierc to be placed in the root folder of your project, next to package.json

@rohitsnair7272
Copy link

Where is the root folder of our project , how to get to it @shelooks16

@shelooks16
Copy link
Author

@rohitsnair7272

Root folder is the folder of your project.

d:/myproject - Root folder of your project
d:/myproject/src d:/myproject/any/other/folder - folders inside your project

@Snehalborse23
Copy link

hello
File .prettierc to be placed in the root folder of your project, next to package.json

@AjayNikam13
Copy link

Where is the root folder of our project , how to get to it

@shelooks16
Copy link
Author

@AjayNikam13

The root folder is your project folder.

// root folder
my-cool-app

// src folder in the root folder
my-cool-app/src

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment