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

Make prettier usable from other repositories. #159

Closed
kt3k opened this issue Jan 27, 2019 · 3 comments · Fixed by #165
Closed

Make prettier usable from other repositories. #159

kt3k opened this issue Jan 27, 2019 · 3 comments · Fixed by #165

Comments

@kt3k
Copy link
Member

kt3k commented Jan 27, 2019

deno --allow-run --allow-write https://deno.land/x/prettier/main.ts

The command like the above should format the source code in any repository.

@kt3k
Copy link
Member Author

kt3k commented Jan 28, 2019

I want to clarify these points before starting to work:

  • What options should it support?
  • Should it support non git repository? (probably yes)
  • Should it support config files which the original prettier CLI has? (like .prettierrc.json, .prettierignore)
  • Which languages should it format by default? (maybe ts, js, and md?)

@hayd
Copy link
Contributor

hayd commented Jan 28, 2019

I don't think you necessarily need to support any of these in a first pass.

Perhaps allowing files to be specified if you pass them explicitly.

deno format.ts mod1.ts mod2.ts

@ry
Copy link
Member

ry commented Jan 28, 2019

@kt3k this would be super useful and a minimal version that @hayd described would be great for a first pass.

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 a pull request may close this issue.

3 participants