Atom-beautify: How to configure atom-beautify package to format with babel/jsx javascript files?

Created on 16 May 2016  路  5Comments  路  Source: Glavin001/atom-beautify

I'm new to Atom. And I need help on configuration. I post on stackoverflow but without relevant answer, I seek for help here.

Thank you

question

Most helpful comment

@rr20eid10 JSX should be supported now by JS-Beautify and Pretty Diff beautifiers.

All 5 comments

Please follow the issue template provided. More specifically, adding a link to the required debug.md Gist which includes debugging information that answers our most commonly asked questions: https://github.com/Glavin001/atom-beautify/blob/master/ISSUE_TEMPLATE.md#how-to-create-debugmd-gist
Thank you.

Description

atom-beautify doesn't indent jsx code in javascirpt file

Expected Results

atom-beautify should indent jsx as expected when indenting html code. see language-babel that indent only jsx code ( not the jaascript around)

Steps to Reproduce

  1. Copy code from this javascript file: it's common javascript + jsx code
  2. Format the file:all html tag (that is jsx code) doesn't indent as expected

Thank you for any advices :)

Hey @damienleroux. Thanks for elaborating 馃槂 .
I still need the debug.md Gist:

More specifically, adding a link to the required debug.md Gist which includes debugging information that answers our most commonly asked questions: https://github.com/Glavin001/atom-beautify/blob/master/ISSUE_TEMPLATE.md#how-to-create-debugmd-gist

Thanks!

In Atom, I tried to install and use this plugin, but after installation, I got an underscore.js module error. I clicked the button to create an issue, but nothing happened, so I couldn't create an issue that way. I'm doing a tutorial online and this plugin was recommended, but when looking at description, it doesn't list JSX files specifically. Will JSX support be added to this plugin?

@rr20eid10 JSX should be supported now by JS-Beautify and Pretty Diff beautifiers.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mkermani144 picture mkermani144  路  4Comments

philiplb picture philiplb  路  5Comments

ghost picture ghost  路  4Comments

CorentinAndre picture CorentinAndre  路  4Comments

philippelesaux picture philippelesaux  路  4Comments