-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Document recommended setup #7828
Copy link
Copy link
Closed
Labels
locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.status:needs discussionIssues needing discussion and a decision to be made before action can be takenIssues needing discussion and a decision to be made before action can be takentype:docsIssues about adding or improving documentationIssues about adding or improving documentation
Metadata
Metadata
Assignees
Labels
locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.status:needs discussionIssues needing discussion and a decision to be made before action can be takenIssues needing discussion and a decision to be made before action can be takentype:docsIssues about adding or improving documentationIssues about adding or improving documentation
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.
{}) .prettierrc.json to signify to editor extensions that your project is using Prettier (with default settings).*.html. Mention that this lets both editor extensions and the Prettier CLI know that you don’t want HTML files to be formatted, unlike putting a glob in some npm script or Makefile.prettier --write .when you want to bulk format everything.prettier --check .in CI.I think we should also de-emphasize eslint-plugin-prettier.
prettier --check .is so easy that you don’t really simplify your configuration by putting Prettier in your ESLint setup.Note: We could probably fix #8464 at the same time.