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 to linting configuration. #16440

Merged
merged 4 commits into from
Mar 29, 2018
Merged

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Mar 29, 2018

  • Add prettier via eslint config
  • Add yarn lint:fix command to easily "autofix" linting errors

It will be much easier to review this PR commit by commit as the bulk of the changes are purely mechanical (yarn eslint --fix .). The first commit contains all of the prettier configuration / setup:

a49b007

This ensures that prettier usage is "enforced", but also allows nice
things like `eslint --fix .` (or related in-editor fixers).
This commit is the result of `eslint --fix .` (aka completed automated).
After running prettier across the codebase a few additional linting
errors cropped up.
Makes fixing these linting issues much nicer...
@krisselden
Copy link
Contributor

@mmun why is it controversial? I really think it helps for deciding a style for max line length issues, and it works with typescript and js

@rwjblue
Copy link
Member Author

rwjblue commented Mar 29, 2018

@mmun why is it controversial?

I think that was a specific comment around trailing commas...

@krisselden krisselden merged commit 87f7ee8 into emberjs:master Mar 29, 2018
@rwjblue rwjblue deleted the nail_care branch March 29, 2018 19:47
@mmun
Copy link
Member

mmun commented Mar 29, 2018

@rwjblue Yeah, sorry. :)

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.

3 participants