{"action":"created","issue":{"url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/662","repository_url":"https://api.github.com/repos/benmosher/eslint-plugin-import","labels_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/662/labels{/name}","comments_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/662/comments","events_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/662/events","html_url":"https://github.com/benmosher/eslint-plugin-import/issues/662","id":188726418,"number":662,"title":"rule to ensure that default export matches module name","user":{"login":"graingert","id":413772,"avatar_url":"https://avatars.githubusercontent.com/u/413772?v=3","gravatar_id":"","url":"https://api.github.com/users/graingert","html_url":"https://github.com/graingert","followers_url":"https://api.github.com/users/graingert/followers","following_url":"https://api.github.com/users/graingert/following{/other_user}","gists_url":"https://api.github.com/users/graingert/gists{/gist_id}","starred_url":"https://api.github.com/users/graingert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graingert/subscriptions","organizations_url":"https://api.github.com/users/graingert/orgs","repos_url":"https://api.github.com/users/graingert/repos","events_url":"https://api.github.com/users/graingert/events{/privacy}","received_events_url":"https://api.github.com/users/graingert/received_events","type":"User","site_admin":false},"labels":[{"id":479711531,"url":"https://api.github.com/repos/benmosher/eslint-plugin-import/labels/evaluating","name":"evaluating","color":"fef2c0","default":false},{"id":308703015,"url":"https://api.github.com/repos/benmosher/eslint-plugin-import/labels/rule%20proposal","name":"rule proposal","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-11T10:08:50Z","updated_at":"2016-11-11T14:25:53Z","closed_at":null,"body":"It would be great to have a rule that  ensure that the default export matches module name:\r\n\r\n\r\neg\r\n\r\n```js\r\n// good\r\n//doSomething.js\r\n\r\nexport default function doSomething {\r\n    ...\r\n}\r\n```\r\n\r\n```js\r\n// bad\r\n//dosomething.js\r\n\r\nexport default function doSomething {\r\n    ...\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/comments/259967869","html_url":"https://github.com/benmosher/eslint-plugin-import/issues/662#issuecomment-259967869","issue_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/662","id":259967869,"user":{"login":"graingert","id":413772,"avatar_url":"https://avatars.githubusercontent.com/u/413772?v=3","gravatar_id":"","url":"https://api.github.com/users/graingert","html_url":"https://github.com/graingert","followers_url":"https://api.github.com/users/graingert/followers","following_url":"https://api.github.com/users/graingert/following{/other_user}","gists_url":"https://api.github.com/users/graingert/gists{/gist_id}","starred_url":"https://api.github.com/users/graingert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graingert/subscriptions","organizations_url":"https://api.github.com/users/graingert/orgs","repos_url":"https://api.github.com/users/graingert/repos","events_url":"https://api.github.com/users/graingert/events{/privacy}","received_events_url":"https://api.github.com/users/graingert/received_events","type":"User","site_admin":false},"created_at":"2016-11-11T14:25:53Z","updated_at":"2016-11-11T14:25:53Z","body":"> I like the idea, though it's a really nitpicky style issue, as the name of the default import is rarely used anywhere else :sweat_smile:.\r\n\r\nI like to use:\r\n```\r\nimport doSomething from './doSomething';\r\n```\r\n\r\n```\r\n//doSomething.js\r\nexport default function doSomething() {\r\n   ...\r\n}\r\n```\r\n\r\neverywhere"}}
{"actor":{"display_login":"graingert"}}