{"action":"created","issue":{"url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/issues/41","repository_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier","labels_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/issues/41/comments","events_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/issues/41/events","html_url":"https://github.com/prettier/eslint-plugin-prettier/pull/41","id":246927616,"number":41,"title":"feat: expose reporter api","user":{"login":"ikatyang","id":8341033,"avatar_url":"https://avatars1.githubusercontent.com/u/8341033?v=4","gravatar_id":"","url":"https://api.github.com/users/ikatyang","html_url":"https://github.com/ikatyang","followers_url":"https://api.github.com/users/ikatyang/followers","following_url":"https://api.github.com/users/ikatyang/following{/other_user}","gists_url":"https://api.github.com/users/ikatyang/gists{/gist_id}","starred_url":"https://api.github.com/users/ikatyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikatyang/subscriptions","organizations_url":"https://api.github.com/users/ikatyang/orgs","repos_url":"https://api.github.com/users/ikatyang/repos","events_url":"https://api.github.com/users/ikatyang/events{/privacy}","received_events_url":"https://api.github.com/users/ikatyang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-08-01T01:11:12Z","updated_at":"2017-08-02T12:13:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/pulls/41","html_url":"https://github.com/prettier/eslint-plugin-prettier/pull/41","diff_url":"https://github.com/prettier/eslint-plugin-prettier/pull/41.diff","patch_url":"https://github.com/prettier/eslint-plugin-prettier/pull/41.patch"},"body":"Fixes #39 "},"comment":{"url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/issues/comments/319654225","html_url":"https://github.com/prettier/eslint-plugin-prettier/pull/41#issuecomment-319654225","issue_url":"https://api.github.com/repos/prettier/eslint-plugin-prettier/issues/41","id":319654225,"user":{"login":"ikatyang","id":8341033,"avatar_url":"https://avatars1.githubusercontent.com/u/8341033?v=4","gravatar_id":"","url":"https://api.github.com/users/ikatyang","html_url":"https://github.com/ikatyang","followers_url":"https://api.github.com/users/ikatyang/followers","following_url":"https://api.github.com/users/ikatyang/following{/other_user}","gists_url":"https://api.github.com/users/ikatyang/gists{/gist_id}","starred_url":"https://api.github.com/users/ikatyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikatyang/subscriptions","organizations_url":"https://api.github.com/users/ikatyang/orgs","repos_url":"https://api.github.com/users/ikatyang/repos","events_url":"https://api.github.com/users/ikatyang/events{/privacy}","received_events_url":"https://api.github.com/users/ikatyang/received_events","type":"User","site_admin":false},"created_at":"2017-08-02T12:13:22Z","updated_at":"2017-08-02T12:13:22Z","body":"I think this package can be separated into three part (`eslint-plugin-prettier`, `generate-differences `and `show-invisible`), all of them are useful and reusable, but it seems you don't want to separate them, so I just refactor them to have minimum changes for exposing API.\r\n\r\nmaybe we can have something like this? \r\n\r\n```ts\r\nfunction generateDifferences(source: string, target: string): Result[];\r\ninterface Result {\r\n  operation: Operation;\r\n  offset: number;\r\n  insertText: string;\r\n  deleteText: string;\r\n}\r\nenum Operation {\r\n  Insert,\r\n  Delete,\r\n  Replace,\r\n}\r\n```"}}
{"actor":{"display_login":"ikatyang"}}