{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/2143","labels_url":"https://api.github.com/repos/eslint/eslint/issues/2143/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/2143/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/2143/events","html_url":"https://github.com/eslint/eslint/issues/2143","id":64328230,"number":2143,"title":"Allow to modify base configuration","user":{"login":"meoguru","id":6896444,"avatar_url":"https://avatars.githubusercontent.com/u/6896444?v=3","gravatar_id":"","url":"https://api.github.com/users/meoguru","html_url":"https://github.com/meoguru","followers_url":"https://api.github.com/users/meoguru/followers","following_url":"https://api.github.com/users/meoguru/following{/other_user}","gists_url":"https://api.github.com/users/meoguru/gists{/gist_id}","starred_url":"https://api.github.com/users/meoguru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meoguru/subscriptions","organizations_url":"https://api.github.com/users/meoguru/orgs","repos_url":"https://api.github.com/users/meoguru/repos","events_url":"https://api.github.com/users/meoguru/events{/privacy}","received_events_url":"https://api.github.com/users/meoguru/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-03-25T17:35:51Z","updated_at":"2015-03-27T15:53:12Z","closed_at":null,"body":"I'm implementing a library which help developers to quickly set up a project. ESLint configuration will be pre-defined by the library and can be overrided by the developer also.\r\n\r\nFor example, the library want to set following configuration by default:\r\n\r\n```js\r\n{\r\n  \"parser\": \"babel-eslint\",\r\n  \"rules\": [\r\n    \"quotes\": [ 2, \"single\" ],\r\n    \"strict\": [ 2, \"never\" ]\r\n  ]\r\n}\r\n```\r\n\r\nAnd the developer has the option to override it (through `.eslintrc`, `package.json`, etc.):\r\n\r\n```js\r\n{\r\n  \"parser\": \"espree\",\r\n  \"rules\": [\r\n    \"strict\": [ 2, \"global\" ]\r\n  ]\r\n}\r\n```\r\n\r\nThe above example is taken from a real use case, in which the whole project is supposed to be written in ES6/7, while some directories have files which are written in ES5 and down.\r\n\r\nI digged through ESLint code and realize that at the moment there is no way to solve that use case. I propose a solution as:\r\n\r\n* Adding a new option called `baseConfig`.\r\n* After initialize `configHelper.baseConfig`, merge it with `baseConfig` option.\r\n\r\nPlease refer to this pull request #2141 for more detail. Thank you."},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/86983677","html_url":"https://github.com/eslint/eslint/issues/2143#issuecomment-86983677","issue_url":"https://api.github.com/repos/eslint/eslint/issues/2143","id":86983677,"user":{"login":"meoguru","id":6896444,"avatar_url":"https://avatars.githubusercontent.com/u/6896444?v=3","gravatar_id":"","url":"https://api.github.com/users/meoguru","html_url":"https://github.com/meoguru","followers_url":"https://api.github.com/users/meoguru/followers","following_url":"https://api.github.com/users/meoguru/following{/other_user}","gists_url":"https://api.github.com/users/meoguru/gists{/gist_id}","starred_url":"https://api.github.com/users/meoguru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meoguru/subscriptions","organizations_url":"https://api.github.com/users/meoguru/orgs","repos_url":"https://api.github.com/users/meoguru/repos","events_url":"https://api.github.com/users/meoguru/events{/privacy}","received_events_url":"https://api.github.com/users/meoguru/received_events","type":"User","site_admin":false},"created_at":"2015-03-27T15:53:12Z","updated_at":"2015-03-27T15:53:12Z","body":"Is any chance for this feature to be supported?"}}