Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated prettier doc to use latest prettier release #1264

Merged
merged 1 commit into from
Apr 17, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions docs/articles/getting-started/prettier.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@ Currently, Prettier supports Aura and Lightning Web Components (LWC) as well as

Using Prettier for Aura and LWC requires some configuration.

> NOTE: Prettier support for LWC is coming in the next release of Prettier (version 1.17.0). However, it can be used now by installing the `master` branch as shown in this document.

1. If you don’t already have a `package.json` in your project, run: `npm init`
You can accept all the defaults.
You can accept all the defaults.

1. Install the latest `master` branch of Prettier by running: `npm i prettier/prettier -D`
1. Install Prettier by running: `npm install --save-dev --save-exact prettier`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm assuming it's because of the new LWC parser (https://prettier.io/blog/2019/04/12/1.17.0.html) ?

Copy link
Contributor Author

@ntotten ntotten Apr 17, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

correct, previously it wasn't released so you had to install master.


1. Create a Prettier configuration file called `.prettierrc`, in the root of your project, with the following content.

Expand Down