{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel-eslint/issues/63","labels_url":"https://api.github.com/repos/babel/babel-eslint/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel-eslint/issues/63/comments","events_url":"https://api.github.com/repos/babel/babel-eslint/issues/63/events","html_url":"https://github.com/babel/babel-eslint/issues/63","id":66927935,"number":63,"title":"variable is unused even when exported.","user":{"login":"romeovs","id":1250185,"avatar_url":"https://avatars.githubusercontent.com/u/1250185?v=3","gravatar_id":"","url":"https://api.github.com/users/romeovs","html_url":"https://github.com/romeovs","followers_url":"https://api.github.com/users/romeovs/followers","following_url":"https://api.github.com/users/romeovs/following{/other_user}","gists_url":"https://api.github.com/users/romeovs/gists{/gist_id}","starred_url":"https://api.github.com/users/romeovs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romeovs/subscriptions","organizations_url":"https://api.github.com/users/romeovs/orgs","repos_url":"https://api.github.com/users/romeovs/repos","events_url":"https://api.github.com/users/romeovs/events{/privacy}","received_events_url":"https://api.github.com/users/romeovs/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-07T16:19:32Z","updated_at":"2015-04-14T07:45:07Z","closed_at":"2015-04-14T07:45:07Z","body":"consider the following module:\r\n\r\n```js\r\nexport class Maybe { }\r\n                         \r\nclass Nothing extends Maybe {\r\n  toString() {\r\n    return 'Nothing';\r\n  }\r\n}\r\n\r\nclass Just extends Maybe \r\n  constructor(a) {\r\n    this.value = a;\r\n  }\r\n\r\n  toString() {\r\n    return `Just(${this.value})`;\r\n  }\r\n}\r\n\r\nvar nothing = new Nothing;\r\nvar just = function(val) \r\n  return new Just(val);\r\n};\r\n\r\nexport { just, nothing };\r\n```\r\n\r\n`babel-eslint` tells me that the variables `just` and `nothing` are `defined but never used` (the `no-unused-vars` rule), although they are clearly used."},"comment":{"url":"https://api.github.com/repos/babel/babel-eslint/issues/comments/92678580","html_url":"https://github.com/babel/babel-eslint/issues/63#issuecomment-92678580","issue_url":"https://api.github.com/repos/babel/babel-eslint/issues/63","id":92678580,"user":{"login":"romeovs","id":1250185,"avatar_url":"https://avatars.githubusercontent.com/u/1250185?v=3","gravatar_id":"","url":"https://api.github.com/users/romeovs","html_url":"https://github.com/romeovs","followers_url":"https://api.github.com/users/romeovs/followers","following_url":"https://api.github.com/users/romeovs/following{/other_user}","gists_url":"https://api.github.com/users/romeovs/gists{/gist_id}","starred_url":"https://api.github.com/users/romeovs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romeovs/subscriptions","organizations_url":"https://api.github.com/users/romeovs/orgs","repos_url":"https://api.github.com/users/romeovs/repos","events_url":"https://api.github.com/users/romeovs/events{/privacy}","received_events_url":"https://api.github.com/users/romeovs/received_events","type":"User","site_admin":false},"created_at":"2015-04-14T07:45:07Z","updated_at":"2015-04-14T07:45:07Z","body":"I can confirm the issue does not arise on `babel-eslint` 3.0.1. I'm closing the issue."}}