{"action":"created","issue":{"url":"https://api.github.com/repos/wix/eslint-plugin-lodash/issues/68","repository_url":"https://api.github.com/repos/wix/eslint-plugin-lodash","labels_url":"https://api.github.com/repos/wix/eslint-plugin-lodash/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/wix/eslint-plugin-lodash/issues/68/comments","events_url":"https://api.github.com/repos/wix/eslint-plugin-lodash/issues/68/events","html_url":"https://github.com/wix/eslint-plugin-lodash/issues/68","id":149701282,"number":68,"title":"Support Lodash and lodash/fp at the same time with _.noConflict","user":{"login":"scic","id":648492,"avatar_url":"https://avatars.githubusercontent.com/u/648492?v=3","gravatar_id":"","url":"https://api.github.com/users/scic","html_url":"https://github.com/scic","followers_url":"https://api.github.com/users/scic/followers","following_url":"https://api.github.com/users/scic/following{/other_user}","gists_url":"https://api.github.com/users/scic/gists{/gist_id}","starred_url":"https://api.github.com/users/scic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scic/subscriptions","organizations_url":"https://api.github.com/users/scic/orgs","repos_url":"https://api.github.com/users/scic/repos","events_url":"https://api.github.com/users/scic/events{/privacy}","received_events_url":"https://api.github.com/users/scic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-20T08:42:37Z","updated_at":"2016-04-20T12:15:40Z","closed_at":null,"body":"I use lodash and lodash/fp at the same time with the use of _.noConflict. Thus I have lodash bound to _ and lodash/fp bound on fp.\r\n\r\n```\r\n<script src='path/to/lodash.js'></script>\r\n<script src='path/to/lodash.fp.js'></script>\r\n<script>\r\n// lodash is already on _\r\nvar fp = _.noConflict();\r\n_.map(['6', '8', '10'], parseInt); // use standard lodash on _\r\nfp.map(parseInt)(['6', '8', '10']); // this will give error\r\n</script>\r\n```\r\n\r\nNow prefer-lodash-method will mark fp.map as error. Which is wrong.\r\n\r\nThere is the pragma setting with it I could set lodash to be on fp but then it is no longer on _\\. One possible solution would be to accept an array for pragma where I could define:\r\n```\r\npragma: ['_', 'fp']\r\n```\r\nOr how should both be used together?\r\n\r\nBTW: We do have lots of code in lodash already but want to use lodash/fp for the newer code. So it has to be used together."},"comment":{"url":"https://api.github.com/repos/wix/eslint-plugin-lodash/issues/comments/212401798","html_url":"https://github.com/wix/eslint-plugin-lodash/issues/68#issuecomment-212401798","issue_url":"https://api.github.com/repos/wix/eslint-plugin-lodash/issues/68","id":212401798,"user":{"login":"scic","id":648492,"avatar_url":"https://avatars.githubusercontent.com/u/648492?v=3","gravatar_id":"","url":"https://api.github.com/users/scic","html_url":"https://github.com/scic","followers_url":"https://api.github.com/users/scic/followers","following_url":"https://api.github.com/users/scic/following{/other_user}","gists_url":"https://api.github.com/users/scic/gists{/gist_id}","starred_url":"https://api.github.com/users/scic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scic/subscriptions","organizations_url":"https://api.github.com/users/scic/orgs","repos_url":"https://api.github.com/users/scic/repos","events_url":"https://api.github.com/users/scic/events{/privacy}","received_events_url":"https://api.github.com/users/scic/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T12:15:40Z","updated_at":"2016-04-20T12:15:40Z","body":"The proposed solution sounds good to me. Since this will ensure cooperability with _ and fp used together - at least for prefer-lodash-method. But so far I did not come across other rules interfering.\r\n\r\nSo we have eslint-plugin-lodash to validate the use of _ and we have eslint-plugin-lodash-fp to validate the use of fp. This looks like a reasonable split to me."}}