{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/4800","labels_url":"https://api.github.com/repos/eslint/eslint/issues/4800/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/4800/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/4800/events","html_url":"https://github.com/eslint/eslint/issues/4800","id":123809921,"number":4800,"title":"NPM scope not working when targeting files.","user":{"login":"satazor","id":1017236,"avatar_url":"https://avatars.githubusercontent.com/u/1017236?v=3","gravatar_id":"","url":"https://api.github.com/users/satazor","html_url":"https://github.com/satazor","followers_url":"https://api.github.com/users/satazor/followers","following_url":"https://api.github.com/users/satazor/following{/other_user}","gists_url":"https://api.github.com/users/satazor/gists{/gist_id}","starred_url":"https://api.github.com/users/satazor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satazor/subscriptions","organizations_url":"https://api.github.com/users/satazor/orgs","repos_url":"https://api.github.com/users/satazor/repos","events_url":"https://api.github.com/users/satazor/events{/privacy}","received_events_url":"https://api.github.com/users/satazor/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/triage","name":"triage","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-24T14:47:04Z","updated_at":"2015-12-24T14:47:04Z","closed_at":null,"body":"https://github.com/eslint/eslint/pull/3136 gave us support for user scoped npm packages but it doesn't support targeting specific files.\r\n\r\nConsider the following estlint config file structure:\r\n\r\n```\r\nrules/\r\n   best-pratices.js\r\n   errors.js\r\n   ...\r\nes5.js\r\nes6.js\r\nindex.js\r\n```\r\n\r\nUsing `extends: '@satazor` works great because it uses the `index.js` file but using `@satazor/es5` or @satazor/eslint-config/es5` results in an error:\r\n\r\n`\r\n Error: Cannot find module '@satazor/eslint-config-es5' \r\n Error: Cannot find module '@satazor/eslint-config-eslint-config/es5' \r\n`\r\nIs this expected or a bug? If it is expected how I am able to extend @satazor/es5?"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/167119948","html_url":"https://github.com/eslint/eslint/issues/4800#issuecomment-167119948","issue_url":"https://api.github.com/repos/eslint/eslint/issues/4800","id":167119948,"user":{"login":"eslintbot","id":13383618,"avatar_url":"https://avatars.githubusercontent.com/u/13383618?v=3","gravatar_id":"","url":"https://api.github.com/users/eslintbot","html_url":"https://github.com/eslintbot","followers_url":"https://api.github.com/users/eslintbot/followers","following_url":"https://api.github.com/users/eslintbot/following{/other_user}","gists_url":"https://api.github.com/users/eslintbot/gists{/gist_id}","starred_url":"https://api.github.com/users/eslintbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eslintbot/subscriptions","organizations_url":"https://api.github.com/users/eslintbot/orgs","repos_url":"https://api.github.com/users/eslintbot/repos","events_url":"https://api.github.com/users/eslintbot/events{/privacy}","received_events_url":"https://api.github.com/users/eslintbot/received_events","type":"User","site_admin":false},"created_at":"2015-12-24T14:47:04Z","updated_at":"2015-12-24T14:47:04Z","body":"@satazor Thanks for the issue! If you're reporting a bug, please be sure to include:\n\n1. The version of ESLint you are using (run `eslint -v`)\n2. What you did (the source code and ESLint configuration)\n3. The actual ESLint output complete with numbers\n4. What you expected to happen instead\n\nRequesting a new rule? Please see [Proposing a New Rule](http://eslint.org/docs/developer-guide/contributing/new-rules) for instructions."}}