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

Code style: Use wp-scripts format-js to change file formatting #107

Merged
merged 2 commits into from
Feb 26, 2020

Conversation

gziolo
Copy link
Member

@gziolo gziolo commented Feb 24, 2020

This PR updates WordPress packages to the latest version. The new version of @wordpress/scripts includes breaking changes introduced with Prettier and opinionated code formatting.

A few things that this PR includes:

  • all ESNext enabled packages have now format:js script integrated to make it easier for developers to keep one code style
  • lint-js script name was renamed to lint:js to align with format:js
  • I removed lint:pkg-json from pretest in the test script in the root package.json – I admit that it could be moved to its own PR but given the small number of reviewers in this repo, I wanted to batch it.

@gziolo gziolo added the dependencies Pull requests that update a dependency file label Feb 24, 2020
@gziolo gziolo self-assigned this Feb 24, 2020
@gziolo
Copy link
Member Author

gziolo commented Feb 24, 2020

I removed lint:pkg-json from pretest in the test script in the root package.json – I admit that it could be moved to its own PR but given the small number of reviewers in this repo, I wanted to batch it.

We should land #108 first and remove all unnecessary changes from this PR afterward with rebase.

@mkaz mkaz force-pushed the update/packages-upgrade branch from 649e38d to cbd64c3 Compare February 26, 2020 00:41
Copy link
Member

@mkaz mkaz left a comment

Choose a reason for hiding this comment

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

👍 Looks good, I was about to say approved once you rebase, but figured I could rebase it for you ;-)

@gziolo
Copy link
Member Author

gziolo commented Feb 26, 2020

Thanks @mkaz 😃

@gziolo gziolo merged commit 2557b17 into master Feb 26, 2020
@gziolo gziolo deleted the update/packages-upgrade branch February 26, 2020 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants