{"action":"created","comment":{"url":"https://api.github.com/repos/eslint/eslint/pulls/comments/48447727","id":48447727,"diff_hunk":"@@ -884,6 +884,38 @@ describe(\"Config\", function() {\n             assertConfigsEqual(actual, expected);\n         });\n \n+        it(\"should extend package sub-configuration with prefix\", function() {\n+\n+            var configDeps = {};\n+            configDeps[\"./config/config-file\"] = proxyquire(\"../../lib/config/config-file\", {\n+                \"@scope/eslint-config/foo\": {\n+                    rules: {\n+                        eqeqeq: 2\n+                    }\n+                }\n+            });\n+\n+            var StubbedConfig = proxyquire(\"../../lib/config\", configDeps);\n+\n+            var configPath = path.resolve(__dirname, \"../fixtures/config-extends/scoped-package9/.eslintrc\"),\n+                configHelper = new StubbedConfig({ useEslintrc: true, configFile: configPath, cwd: process.cwd() }),\n+                expected = {\n+                    rules: { \"quotes\": [2, \"double\"], \"eqeqeq\": 2, \"valid-jsdoc\": 0 },\n+                    env: { \"browser\": false }\n+                };\n+\n+            // Reason to override this function in this special case is that I don't want it to keep looking into the\n+            // chain of parent directories for .eslintrc or package.json file for configs.\n+            // If that is allowed then the expected outcome will change based on the machine you are running this test.\n+            sinon.stub(configHelper, \"findLocalConfigFiles\").returns([\n+                path.resolve(__dirname, \"../fixtures/config-extends/scoped-package9/.eslintrc\")","path":"tests/lib/config.js","position":28,"original_position":28,"commit_id":"c4b6cb8e85787df677b18c7179244721d7b5fde3","original_commit_id":"c4b6cb8e85787df677b18c7179244721d7b5fde3","user":{"login":"btmills","id":1709537,"avatar_url":"https://avatars.githubusercontent.com/u/1709537?v=3","gravatar_id":"","url":"https://api.github.com/users/btmills","html_url":"https://github.com/btmills","followers_url":"https://api.github.com/users/btmills/followers","following_url":"https://api.github.com/users/btmills/following{/other_user}","gists_url":"https://api.github.com/users/btmills/gists{/gist_id}","starred_url":"https://api.github.com/users/btmills/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btmills/subscriptions","organizations_url":"https://api.github.com/users/btmills/orgs","repos_url":"https://api.github.com/users/btmills/repos","events_url":"https://api.github.com/users/btmills/events{/privacy}","received_events_url":"https://api.github.com/users/btmills/received_events","type":"User","site_admin":false},"body":"You should just be able to put `\"root\": true` in the fixture.","created_at":"2015-12-26T15:20:08Z","updated_at":"2015-12-26T15:20:08Z","html_url":"https://github.com/eslint/eslint/pull/4803#discussion_r48447727","pull_request_url":"https://api.github.com/repos/eslint/eslint/pulls/4803","_links":{"self":{"href":"https://api.github.com/repos/eslint/eslint/pulls/comments/48447727"},"html":{"href":"https://github.com/eslint/eslint/pull/4803#discussion_r48447727"},"pull_request":{"href":"https://api.github.com/repos/eslint/eslint/pulls/4803"}}},"pull_request":{"url":"https://api.github.com/repos/eslint/eslint/pulls/4803","id":54592060,"html_url":"https://github.com/eslint/eslint/pull/4803","diff_url":"https://github.com/eslint/eslint/pull/4803.diff","patch_url":"https://github.com/eslint/eslint/pull/4803.patch","issue_url":"https://api.github.com/repos/eslint/eslint/issues/4803","number":4803,"state":"open","locked":false,"title":"Fix extending @scope/eslint/file","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},"body":"Based on the master branch.\r\nFixes #4800 ","created_at":"2015-12-25T18:47:28Z","updated_at":"2015-12-26T15:20:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9dedb3e71b91dff5610932df8c2379f0e5daf7c7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/eslint/eslint/pulls/4803/commits","review_comments_url":"https://api.github.com/repos/eslint/eslint/pulls/4803/comments","review_comment_url":"https://api.github.com/repos/eslint/eslint/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/4803/comments","statuses_url":"https://api.github.com/repos/eslint/eslint/statuses/c4b6cb8e85787df677b18c7179244721d7b5fde3","head":{"label":"satazor:scope_eslint_fix","ref":"scope_eslint_fix","sha":"c4b6cb8e85787df677b18c7179244721d7b5fde3","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},"repo":{"id":48562912,"name":"eslint","full_name":"satazor/eslint","owner":{"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},"private":false,"html_url":"https://github.com/satazor/eslint","description":"A fully pluggable tool for identifying and reporting on patterns in JavaScript.","fork":true,"url":"https://api.github.com/repos/satazor/eslint","forks_url":"https://api.github.com/repos/satazor/eslint/forks","keys_url":"https://api.github.com/repos/satazor/eslint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/satazor/eslint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/satazor/eslint/teams","hooks_url":"https://api.github.com/repos/satazor/eslint/hooks","issue_events_url":"https://api.github.com/repos/satazor/eslint/issues/events{/number}","events_url":"https://api.github.com/repos/satazor/eslint/events","assignees_url":"https://api.github.com/repos/satazor/eslint/assignees{/user}","branches_url":"https://api.github.com/repos/satazor/eslint/branches{/branch}","tags_url":"https://api.github.com/repos/satazor/eslint/tags","blobs_url":"https://api.github.com/repos/satazor/eslint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/satazor/eslint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/satazor/eslint/git/refs{/sha}","trees_url":"https://api.github.com/repos/satazor/eslint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/satazor/eslint/statuses/{sha}","languages_url":"https://api.github.com/repos/satazor/eslint/languages","stargazers_url":"https://api.github.com/repos/satazor/eslint/stargazers","contributors_url":"https://api.github.com/repos/satazor/eslint/contributors","subscribers_url":"https://api.github.com/repos/satazor/eslint/subscribers","subscription_url":"https://api.github.com/repos/satazor/eslint/subscription","commits_url":"https://api.github.com/repos/satazor/eslint/commits{/sha}","git_commits_url":"https://api.github.com/repos/satazor/eslint/git/commits{/sha}","comments_url":"https://api.github.com/repos/satazor/eslint/comments{/number}","issue_comment_url":"https://api.github.com/repos/satazor/eslint/issues/comments{/number}","contents_url":"https://api.github.com/repos/satazor/eslint/contents/{+path}","compare_url":"https://api.github.com/repos/satazor/eslint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/satazor/eslint/merges","archive_url":"https://api.github.com/repos/satazor/eslint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/satazor/eslint/downloads","issues_url":"https://api.github.com/repos/satazor/eslint/issues{/number}","pulls_url":"https://api.github.com/repos/satazor/eslint/pulls{/number}","milestones_url":"https://api.github.com/repos/satazor/eslint/milestones{/number}","notifications_url":"https://api.github.com/repos/satazor/eslint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/satazor/eslint/labels{/name}","releases_url":"https://api.github.com/repos/satazor/eslint/releases{/id}","created_at":"2015-12-25T02:18:39Z","updated_at":"2015-12-25T02:18:41Z","pushed_at":"2015-12-25T20:25:07Z","git_url":"git://github.com/satazor/eslint.git","ssh_url":"git@github.com:satazor/eslint.git","clone_url":"https://github.com/satazor/eslint.git","svn_url":"https://github.com/satazor/eslint","homepage":"http://eslint.org","size":8688,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"eslint:master","ref":"master","sha":"6b71a6355df8c9ffcabcba5a2a11742cc35311f9","user":{"login":"eslint","id":6019716,"avatar_url":"https://avatars.githubusercontent.com/u/6019716?v=3","gravatar_id":"","url":"https://api.github.com/users/eslint","html_url":"https://github.com/eslint","followers_url":"https://api.github.com/users/eslint/followers","following_url":"https://api.github.com/users/eslint/following{/other_user}","gists_url":"https://api.github.com/users/eslint/gists{/gist_id}","starred_url":"https://api.github.com/users/eslint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eslint/subscriptions","organizations_url":"https://api.github.com/users/eslint/orgs","repos_url":"https://api.github.com/users/eslint/repos","events_url":"https://api.github.com/users/eslint/events{/privacy}","received_events_url":"https://api.github.com/users/eslint/received_events","type":"Organization","site_admin":false},"repo":{"id":11061773,"name":"eslint","full_name":"eslint/eslint","owner":{"login":"eslint","id":6019716,"avatar_url":"https://avatars.githubusercontent.com/u/6019716?v=3","gravatar_id":"","url":"https://api.github.com/users/eslint","html_url":"https://github.com/eslint","followers_url":"https://api.github.com/users/eslint/followers","following_url":"https://api.github.com/users/eslint/following{/other_user}","gists_url":"https://api.github.com/users/eslint/gists{/gist_id}","starred_url":"https://api.github.com/users/eslint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eslint/subscriptions","organizations_url":"https://api.github.com/users/eslint/orgs","repos_url":"https://api.github.com/users/eslint/repos","events_url":"https://api.github.com/users/eslint/events{/privacy}","received_events_url":"https://api.github.com/users/eslint/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eslint/eslint","description":"A fully pluggable tool for identifying and reporting on patterns in JavaScript.","fork":false,"url":"https://api.github.com/repos/eslint/eslint","forks_url":"https://api.github.com/repos/eslint/eslint/forks","keys_url":"https://api.github.com/repos/eslint/eslint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eslint/eslint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eslint/eslint/teams","hooks_url":"https://api.github.com/repos/eslint/eslint/hooks","issue_events_url":"https://api.github.com/repos/eslint/eslint/issues/events{/number}","events_url":"https://api.github.com/repos/eslint/eslint/events","assignees_url":"https://api.github.com/repos/eslint/eslint/assignees{/user}","branches_url":"https://api.github.com/repos/eslint/eslint/branches{/branch}","tags_url":"https://api.github.com/repos/eslint/eslint/tags","blobs_url":"https://api.github.com/repos/eslint/eslint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eslint/eslint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eslint/eslint/git/refs{/sha}","trees_url":"https://api.github.com/repos/eslint/eslint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eslint/eslint/statuses/{sha}","languages_url":"https://api.github.com/repos/eslint/eslint/languages","stargazers_url":"https://api.github.com/repos/eslint/eslint/stargazers","contributors_url":"https://api.github.com/repos/eslint/eslint/contributors","subscribers_url":"https://api.github.com/repos/eslint/eslint/subscribers","subscription_url":"https://api.github.com/repos/eslint/eslint/subscription","commits_url":"https://api.github.com/repos/eslint/eslint/commits{/sha}","git_commits_url":"https://api.github.com/repos/eslint/eslint/git/commits{/sha}","comments_url":"https://api.github.com/repos/eslint/eslint/comments{/number}","issue_comment_url":"https://api.github.com/repos/eslint/eslint/issues/comments{/number}","contents_url":"https://api.github.com/repos/eslint/eslint/contents/{+path}","compare_url":"https://api.github.com/repos/eslint/eslint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eslint/eslint/merges","archive_url":"https://api.github.com/repos/eslint/eslint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eslint/eslint/downloads","issues_url":"https://api.github.com/repos/eslint/eslint/issues{/number}","pulls_url":"https://api.github.com/repos/eslint/eslint/pulls{/number}","milestones_url":"https://api.github.com/repos/eslint/eslint/milestones{/number}","notifications_url":"https://api.github.com/repos/eslint/eslint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eslint/eslint/labels{/name}","releases_url":"https://api.github.com/repos/eslint/eslint/releases{/id}","created_at":"2013-06-29T23:59:48Z","updated_at":"2015-12-26T10:04:03Z","pushed_at":"2015-12-26T07:26:35Z","git_url":"git://github.com/eslint/eslint.git","ssh_url":"git@github.com:eslint/eslint.git","clone_url":"https://github.com/eslint/eslint.git","svn_url":"https://github.com/eslint/eslint","homepage":"http://eslint.org","size":11761,"stargazers_count":3654,"watchers_count":3654,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":701,"mirror_url":null,"open_issues_count":170,"forks":701,"open_issues":170,"watchers":3654,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eslint/eslint/pulls/4803"},"html":{"href":"https://github.com/eslint/eslint/pull/4803"},"issue":{"href":"https://api.github.com/repos/eslint/eslint/issues/4803"},"comments":{"href":"https://api.github.com/repos/eslint/eslint/issues/4803/comments"},"review_comments":{"href":"https://api.github.com/repos/eslint/eslint/pulls/4803/comments"},"review_comment":{"href":"https://api.github.com/repos/eslint/eslint/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eslint/eslint/pulls/4803/commits"},"statuses":{"href":"https://api.github.com/repos/eslint/eslint/statuses/c4b6cb8e85787df677b18c7179244721d7b5fde3"}}}}