-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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 detox folder #278
Conversation
cc @DanielMSchmidt / @rotemmiz |
Could you maybe add a config to set spaces to tabs? That would be awesome! |
@AlanFoster Nice work. Awesome! |
And having the prettierrc on root level would be pretty awesome 👍 |
There are two big PRs adjacent to this PR (#268, #277) , please let's make them land in master before this PR, since there may be some ugly conflicts when merging. If you can, it will be best if you could split the configuration of prettier from the actual code changes its linter generated, that way we could merge the config right, in and won't need to wait. |
@rotemmiz Sounds good to me 👍 As a quick question - would you prefer tabs or spaces? Or should we just stick to the default settings? |
Tabs please, as discussed in #223. For the rest I would stick with the defaults :) |
4c2b89c
to
b034008
Compare
@rotemmiz / @DanielMSchmidt I've dropped the commit that actually does the prettier transform. For now this is a configuration only PR as requested. I have also dropped any rules that directly conflict with prettier, and I have decided to not progress with a "prettier/prettier": [
"error", {
"useTabs": true
}
], Once the blocking PRs are merged in, I can put up another PR that has run Let me know if there are any other changes to be made :) |
b034008
to
fd304ec
Compare
Hey @AlanFoster , can you please update the branch and resolve conflicts, I want to merge this PR after CI is green. Thanks! |
Hey @AlanFoster , can you please update the branch and resolve conflicts, I want to merge this PR after CI is green. Thanks! |
fd304ec
to
6387797
Compare
@rotemmiz Thanks for the poke; Rebased as requested 👍 I can put up further PRs to fix the linting issues, or you can run |
@AlanFoster Can you take a look at #432? I redid the changes you introduced, this PR is somehow not rebaseable... |
d89a496
to
fc00a3a
Compare
9d03934
to
1e7990a
Compare
@DanielMSchmidt For visibility the this PR is rebased and should be good to go still :) |
Awersome, thanks @AlanFoster 👍 |
This is the first PR to help deliver #223
This Pr adds support for prettier as part of detox's linting pipeline. In the future you can automagically fix errors with:
In a separate PR I will add support for connecting this up to the CI pipeline, and husky for pre-push validations 👍