{"action":"created","issue":{"url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/267","repository_url":"https://api.github.com/repos/benmosher/eslint-plugin-import","labels_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/267/labels{/name}","comments_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/267/comments","events_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/267/events","html_url":"https://github.com/benmosher/eslint-plugin-import/issues/267","id":150927454,"number":267,"title":"Don't try to read imported JSON files","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":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-25T17:08:17Z","updated_at":"2016-04-25T17:38:32Z","closed_at":null,"body":"In Node.js, this is valid and a common pattern:\r\n\r\n```js\r\nvar pkg = require('./package.json');\r\n```\r\n\r\nI got errors when I ran this plugin on [`got`](https://github.com/sindresorhus/got):\r\n\r\n```\r\n  test/headers.js:3\r\n  ✖  3:17  Parse errors in imported module '../package.json': Line 2: Unexpected token (2:9)  import/namespace\r\n  ✖  3:17  Parse errors in imported module '../package.json': Line 2: Unexpected token (2:9)  import/no-named-as-default-member\r\n  ✖  3:17  Parse errors in imported module '../package.json': Line 2: Unexpected token (2:9)  import/no-named-as-default\r\n```"},"comment":{"url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/comments/214453494","html_url":"https://github.com/benmosher/eslint-plugin-import/issues/267#issuecomment-214453494","issue_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/267","id":214453494,"user":{"login":"benmosher","id":3709196,"avatar_url":"https://avatars.githubusercontent.com/u/3709196?v=3","gravatar_id":"","url":"https://api.github.com/users/benmosher","html_url":"https://github.com/benmosher","followers_url":"https://api.github.com/users/benmosher/followers","following_url":"https://api.github.com/users/benmosher/following{/other_user}","gists_url":"https://api.github.com/users/benmosher/gists{/gist_id}","starred_url":"https://api.github.com/users/benmosher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benmosher/subscriptions","organizations_url":"https://api.github.com/users/benmosher/orgs","repos_url":"https://api.github.com/users/benmosher/repos","events_url":"https://api.github.com/users/benmosher/events{/privacy}","received_events_url":"https://api.github.com/users/benmosher/received_events","type":"User","site_admin":false},"created_at":"2016-04-25T17:38:32Z","updated_at":"2016-04-25T17:38:32Z","body":"You got those errors on a `require`?"}}