{"action":"created","issue":{"url":"https://api.github.com/repos/rackt/eslint-config-rackt/issues/3","labels_url":"https://api.github.com/repos/rackt/eslint-config-rackt/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/rackt/eslint-config-rackt/issues/3/comments","events_url":"https://api.github.com/repos/rackt/eslint-config-rackt/issues/3/events","html_url":"https://github.com/rackt/eslint-config-rackt/issues/3","id":115297075,"number":3,"title":"split react and non-react rules","user":{"login":"itajaja","id":697647,"avatar_url":"https://avatars.githubusercontent.com/u/697647?v=3","gravatar_id":"","url":"https://api.github.com/users/itajaja","html_url":"https://github.com/itajaja","followers_url":"https://api.github.com/users/itajaja/followers","following_url":"https://api.github.com/users/itajaja/following{/other_user}","gists_url":"https://api.github.com/users/itajaja/gists{/gist_id}","starred_url":"https://api.github.com/users/itajaja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itajaja/subscriptions","organizations_url":"https://api.github.com/users/itajaja/orgs","repos_url":"https://api.github.com/users/itajaja/repos","events_url":"https://api.github.com/users/itajaja/events{/privacy}","received_events_url":"https://api.github.com/users/itajaja/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-05T14:37:56Z","updated_at":"2015-11-05T15:28:59Z","closed_at":null,"body":"If a package doesn't depend on react (e.g. history, redux), it should be nice to still use eslint-config-rackt without the react rules. There are two approaches I can see:\r\n\r\n````js\r\n// for repos with react dependency\r\n\"extends\": [\"rackt\", \"rackt-react\"]\r\n\r\n// without react dependency\r\n\"extends\": \"rackt\"\r\n````\r\nThis one will require the existing repos to change their eslintrc file\r\n\r\nThe other approach would be\r\n\r\n````js\r\n// for repos with react dependency\r\n\"extends\": \"rackt\"\r\n\r\n// without react dependency\r\n\"extends\": \"rackt-no-react\"\r\n````\r\n\r\nThis will allow the existing repos to remain unchanged.\r\n\r\nNot sure if this involves creating two separate repos...\r\n\r\ncc @taion"},"comment":{"url":"https://api.github.com/repos/rackt/eslint-config-rackt/issues/comments/154093705","html_url":"https://github.com/rackt/eslint-config-rackt/issues/3#issuecomment-154093705","issue_url":"https://api.github.com/repos/rackt/eslint-config-rackt/issues/3","id":154093705,"user":{"login":"taion","id":3112159,"avatar_url":"https://avatars.githubusercontent.com/u/3112159?v=3","gravatar_id":"","url":"https://api.github.com/users/taion","html_url":"https://github.com/taion","followers_url":"https://api.github.com/users/taion/followers","following_url":"https://api.github.com/users/taion/following{/other_user}","gists_url":"https://api.github.com/users/taion/gists{/gist_id}","starred_url":"https://api.github.com/users/taion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taion/subscriptions","organizations_url":"https://api.github.com/users/taion/orgs","repos_url":"https://api.github.com/users/taion/repos","events_url":"https://api.github.com/users/taion/events{/privacy}","received_events_url":"https://api.github.com/users/taion/received_events","type":"User","site_admin":false},"created_at":"2015-11-05T15:28:59Z","updated_at":"2015-11-05T15:28:59Z","body":"Really what I'd like to do what be to split the rules up into sections, the way it's done on eslint-config-defaults and eslint-config-airbnb.\r\n\r\nBut frankly after having done that once for eslint-config-airbnb, this kind of thing is well into the \"never again\" territory for me, so, uhh, I'm not going to do that."}}