{"action":"created","issue":{"url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/1006","repository_url":"https://api.github.com/repos/benmosher/eslint-plugin-import","labels_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/1006/labels{/name}","comments_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/1006/comments","events_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/1006/events","html_url":"https://github.com/benmosher/eslint-plugin-import/issues/1006","id":290942192,"number":1006,"title":"'Missing file extension for \"react\"' error with webpack externals","user":{"login":"amkoehler","id":3598113,"avatar_url":"https://avatars1.githubusercontent.com/u/3598113?v=4","gravatar_id":"","url":"https://api.github.com/users/amkoehler","html_url":"https://github.com/amkoehler","followers_url":"https://api.github.com/users/amkoehler/followers","following_url":"https://api.github.com/users/amkoehler/following{/other_user}","gists_url":"https://api.github.com/users/amkoehler/gists{/gist_id}","starred_url":"https://api.github.com/users/amkoehler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amkoehler/subscriptions","organizations_url":"https://api.github.com/users/amkoehler/orgs","repos_url":"https://api.github.com/users/amkoehler/repos","events_url":"https://api.github.com/users/amkoehler/events{/privacy}","received_events_url":"https://api.github.com/users/amkoehler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-01-23T18:17:06Z","updated_at":"2018-04-01T14:25:34Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nWe are using this plugin with webpack and have the settings defined like this in our `.eslintrc`:\r\n\r\n```json\r\n{\r\n  \"settings\": {\r\n    \"import/resolver\": \"webpack\"\r\n  }\r\n}\r\n\r\n```\r\n\r\nThis hasn't been an issue until we started defining externals in webpack. I added the following to our webpack configuration based on webpack's [docs](https://webpack.js.org/configuration/externals/#object) for defining externals:\r\n\r\n```js\r\n  externals: {\r\n    react: 'react',\r\n  },\r\n```\r\n\r\nand suddenly eslint is failing with this error \r\n\r\n```shell\r\nerror  Missing file extension for \"react-dates\"  import/extensions`\r\n```\r\n\r\nI found some issues submitted by other users involving webpack externals but they were for slightly different problems. Any ideas on how to resolve this? "},"comment":{"url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/comments/377790406","html_url":"https://github.com/benmosher/eslint-plugin-import/issues/1006#issuecomment-377790406","issue_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/1006","id":377790406,"user":{"login":"ljharb","id":45469,"avatar_url":"https://avatars1.githubusercontent.com/u/45469?v=4","gravatar_id":"","url":"https://api.github.com/users/ljharb","html_url":"https://github.com/ljharb","followers_url":"https://api.github.com/users/ljharb/followers","following_url":"https://api.github.com/users/ljharb/following{/other_user}","gists_url":"https://api.github.com/users/ljharb/gists{/gist_id}","starred_url":"https://api.github.com/users/ljharb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljharb/subscriptions","organizations_url":"https://api.github.com/users/ljharb/orgs","repos_url":"https://api.github.com/users/ljharb/repos","events_url":"https://api.github.com/users/ljharb/events{/privacy}","received_events_url":"https://api.github.com/users/ljharb/received_events","type":"User","site_admin":false},"created_at":"2018-04-01T14:25:34Z","updated_at":"2018-04-01T14:25:34Z","author_association":"COLLABORATOR","body":"The airbnb config also applies global settings that the import plugin listens to; separately, the line you linked to is master, not yet released - the last released line is [here](https://github.com/airbnb/javascript/blob/eslint-config-airbnb-base-v12.1.0/packages/eslint-config-airbnb-base/rules/imports.js#L134-L137)"}}
{"actor":{"display_login":"ljharb"}}