Skip to content

Add prettier config, format script and reformat files - #16176

Closed
janicduplessis wants to merge 3 commits into
react:masterfrom
janicduplessis:prettier
Closed

Add prettier config, format script and reformat files#16176
janicduplessis wants to merge 3 commits into
react:masterfrom
janicduplessis:prettier

Conversation

@janicduplessis

@janicduplessisjanicduplessis commented Oct 3, 2017

Copy link
Copy Markdown
Contributor

Prettier 1.7.0 has config file + pragma support so this works really well with the current prettier usage. Also added a prettier script to run it (taken mostly from the relay repo) and ran it which caused 1 files to change (probably wasn't updated when upgrading prettier to 1.7.0).

Test plan
Made sure flow still checked
Run 'yarn prettier', should format only files with @format using the config in package.json.

@facebook-github-botfacebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. GH Review: review-needed labels Oct 3, 2017
@shergin

Copy link
Copy Markdown
Contributor

@janicduplessis Conflicts?

@janicduplessis

Copy link
Copy Markdown
ContributorAuthor

@shergin Fixed

@janicduplessis

Copy link
Copy Markdown
ContributorAuthor

ping @shergin :)

@pull-bot

Copy link
Copy Markdown
Warnings
⚠️

🔒 package.json - Changes were made to package.json. This will require a manual import by a Facebook employee.

⚠️

📋 Release Notes - This PR appears to be missing Release Notes.

@facebook-github-bot label Needs more information

@facebook-github-bot label Core Team

Attention: @hramos

Generated by 🚫 dangerJS

@facebook-github-botfacebook-github-bot added the Import Started This pull request has been imported. This does not imply the PR has been approved. label Nov 7, 2017

@facebook-github-botfacebook-github-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@shergin is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

cdlewis pushed a commit to cdlewis/react-native that referenced this pull request Nov 19, 2017
Summary:
Prettier 1.7.0 has config file + pragma support so this works really well with the current prettier usage. Also added a prettier script to run it (taken mostly from the relay repo) and ran it which caused 1 files to change (probably wasn't updated when upgrading prettier to 1.7.0).
**Test plan**
Made sure flow still checked
Run 'yarn prettier', should format only files with `format` using the config in package.json.
Closesreact#16176
Differential Revision: D6256899
Pulled By: shergin
fbshipit-source-id: 646d90c15db8032b7b551da228d26d370babf125
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA SignedThis label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.Import StartedThis pull request has been imported. This does not imply the PR has been approved.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@janicduplessis@shergin@pull-bot@facebook-github-bot