{"action":"opened","issue":{"url":"https://api.github.com/repos/jhusain/eslint-plugin-immutable/issues/6","repository_url":"https://api.github.com/repos/jhusain/eslint-plugin-immutable","labels_url":"https://api.github.com/repos/jhusain/eslint-plugin-immutable/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/jhusain/eslint-plugin-immutable/issues/6/comments","events_url":"https://api.github.com/repos/jhusain/eslint-plugin-immutable/issues/6/events","html_url":"https://github.com/jhusain/eslint-plugin-immutable/issues/6","id":140697148,"number":6,"title":"not compatible with commonjs","user":{"login":"despairblue","id":927609,"avatar_url":"https://avatars.githubusercontent.com/u/927609?v=3","gravatar_id":"","url":"https://api.github.com/users/despairblue","html_url":"https://github.com/despairblue","followers_url":"https://api.github.com/users/despairblue/followers","following_url":"https://api.github.com/users/despairblue/following{/other_user}","gists_url":"https://api.github.com/users/despairblue/gists{/gist_id}","starred_url":"https://api.github.com/users/despairblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/despairblue/subscriptions","organizations_url":"https://api.github.com/users/despairblue/orgs","repos_url":"https://api.github.com/users/despairblue/repos","events_url":"https://api.github.com/users/despairblue/events{/privacy}","received_events_url":"https://api.github.com/users/despairblue/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-14T14:54:49Z","updated_at":"2016-03-14T14:54:49Z","closed_at":null,"body":"This module won't lint itself for example ([this line](https://github.com/jhusain/eslint-plugin-immutable/blob/master/index.js#L3))\r\n\r\nI don't see a way to use this in node or with a commonjs module bundler, since exporting a module is basically mutating the `module` or `exports` object. There seems to be no way around that.\r\n\r\n```js\r\n// not allowed because they are mutating\r\nmodules.exports = 'foo'\r\nexports.foo = 'bar'\r\n\r\n// does not export anything at all\r\nexports = 'bar' \r\n```\r\n\r\nDisabling one rule in every module, on just one line, also seems like a dirty solution."}}