{"action":"created","issue":{"url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/807","repository_url":"https://api.github.com/repos/benmosher/eslint-plugin-import","labels_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/807/labels{/name}","comments_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/807/comments","events_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/807/events","html_url":"https://github.com/benmosher/eslint-plugin-import/issues/807","id":223087436,"number":807,"title":"`import/order` fails to recognize internal import groups","user":{"login":"yenbekbay","id":10968765,"avatar_url":"https://avatars1.githubusercontent.com/u/10968765?v=4","gravatar_id":"","url":"https://api.github.com/users/yenbekbay","html_url":"https://github.com/yenbekbay","followers_url":"https://api.github.com/users/yenbekbay/followers","following_url":"https://api.github.com/users/yenbekbay/following{/other_user}","gists_url":"https://api.github.com/users/yenbekbay/gists{/gist_id}","starred_url":"https://api.github.com/users/yenbekbay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yenbekbay/subscriptions","organizations_url":"https://api.github.com/users/yenbekbay/orgs","repos_url":"https://api.github.com/users/yenbekbay/repos","events_url":"https://api.github.com/users/yenbekbay/events{/privacy}","received_events_url":"https://api.github.com/users/yenbekbay/received_events","type":"User","site_admin":false},"labels":[{"id":726095640,"url":"https://api.github.com/repos/benmosher/eslint-plugin-import/labels/import/export%20ordering","name":"import/export ordering","color":"c99f2c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2017-04-20T14:31:12Z","updated_at":"2018-05-14T05:25:29Z","closed_at":null,"author_association":"NONE","body":"I'm using [babel-plugin-module-resolver](https://github.com/tleunen/babel-plugin-module-resolver) with [eslint-import-resolver-babel-module](https://github.com/tleunen/eslint-import-resolver-babel-module) to map imports from `~/<path>` to `src/<path>`:\r\n\r\nIn my ESLint config, the `import/order` rule is turned on using the following configuration:\r\n\r\n```js\r\nmodule.exports = {\r\n  rules: {\r\n    'import/order': [\r\n      2,\r\n      {\r\n        groups: [\r\n          'builtin',\r\n          'external',\r\n          'internal',\r\n          ['parent', 'sibling', 'index'],\r\n        ],\r\n        'newlines-between': 'always',\r\n      },\r\n    ],\r\n  },\r\n};\r\n```\r\n\r\nImports from `~/<path>`, I believe, should be classified as an internal import group separated from other groups by a newline. I'm not sure what the behaviour is here, but given the following code:\r\n\r\n```js\r\nimport someNpmModule from 'some-npm-module';\r\n\r\nimport SomeComponent from '~/components/SomeComponent';\r\nimport someUtil from '~/utils/someUtil';\r\n```\r\n\r\nI'm receiving the following error:\r\n```\r\n   3:1   error  There should be at least one empty line between import groups  import/order\r\n```"},"comment":{"url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/comments/388700642","html_url":"https://github.com/benmosher/eslint-plugin-import/issues/807#issuecomment-388700642","issue_url":"https://api.github.com/repos/benmosher/eslint-plugin-import/issues/807","id":388700642,"user":{"login":"stramel","id":855184,"avatar_url":"https://avatars1.githubusercontent.com/u/855184?v=4","gravatar_id":"","url":"https://api.github.com/users/stramel","html_url":"https://github.com/stramel","followers_url":"https://api.github.com/users/stramel/followers","following_url":"https://api.github.com/users/stramel/following{/other_user}","gists_url":"https://api.github.com/users/stramel/gists{/gist_id}","starred_url":"https://api.github.com/users/stramel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stramel/subscriptions","organizations_url":"https://api.github.com/users/stramel/orgs","repos_url":"https://api.github.com/users/stramel/repos","events_url":"https://api.github.com/users/stramel/events{/privacy}","received_events_url":"https://api.github.com/users/stramel/received_events","type":"User","site_admin":false},"created_at":"2018-05-14T05:25:29Z","updated_at":"2018-05-14T05:25:29Z","author_association":"NONE","body":"Any resolution on this? I just ran into the same issue. it won't even show warnings for me with `~/` using `eslint-import-resolver-babel-module`"}}
{"actor":{"display_login":"stramel"}}