{"action":"closed","issue":{"url":"https://api.github.com/repos/millermedeiros/esformatter/issues/277","labels_url":"https://api.github.com/repos/millermedeiros/esformatter/issues/277/labels{/name}","comments_url":"https://api.github.com/repos/millermedeiros/esformatter/issues/277/comments","events_url":"https://api.github.com/repos/millermedeiros/esformatter/issues/277/events","html_url":"https://github.com/millermedeiros/esformatter/issues/277","id":62789680,"number":277,"title":"extract helper methods from lib/indent.js into its own module","user":{"login":"millermedeiros","id":155633,"avatar_url":"https://avatars.githubusercontent.com/u/155633?v=3","gravatar_id":"","url":"https://api.github.com/users/millermedeiros","html_url":"https://github.com/millermedeiros","followers_url":"https://api.github.com/users/millermedeiros/followers","following_url":"https://api.github.com/users/millermedeiros/following{/other_user}","gists_url":"https://api.github.com/users/millermedeiros/gists{/gist_id}","starred_url":"https://api.github.com/users/millermedeiros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/millermedeiros/subscriptions","organizations_url":"https://api.github.com/users/millermedeiros/orgs","repos_url":"https://api.github.com/users/millermedeiros/repos","events_url":"https://api.github.com/users/millermedeiros/events{/privacy}","received_events_url":"https://api.github.com/users/millermedeiros/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/millermedeiros/esformatter/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/millermedeiros/esformatter/labels/task","name":"task","color":"444444"}],"state":"closed","locked":false,"assignee":{"login":"millermedeiros","id":155633,"avatar_url":"https://avatars.githubusercontent.com/u/155633?v=3","gravatar_id":"","url":"https://api.github.com/users/millermedeiros","html_url":"https://github.com/millermedeiros","followers_url":"https://api.github.com/users/millermedeiros/followers","following_url":"https://api.github.com/users/millermedeiros/following{/other_user}","gists_url":"https://api.github.com/users/millermedeiros/gists{/gist_id}","starred_url":"https://api.github.com/users/millermedeiros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/millermedeiros/subscriptions","organizations_url":"https://api.github.com/users/millermedeiros/orgs","repos_url":"https://api.github.com/users/millermedeiros/repos","events_url":"https://api.github.com/users/millermedeiros/events{/privacy}","received_events_url":"https://api.github.com/users/millermedeiros/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/millermedeiros/esformatter/milestones/2","html_url":"https://github.com/millermedeiros/esformatter/milestones/v0.6.0","labels_url":"https://api.github.com/repos/millermedeiros/esformatter/milestones/2/labels","id":1024557,"number":2,"title":"v0.6.0","description":"","creator":{"login":"millermedeiros","id":155633,"avatar_url":"https://avatars.githubusercontent.com/u/155633?v=3","gravatar_id":"","url":"https://api.github.com/users/millermedeiros","html_url":"https://github.com/millermedeiros","followers_url":"https://api.github.com/users/millermedeiros/followers","following_url":"https://api.github.com/users/millermedeiros/following{/other_user}","gists_url":"https://api.github.com/users/millermedeiros/gists{/gist_id}","starred_url":"https://api.github.com/users/millermedeiros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/millermedeiros/subscriptions","organizations_url":"https://api.github.com/users/millermedeiros/orgs","repos_url":"https://api.github.com/users/millermedeiros/repos","events_url":"https://api.github.com/users/millermedeiros/events{/privacy}","received_events_url":"https://api.github.com/users/millermedeiros/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":9,"state":"open","created_at":"2015-03-17T00:46:40Z","updated_at":"2015-03-21T16:49:52Z","due_on":"2015-04-13T03:00:00Z","closed_at":null},"comments":2,"created_at":"2015-03-18T20:21:21Z","updated_at":"2015-03-21T16:49:52Z","closed_at":"2015-03-21T16:49:52Z","body":"it will be extremely useful for plugins to be able to increase/decrease the indent level in between tokens, so I think we should maintain these methods as a separate module to encourage code reuse.\r\n\r\nwe should not extract the whole file, only extract pure functions that are useful in different contexts (similar to what we did with [rocambole-token](https://github.com/millermedeiros/rocambole-token)) - we tried to maintain the indentation as a separate project before and it was a PITA to keep both projects in sync and to test everything.\r\n\r\nsee #270"}}