Open ezra-g opened 8 years ago
hi @ezra-g,
not sure I understand correctly the issue, I haven't try this plugin with sublime-esformatter
, it seems that package requires you to install esformatter
either in the project folder or globally. How are you installing esformatter
?
if globally I bet you need to also install this plugin as global, the instructions you mentioned were for sublime jsfmt
a different package, so not sure they apply to the one you're using.
I'm attempting to get esformatter-jsx working in Sublime 3. It appears that esformatter is not formatting markup inside the render function of a JSX template.
For example, in this gist, the tab before
class Foo extends Component {
is successfully removed, but the divs remain disorganized in their indentation.I have EsFormatter v2.0.1 installed via Sublime Package Control. Output from
npm list esformatter-jsx
showsesformatter-jsx@7.0.1
andesformatter
isesformatter@0.9.6
.Below are the contents of my EsFormatter.sublime-settings. I've noticed that two issues talk about the default configuration listed on the esformatter-jsx project page as being potentially incorrect because
plugins
should be part of anoptions
array, so I've included that change with no effect (https://github.com/royriojas/esformatter-jsx/issues/46, https://github.com/royriojas/esformatter-jsx/issues/21). If my problem is one of configuration, I'd be happy to file a pull request to update the project page if you can point me to how to resolve the issue here.Thanks!