-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Introduce prettier to keep the format of the codebase consistent #1103
Conversation
7abea62
to
4482060
Compare
4482060
to
cc14442
Compare
"lint-staged": { | ||
"*.{ts,tsx,js,jsx}": [ | ||
"prettier --write --print-width 100 --tab-width 4 --no-semi", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mweststrate are you okay with no semi and tab with 4?
Yep! Sorry for not responding earlier
Op ma 7 aug. 2017 10:18 schreef Jiri Spac <[email protected]>:
… ***@***.**** commented on this pull request.
------------------------------
In package.json
<#1103 (comment)>:
> \ No newline at end of file
+ ],
+ "lint-staged": {
+ "*.{ts,tsx,js,jsx}": [
+ "prettier --write --print-width 100 --tab-width 4 --no-semi",
@mweststrate <https://github.com/mweststrate> are you okay with no semi
and tab with 4?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1103 (review)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABvGhJAMIcsxgck-AAy6ZIl0vsM3DQZsks5sVshngaJpZM4Ocq7o>
.
|
awesome. Since this builds fine, I'll merge it. |
Am I missing something or is there a dependency to |
@phiresky yeah we're missing husky. We have |
This PR attempts to address issue #1060.
In short it introduces the
prettier
andlint-staged
dependencies and setups the same tasks and configuration as in mobxjs/mobx-state-tree. The prettier was also run across the codebase to ensure it aligns with the new codestyle.It should be notes that the codestyle in
mobx-state-tree
is not the same as in this codebase and thus this commit introduces a lot of changes. If you prefer I could align the rules used by prettier to more closely match this repository to minimize the amount of changes in the pull request.