{"action":"created","issue":{"url":"https://api.github.com/repos/bcomnes/sublime-standard-format/issues/71","repository_url":"https://api.github.com/repos/bcomnes/sublime-standard-format","labels_url":"https://api.github.com/repos/bcomnes/sublime-standard-format/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/bcomnes/sublime-standard-format/issues/71/comments","events_url":"https://api.github.com/repos/bcomnes/sublime-standard-format/issues/71/events","html_url":"https://github.com/bcomnes/sublime-standard-format/issues/71","id":296253836,"number":71,"title":"indentation formatting error after several comment lines","user":{"login":"mesqueeb","id":3253920,"avatar_url":"https://avatars3.githubusercontent.com/u/3253920?v=4","gravatar_id":"","url":"https://api.github.com/users/mesqueeb","html_url":"https://github.com/mesqueeb","followers_url":"https://api.github.com/users/mesqueeb/followers","following_url":"https://api.github.com/users/mesqueeb/following{/other_user}","gists_url":"https://api.github.com/users/mesqueeb/gists{/gist_id}","starred_url":"https://api.github.com/users/mesqueeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mesqueeb/subscriptions","organizations_url":"https://api.github.com/users/mesqueeb/orgs","repos_url":"https://api.github.com/users/mesqueeb/repos","events_url":"https://api.github.com/users/mesqueeb/events{/privacy}","received_events_url":"https://api.github.com/users/mesqueeb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-12T02:48:16Z","updated_at":"2018-02-16T12:48:18Z","closed_at":null,"author_association":"NONE","body":"I have a formatting problem where the there are countless of indentation mistakes after a few lines of comments.\r\n\r\nI have deleted many lines for the sake of focussing on just the wrong formatting.\r\n\r\n**before:**\r\n```js\r\nduplicate ({state, getters, commit, dispatch},\r\n\t{id = state.selection.selectedId} = {id:state.selection.selectedId})\r\n{\r\n\treturn new Promise((resolve, reject) => {\r\n\t\tfunction doRecursively(item, newParentId) {\r\n\t\t\t// Set up a dupe of the main item & add a node without inserting into the DOM yet.\r\n\t\t\tlet dupeItem = JSON.parse(JSON.stringify(item));\r\n\t\t\treturn dupeItem.id\r\n\t\t}\r\n\r\n\t\tdispatch('addItem', {item: mainDupeItem, index, addNextItemAs: 'stop'})\r\n\t\t.then(_ => {\r\n\t\t\t// One after each other:\r\n\t\t\t\t// causes bugs with syncing children_order of mainDupeItem afterwards. I DONT KNOW WHY\r\n\t\t\t// dispatch('postNewItem', {items: [mainDupeItem]})\r\n\t\t\t// .then(_ => dispatch('postNewItem', {items: dupeChildren}))\r\n\t\t\t// In one go:\r\n\t\t\tdispatch('postNewItem', {items: mainAndAllChildren})\r\n\t\t\t.then(_ => {\r\n\t\t\t\tconsole.log('finished Duplication of :', id);\r\n\t\t\t\tresolve('finished Duplicate', _)\r\n\t\t\t})\r\n\t\t\t.catch(error => reject(error));\r\n\t\t});\r\n\t});\r\n},\r\n```\r\n**after:**\r\n```js\r\n  duplicate ({state, getters, commit, dispatch},\r\n  {id = state.selection.selectedId} = {id: state.selection.selectedId}) {\r\n    return new Promise((resolve, reject) => {\r\n      function doRecursively (item, newParentId) {\r\n      // Set up a dupe of the main item & add a node without inserting into the DOM yet.\r\n        let dupeItem = JSON.parse(JSON.stringify(item))\r\n        return dupeItem.id\r\n      }\r\n\r\n      dispatch('addItem', {item: mainDupeItem, index, addNextItemAs: 'stop'})\r\n    .then(_ => {\r\n      // One after each other:\r\n        // causes bugs with syncing children_order of mainDupeItem afterwards. I DONT KNOW WHY\r\n      // dispatch('postNewItem', {items: [mainDupeItem]})\r\n      // .then(_ => dispatch('postNewItem', {items: dupeChildren}))\r\n      // In one go:\r\n  dispatch('postNewItem', {items: mainAndAllChildren})\r\n      .then(_ => {\r\n  console.log('finished Duplication of :', id)\r\n  resolve('finished Duplicate', _)\r\n})\r\n      .catch(error => reject(error))\r\n})\r\n    })\r\n  },\r\n```\r\n\r\nPlease see this final part where all indentation gets really messy."},"comment":{"url":"https://api.github.com/repos/bcomnes/sublime-standard-format/issues/comments/366226751","html_url":"https://github.com/bcomnes/sublime-standard-format/issues/71#issuecomment-366226751","issue_url":"https://api.github.com/repos/bcomnes/sublime-standard-format/issues/71","id":366226751,"user":{"login":"mesqueeb","id":3253920,"avatar_url":"https://avatars3.githubusercontent.com/u/3253920?v=4","gravatar_id":"","url":"https://api.github.com/users/mesqueeb","html_url":"https://github.com/mesqueeb","followers_url":"https://api.github.com/users/mesqueeb/followers","following_url":"https://api.github.com/users/mesqueeb/following{/other_user}","gists_url":"https://api.github.com/users/mesqueeb/gists{/gist_id}","starred_url":"https://api.github.com/users/mesqueeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mesqueeb/subscriptions","organizations_url":"https://api.github.com/users/mesqueeb/orgs","repos_url":"https://api.github.com/users/mesqueeb/repos","events_url":"https://api.github.com/users/mesqueeb/events{/privacy}","received_events_url":"https://api.github.com/users/mesqueeb/received_events","type":"User","site_admin":false},"created_at":"2018-02-16T12:48:18Z","updated_at":"2018-02-16T12:48:18Z","author_association":"NONE","body":"@bcomnes Can I check the ESlint rules inside standard to see if anything is set wrong?\r\nI'm not sure how to solve this issue. : S"}}
{"actor":{"display_login":"mesqueeb"}}