{"action":"created","issue":{"url":"https://api.github.com/repos/sindresorhus/eslint-plugin-unicorn/issues/27","repository_url":"https://api.github.com/repos/sindresorhus/eslint-plugin-unicorn","labels_url":"https://api.github.com/repos/sindresorhus/eslint-plugin-unicorn/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/eslint-plugin-unicorn/issues/27/comments","events_url":"https://api.github.com/repos/sindresorhus/eslint-plugin-unicorn/issues/27/events","html_url":"https://github.com/sindresorhus/eslint-plugin-unicorn/issues/27","id":155000490,"number":27,"title":"Prevent using `Error` when doing type-checking","user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"labels":[{"id":355209654,"url":"https://api.github.com/repos/sindresorhus/eslint-plugin-unicorn/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":445961812,"url":"https://api.github.com/repos/sindresorhus/eslint-plugin-unicorn/labels/good%20for%20beginner","name":"good for beginner","color":"5ed9c7","default":false},{"id":464939080,"url":"https://api.github.com/repos/sindresorhus/eslint-plugin-unicorn/labels/hacktoberfest","name":"hacktoberfest","color":"ae5826","default":false},{"id":355209655,"url":"https://api.github.com/repos/sindresorhus/eslint-plugin-unicorn/labels/help%20wanted","name":"help wanted","color":"128A0C","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-05-16T10:18:00Z","updated_at":"2016-11-03T06:36:05Z","closed_at":null,"body":"I often forget to use a `TypeError` when doing type-checking in a module.\n\nExample:\n\n``` js\nif (Array.isArray(foo)) {\n    throw new Error('Expected an array');\n}\n```\n\nWould be nice to error the conditional only does type-checking and prevent the use of `Error`. Custom errors should be allowed.\n## \n\nNew to making ESLint rules? Check out this quick guide on [how to get started](https://gist.github.com/sindresorhus/1656c46f23545deff8cc713649dcff26).\n"},"comment":{"url":"https://api.github.com/repos/sindresorhus/eslint-plugin-unicorn/issues/comments/258072738","html_url":"https://github.com/sindresorhus/eslint-plugin-unicorn/issues/27#issuecomment-258072738","issue_url":"https://api.github.com/repos/sindresorhus/eslint-plugin-unicorn/issues/27","id":258072738,"user":{"login":"florianb","id":983507,"avatar_url":"https://avatars.githubusercontent.com/u/983507?v=3","gravatar_id":"","url":"https://api.github.com/users/florianb","html_url":"https://github.com/florianb","followers_url":"https://api.github.com/users/florianb/followers","following_url":"https://api.github.com/users/florianb/following{/other_user}","gists_url":"https://api.github.com/users/florianb/gists{/gist_id}","starred_url":"https://api.github.com/users/florianb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/florianb/subscriptions","organizations_url":"https://api.github.com/users/florianb/orgs","repos_url":"https://api.github.com/users/florianb/repos","events_url":"https://api.github.com/users/florianb/events{/privacy}","received_events_url":"https://api.github.com/users/florianb/received_events","type":"User","site_admin":false},"created_at":"2016-11-03T06:36:05Z","updated_at":"2016-11-03T06:36:05Z","body":"Thanks!"}}
{"actor":{"display_login":"florianb"}}