{"action":"opened","issue":{"url":"https://api.github.com/repos/royriojas/esformatter-jsx/issues/65","repository_url":"https://api.github.com/repos/royriojas/esformatter-jsx","labels_url":"https://api.github.com/repos/royriojas/esformatter-jsx/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/royriojas/esformatter-jsx/issues/65/comments","events_url":"https://api.github.com/repos/royriojas/esformatter-jsx/issues/65/events","html_url":"https://github.com/royriojas/esformatter-jsx/issues/65","id":153070633,"number":65,"title":"format with beautify in sublime","user":{"login":"kaktus42","id":1608815,"avatar_url":"https://avatars.githubusercontent.com/u/1608815?v=3","gravatar_id":"","url":"https://api.github.com/users/kaktus42","html_url":"https://github.com/kaktus42","followers_url":"https://api.github.com/users/kaktus42/followers","following_url":"https://api.github.com/users/kaktus42/following{/other_user}","gists_url":"https://api.github.com/users/kaktus42/gists{/gist_id}","starred_url":"https://api.github.com/users/kaktus42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaktus42/subscriptions","organizations_url":"https://api.github.com/users/kaktus42/orgs","repos_url":"https://api.github.com/users/kaktus42/repos","events_url":"https://api.github.com/users/kaktus42/events{/privacy}","received_events_url":"https://api.github.com/users/kaktus42/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-04T17:29:19Z","updated_at":"2016-05-04T17:29:19Z","closed_at":null,"body":"I installed jsfmt and esformatter-jsx like here:\r\nhttps://github.com/royriojas/esformatter-jsx/wiki/Usage-with-jsfmt\r\nAnd installed beautify globally with npm.\r\n\r\nThe javascript-part gets formatted okay, but the jsx part is not processed by beautify.\r\n\r\nMy jsfmt.sublime-settings:\r\n\r\n```\r\n{\r\n  \"autoformat\": true,\r\n  \"extensions\": [\r\n    \"js\",\r\n    \"jsx\",\r\n    \"sublime-settings\"\r\n  ],\r\n  \"jsx\": {\r\n    \"alignWithFirstAttribute\": true,\r\n    \"attrsOnSameLineAsTag\": false,\r\n    \"firstAttributeOnSameLine\": false,\r\n    \"formatJSX\": true,\r\n    \"maxAttrsOnTag\": 1,\r\n    \"htmlOptions\": { // same as the ones passed to js-beautifier.html\r\n      \"brace_style\": \"collapse\",\r\n      \"indent_char\": \" \",\r\n      \"indent_size\": 2,\r\n      \"max_preserve_newlines\": 2,\r\n      \"preserve_newlines\": true\r\n    //wrap_line_length: 250\r\n    }\r\n  },\r\n  \"plugins\": [\r\n    \"esformatter-jsx\",\r\n  ]\r\n}\r\n```\r\n\r\nI also tried with console: `esformatter <FILE>` with a .esformatter with the config from here: https://github.com/royriojas/esformatter-jsx#config\r\nAnd that works fine.\r\n\r\nWhat can I do make it work in sublime? Can I maybe also load the config file from the project dir into sublime?"}}