{"action":"created","issue":{"url":"https://api.github.com/repos/sindresorhus/xo/issues/71","labels_url":"https://api.github.com/repos/sindresorhus/xo/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/xo/issues/71/comments","events_url":"https://api.github.com/repos/sindresorhus/xo/issues/71/events","html_url":"https://github.com/sindresorhus/xo/issues/71","id":125686172,"number":71,"title":"Unable to customize certain rules via shareable config","user":{"login":"vdemedes","id":697676,"avatar_url":"https://avatars.githubusercontent.com/u/697676?v=3","gravatar_id":"","url":"https://api.github.com/users/vdemedes","html_url":"https://github.com/vdemedes","followers_url":"https://api.github.com/users/vdemedes/followers","following_url":"https://api.github.com/users/vdemedes/following{/other_user}","gists_url":"https://api.github.com/users/vdemedes/gists{/gist_id}","starred_url":"https://api.github.com/users/vdemedes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdemedes/subscriptions","organizations_url":"https://api.github.com/users/vdemedes/orgs","repos_url":"https://api.github.com/users/vdemedes/repos","events_url":"https://api.github.com/users/vdemedes/events{/privacy}","received_events_url":"https://api.github.com/users/vdemedes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sindresorhus/xo/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-08T20:21:10Z","updated_at":"2016-01-12T16:50:18Z","closed_at":null,"body":"Using latest xo (master branch), I'm unable to customize `babel/object-curly-spacing` rule via shareable config.\r\n\r\npackage.json:\r\n\r\n```js\r\n{\r\n  \"extends\": \"my-config\"\r\n}\r\n```\r\n\r\nmy-config:\r\n\r\n```js\r\n{\r\n  \"rules\": {\r\n    \"babel/object-curly-spacing\": 0\r\n  }\r\n}\r\n```\r\n\r\nfile.js:\r\n\r\n```js\r\n{ key: 'value' }\r\n```\r\n\r\nGiven these files, xo throws error:\r\n\r\n<img width=\"570\" alt=\"screen shot 2016-01-08 at 10 18 49 pm\" src=\"https://cloud.githubusercontent.com/assets/697676/12208509/d5c9078e-b655-11e5-9373-0ff60e116789.png\">\r\n\r\nIf I override `babel/object-curly-spacing` in package.json, it works as expected and I no longer get errors:\r\n\r\n```js\r\n{\r\n  \"rules\": {\r\n    \"babel/object-curly-spacing\": 0\r\n  }\r\n}\r\n```\r\n\r\nRelated: https://github.com/sindresorhus/xo/blob/master/options-manager.js#L98"},"comment":{"url":"https://api.github.com/repos/sindresorhus/xo/issues/comments/170971971","html_url":"https://github.com/sindresorhus/xo/issues/71#issuecomment-170971971","issue_url":"https://api.github.com/repos/sindresorhus/xo/issues/71","id":170971971,"user":{"login":"kevva","id":709159,"avatar_url":"https://avatars.githubusercontent.com/u/709159?v=3","gravatar_id":"","url":"https://api.github.com/users/kevva","html_url":"https://github.com/kevva","followers_url":"https://api.github.com/users/kevva/followers","following_url":"https://api.github.com/users/kevva/following{/other_user}","gists_url":"https://api.github.com/users/kevva/gists{/gist_id}","starred_url":"https://api.github.com/users/kevva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevva/subscriptions","organizations_url":"https://api.github.com/users/kevva/orgs","repos_url":"https://api.github.com/users/kevva/repos","events_url":"https://api.github.com/users/kevva/events{/privacy}","received_events_url":"https://api.github.com/users/kevva/received_events","type":"User","site_admin":false},"created_at":"2016-01-12T16:50:18Z","updated_at":"2016-01-12T16:50:18Z","body":"Those rules gets set in the `root` of the options sent in to `eslint` and will therefore take precedence over any configs. Those are only overridable through setting `rules` in the `package.json`, or wherever your config lives."}}