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

Setup Prettier #162

Merged
merged 1 commit into from
Nov 23, 2020
Merged

Setup Prettier #162

merged 1 commit into from
Nov 23, 2020

Conversation

zg3d
Copy link
Contributor

@zg3d zg3d commented Nov 18, 2020

Fixes issue #157

-added .pretterrc.json
-added prettier script in package.json
-the script was ran on the repo

  • added formatting command in contributing document

Please let me know if I need to make changes

Copy link
Collaborator

@jelhan jelhan left a comment

Choose a reason for hiding this comment

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

Thanks a lot for picking this one up! 👏

Would it okay for you to align it more with Prettier RFC? I think this would be more future proof and cause less noise when Prettier is added to default blueprints.

package.json Outdated
@@ -19,7 +19,8 @@
"start": "ember serve",
"test": "ember test",
"test:all": "ember try:each",
"test:node": "mocha node-tests/**/*-test.js"
"test:node": "mocha node-tests/**/*-test.js",
"format": "prettier --write \"./**/*.{md,json,js,yml}\""
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would prefer to setup Prettier as ESLint plugin as described in the RFC: https://emberjs.github.io/rfcs/0628-prettier.html#detailed-design My main motivation is that we don't need to change much when this RFC is implemented in Ember CLI.

.prettierrc.json Outdated Show resolved Hide resolved
@zg3d
Copy link
Contributor Author

zg3d commented Nov 19, 2020

I'll implement all the changes

implemented prettier with rfc in mind
@zg3d zg3d requested a review from jelhan November 19, 2020 21:08
@jelhan jelhan changed the title Setup Prettier #157 Setup Prettier Nov 23, 2020
Copy link
Collaborator

@jelhan jelhan left a comment

Choose a reason for hiding this comment

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

Thanks a lot!

@jelhan jelhan merged commit 414cf2d into adopted-ember-addons:master Nov 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants