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

Add Prettier #957

Merged
merged 1 commit into from
Jan 18, 2019
Merged

Add Prettier #957

merged 1 commit into from
Jan 18, 2019

Conversation

wincent
Copy link
Contributor

@wincent wincent commented Jan 17, 2019

We should merge something like this when things have settled down a bit and some of the currently in-flight PRs have landed, but this is a preview of how things could look.

As noted in the commit message, this is manual for now (npm run pretty): if we like it, we can enforce formatting with then linter and in the CI.

Related: https://issues.liferay.com/browse/IFI-411

@wincent wincent requested review from julien and jbalsas January 17, 2019 16:20
For now, just a simple manual invocation (`npm run format`) to fix
things up (`npm run prettier` also offered as a synonym, and `npm run
checkFormat` to report files which aren't curretly formatted). The
package.json tasks match the names that we're using for the same in
Clay.

Note the `.prettierignore` file in "src/lang" to prevent the generated
files from being needlessly formatted. (Although the truth is, we could
format them too if we wanted.)

Once we're happy with this we can look at enforcing correct
formatting with the linter in CI.

Closes: https://issues.liferay.com/browse/IFI-411
@wincent
Copy link
Contributor Author

wincent commented Jan 18, 2019

OK, so I refreshed this on top of the current HEAD of the "2.x-develop" branch. I changed the package.json script names to match the corresponding names in Clay, and I added a .prettierignore to ignore the generated files in "src/lang/".

@wincent wincent merged commit bbb7fa5 into liferay:2.x-develop Jan 18, 2019
@wincent wincent deleted the prettier branch January 24, 2019 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants