Skip to content
This repository has been archived by the owner on Feb 20, 2020. It is now read-only.

Refactoring and Repo Talk #28

Closed
robwise opened this issue Feb 22, 2017 · 4 comments
Closed

Refactoring and Repo Talk #28

robwise opened this issue Feb 22, 2017 · 4 comments
Labels

Comments

@robwise
Copy link
Collaborator

robwise commented Feb 22, 2017

I just had to refactor the whole codebase over at prettier-atom. I was getting user requirements and PRs that ended up putting conditionals everywhere. Would you be interested in me porting some of that over here (the refactoring I mean, not lots of conditionals lol)?

Also, I'm thinking about making that repo extremely similar to this repo. But, I don't know, maybe it would make sense to go all of the way and just merge the two? And allow the eslint integration to be optional somehow via the user's Atom settings? That would help maintainability a lot and that way we could share updates. For example, prettier-atom now can run on embedded scopes on save (like if you have a script tag in your html file), which we'd otherwise have to sort of copy-and-paste over here.

Also, I really want to implement Jest testing snapshots because manual testing of the rapidly increasing configuration options and stories is becoming a nightmare.

@kentcdodds
Copy link
Owner

I'd be totally fine with it if the prettier-atom folks are fine with it (which appears to be mostly you these days anyway 😄)

Also Jest snapshots are super 🔥

@robwise
Copy link
Collaborator Author

robwise commented Feb 22, 2017

@jlongster what do you think?

@jlongster
Copy link

Sure, I will leave the editor integration up to you all :) I don't think this is a bad thing to do, but it should be default off and not encouraged. It makes things very slow and I recommend just running prettier interactively and then running eslint later.

But I agree that it feels bad to have multiple integrations that all have similar code.

It also makes it easier to evolve it, as we are thinking through some capabilities of prettier (like a server mode) we'll likely reach out to you all about implementing them on the editor side.

robwise added a commit to prettier/prettier-atom that referenced this issue Mar 4, 2017
As discussed in:
- #57
- kentcdodds/prettier-eslint-atom#28
- prettier/prettier#758

This commit completely refactors the repo. We now allow using
prettier-eslint as an option so that you do not need to install
a separate plugin (prettier-eslint-atom).

Under the hood, almost all of the code has been refactored and
covered by Jest integration tests. We also implement Babel and
many of the devops/build configurations that Kent Dodds authored
in the prettier-eslint-atom repo.

Resolves #57
robwise added a commit to prettier/prettier-atom that referenced this issue Mar 4, 2017
As discussed in:
- #57
- kentcdodds/prettier-eslint-atom#28
- prettier/prettier#758

This commit completely refactors the repo. We now allow using
prettier-eslint as an option so that you do not need to install
a separate plugin (prettier-eslint-atom).

Under the hood, almost all of the code has been refactored and
covered by Jest integration tests. We also implement Babel and
many of the devops/build configurations that Kent Dodds authored
in the prettier-eslint-atom repo.

Resolves #57
@kentcdodds
Copy link
Owner

I've deprecated this plugin. Thanks for all your work @robwise!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants