Atom-beautify: Consider using "prettier" for JS and JSX

Created on 31 Jan 2017  路  10Comments  路  Source: Glavin001/atom-beautify

All 10 comments

Strongly recommend prettier, which is used by Facebook as well

Pull Requests welcome! 馃憤

It would be brutal!
I change it VSCode to Atom only for this Atom-beautify if it already includes Prettier It would be great !!

Atom-Beautify will be coming to VSCode! See https://github.com/Unibeautify/vscode
Once again, Pull Requests welcome to add Prettier support. If not, maybe in the upcoming months I will have time to add it myself 馃槃 .

Thank you Glavin!
I'm a newbie in creating extensions, I am now with snippets for Nunjucks in VSCode.
I'll try to see how to support Prettier.

@Glavin001 / @york-xtrem I can give this a shot if no work has started. @Glavin001, should I just fork off master at this point, or should I work this up elsewhere?

@utilityboy I finally adopted the environment https://www.jetbrains.com. It has everything I need and everything works well at first with great support! Neither Atom, nor visual studio code, nor Sublime, nor anything ...

@utilityboy You should check out the future of Atom Beautify at https://github.com/Unibeautify/

The goal is to get beautifiers in as many editors as possible. We could use a bunch of help as there is a lot of work let to do. Here is an over simplification of necessary tasks:

  1. Create a universal parsing framework that can parse all the languages and allow seamless interchange between various languages/formats.
  2. Adapt existing beautifiers to use the Unibeautify parse-framework and output beautified code.
  3. Create standard interfaces between various code editors and the Unibeautify application that exposes a standard set of options and outputs beautified code.

At this time the maintains of JS Beautify and Pretty Diff are collaborators on Unibeautify working hard to achieve this vision. The guys behind Prettier have expressed great interest in this, as well, but there is still a lot of work to do. If you want Prettier to be available to many various code editors I would suggest enhancing Prettier to support the Unibeautify parse-framework and working through their unit tests. Currently Prettier uses Babel and Flex for their parsers.

just to add, typescript users recommend prettier too

Prettier will be included in Unibeautify! https://github.com/Unibeautify/beautifier-prettier 馃帀

Was this page helpful?
0 / 5 - 0 ratings