{"action":"created","issue":{"url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/625","repository_url":"https://api.github.com/repos/benmosher/eslint-plugin-import","labels_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/625/labels{/name}","comments_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/625/comments","events_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/625/events","html_url":"https://github.com/benmosher/eslint-plugin-import/pull/625","id":183142491,"number":625,"title":"Add deprecated flags to imports-first metadata","user":{"login":"randycoulman","id":1406203,"avatar_url":"https://avatars.githubusercontent.com/u/1406203?v=3","gravatar_id":"","url":"https://api.github.com/users/randycoulman","html_url":"https://github.com/randycoulman","followers_url":"https://api.github.com/users/randycoulman/followers","following_url":"https://api.github.com/users/randycoulman/following{/other_user}","gists_url":"https://api.github.com/users/randycoulman/gists{/gist_id}","starred_url":"https://api.github.com/users/randycoulman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/randycoulman/subscriptions","organizations_url":"https://api.github.com/users/randycoulman/orgs","repos_url":"https://api.github.com/users/randycoulman/repos","events_url":"https://api.github.com/users/randycoulman/events{/privacy}","received_events_url":"https://api.github.com/users/randycoulman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-14T20:24:08Z","updated_at":"2016-10-14T22:42:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/benmosher/eslint-plugin-import/pulls/625","html_url":"https://github.com/benmosher/eslint-plugin-import/pull/625","diff_url":"https://github.com/benmosher/eslint-plugin-import/pull/625.diff","patch_url":"https://github.com/benmosher/eslint-plugin-import/pull/625.patch"},"body":"Over on [eslint-find-rules](https://github.com/sarbbottam/eslint-find-rules), there has been some discussion about being able to detect deprecated rules in order to [not report them as unused](https://github.com/sarbbottam/eslint-find-rules/issues/172) and to [report when they are still being used](https://github.com/sarbbottam/eslint-find-rules/issues/188).\n\nIn order to implement those features, there needs to be a way to detect that a rule has been deprecated.  Core ESLint rules that are deprecated are marked as such in their metadata.\n\nThis PR adds the same `deprecated` flag to the metadata of the deprecated rule in this plugin.\n\nI added a very specific spec for this rule to make sure that `imports-first` is marked as deprecated, but `first` (which is its new name) is not.  There might be a better way to write a more generic test, but when there’s only a single deprecated rule, it’s hard to know what the right direction is."},"comment":{"url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/comments/253937038","html_url":"https://github.com/benmosher/eslint-plugin-import/pull/625#issuecomment-253937038","issue_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/625","id":253937038,"user":{"login":"coveralls","id":2354108,"avatar_url":"https://avatars.githubusercontent.com/u/2354108?v=3","gravatar_id":"","url":"https://api.github.com/users/coveralls","html_url":"https://github.com/coveralls","followers_url":"https://api.github.com/users/coveralls/followers","following_url":"https://api.github.com/users/coveralls/following{/other_user}","gists_url":"https://api.github.com/users/coveralls/gists{/gist_id}","starred_url":"https://api.github.com/users/coveralls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coveralls/subscriptions","organizations_url":"https://api.github.com/users/coveralls/orgs","repos_url":"https://api.github.com/users/coveralls/repos","events_url":"https://api.github.com/users/coveralls/events{/privacy}","received_events_url":"https://api.github.com/users/coveralls/received_events","type":"User","site_admin":false},"created_at":"2016-10-14T22:42:06Z","updated_at":"2016-10-14T22:42:06Z","body":"\n[![Coverage Status](https://coveralls.io/builds/8345301/badge)](https://coveralls.io/builds/8345301)\n\nCoverage increased (+0.01%) to 94.91% when pulling **52327acfd513ed803b31fc5b025051c3a1a05c8d on randycoulman:add-deprecated-to-metadata** into **d9605a0f2e048a903dc8e2f852f0d515bd7bb615 on benmosher:master**.\n"}}
{"actor":{"display_login":"coveralls"}}