{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/4263","labels_url":"https://api.github.com/repos/eslint/eslint/issues/4263/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/4263/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/4263/events","html_url":"https://github.com/eslint/eslint/issues/4263","id":113422175,"number":4263,"title":"Unable to extend local module from default/main file","user":{"login":"pdehaan","id":557895,"avatar_url":"https://avatars.githubusercontent.com/u/557895?v=3","gravatar_id":"","url":"https://api.github.com/users/pdehaan","html_url":"https://github.com/pdehaan","followers_url":"https://api.github.com/users/pdehaan/followers","following_url":"https://api.github.com/users/pdehaan/following{/other_user}","gists_url":"https://api.github.com/users/pdehaan/gists{/gist_id}","starred_url":"https://api.github.com/users/pdehaan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdehaan/subscriptions","organizations_url":"https://api.github.com/users/pdehaan/orgs","repos_url":"https://api.github.com/users/pdehaan/repos","events_url":"https://api.github.com/users/pdehaan/events{/privacy}","received_events_url":"https://api.github.com/users/pdehaan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/accepted","name":"accepted","color":"0052cc"},{"url":"https://api.github.com/repos/eslint/eslint/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/eslint/eslint/labels/core","name":"core","color":"c7def8"}],"state":"closed","locked":false,"assignee":{"login":"nzakas","id":38546,"avatar_url":"https://avatars.githubusercontent.com/u/38546?v=3","gravatar_id":"","url":"https://api.github.com/users/nzakas","html_url":"https://github.com/nzakas","followers_url":"https://api.github.com/users/nzakas/followers","following_url":"https://api.github.com/users/nzakas/following{/other_user}","gists_url":"https://api.github.com/users/nzakas/gists{/gist_id}","starred_url":"https://api.github.com/users/nzakas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nzakas/subscriptions","organizations_url":"https://api.github.com/users/nzakas/orgs","repos_url":"https://api.github.com/users/nzakas/repos","events_url":"https://api.github.com/users/nzakas/events{/privacy}","received_events_url":"https://api.github.com/users/nzakas/received_events","type":"User","site_admin":false},"milestone":null,"comments":28,"created_at":"2015-10-26T18:35:32Z","updated_at":"2015-12-14T13:40:52Z","closed_at":"2015-11-16T19:15:28Z","body":"I created a dummy eslint-config-* file (https://github.com/pdehaan/eslint-config-extends-test) which extends **eslint-config-node-style-guide** and attempts to bundle the node-style-guide dependency so it doesn't need to be installed with each other repo.\r\n\r\nAs you can see, the _index.json_ file is the `main` file in the package.json file, and it extends the ./_base.js file:\r\n```js\r\n{\r\n  \"extends\": \"./_base.js\",\r\n  \"rules\": {\r\n    \"quotes\": [2, \"double\"]\r\n  }\r\n}\r\n```\r\n\r\nWhen I try and use this custom config in one of my projects, I get the following error:\r\n\r\n> \"Error: Cannot find module 'eslint-config-_base.js'\"\r\n\r\nWhere my package.json includes the following:\r\n```js\r\n  \"devDependencies\": {\r\n    \"eslint\": \"^1.7.3\",\r\n    \"eslint-config-extends-test\": \"pdehaan/eslint-config-extends-test\"\r\n  }\r\n```\r\n\r\nand my project's .eslintrc file uses my custom config:\r\n```js\r\n{\r\n  \"extends\": \"extends-test\"\r\n}\r\n```\r\n\r\n---\r\n\r\nFull error stack from npm:\r\n```\r\n➜  eslint-config-extends-test_client  npm test\r\n\r\n> eslint-config-extends-test_client@1.0.0 test /Users/pdehaan/dev/tmp/del/eslint-config-extends-test_client\r\n> eslint .\r\n\r\n\r\n/Users/pdehaan/dev/tmp/del/eslint-config-extends-test_client/node_modules/eslint/lib/config.js:213\r\n                    throw e;\r\n                          ^\r\nError: Cannot find module 'eslint-config-_base.js'\r\nReferenced from: extends-test\r\nReferenced from: /Users/pdehaan/dev/tmp/del/eslint-config-extends-test_client/.eslintrc\r\n    at Function.Module._resolveFilename (module.js:338:15)\r\n    at Function.Module._load (module.js:280:25)\r\n    at Module.require (module.js:364:17)\r\n    at require (module.js:380:17)\r\n    at readConfigFromFile (/Users/pdehaan/dev/tmp/del/eslint-config-extends-test_client/node_modules/eslint/lib/config.js:155:44)\r\n    at loadConfig (/Users/pdehaan/dev/tmp/del/eslint-config-extends-test_client/node_modules/eslint/lib/config.js:176:22)\r\n    at /Users/pdehaan/dev/tmp/del/eslint-config-extends-test_client/node_modules/eslint/lib/config.js:207:46\r\n    at Array.reduceRight (native)\r\n    at loadConfig (/Users/pdehaan/dev/tmp/del/eslint-config-extends-test_client/node_modules/eslint/lib/config.js:191:36)\r\n    at /Users/pdehaan/dev/tmp/del/eslint-config-extends-test_client/node_modules/eslint/lib/config.js:207:46\r\nnpm ERR! Test failed.  See above for more details.\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/164441062","html_url":"https://github.com/eslint/eslint/issues/4263#issuecomment-164441062","issue_url":"https://api.github.com/repos/eslint/eslint/issues/4263","id":164441062,"user":{"login":"chapinkapa","id":4140149,"avatar_url":"https://avatars.githubusercontent.com/u/4140149?v=3","gravatar_id":"","url":"https://api.github.com/users/chapinkapa","html_url":"https://github.com/chapinkapa","followers_url":"https://api.github.com/users/chapinkapa/followers","following_url":"https://api.github.com/users/chapinkapa/following{/other_user}","gists_url":"https://api.github.com/users/chapinkapa/gists{/gist_id}","starred_url":"https://api.github.com/users/chapinkapa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chapinkapa/subscriptions","organizations_url":"https://api.github.com/users/chapinkapa/orgs","repos_url":"https://api.github.com/users/chapinkapa/repos","events_url":"https://api.github.com/users/chapinkapa/events{/privacy}","received_events_url":"https://api.github.com/users/chapinkapa/received_events","type":"User","site_admin":false},"created_at":"2015-12-14T13:40:52Z","updated_at":"2015-12-14T13:40:52Z","body":"I have tried with an absolute path to the module also. It throws the same issue. \n"}}