{"action":"created","issue":{"url":"https://api.github.com/repos/wix/eslint-plugin-lodash/issues/188","repository_url":"https://api.github.com/repos/wix/eslint-plugin-lodash","labels_url":"https://api.github.com/repos/wix/eslint-plugin-lodash/issues/188/labels{/name}","comments_url":"https://api.github.com/repos/wix/eslint-plugin-lodash/issues/188/comments","events_url":"https://api.github.com/repos/wix/eslint-plugin-lodash/issues/188/events","html_url":"https://github.com/wix/eslint-plugin-lodash/pull/188","id":368613836,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIxNzQ4NDA2","number":188,"title":"Prevent prefer-lodash-method error on chain() in combination with member import","user":{"login":"david-zacharias","id":1903179,"node_id":"MDQ6VXNlcjE5MDMxNzk=","avatar_url":"https://avatars3.githubusercontent.com/u/1903179?v=4","gravatar_id":"","url":"https://api.github.com/users/david-zacharias","html_url":"https://github.com/david-zacharias","followers_url":"https://api.github.com/users/david-zacharias/followers","following_url":"https://api.github.com/users/david-zacharias/following{/other_user}","gists_url":"https://api.github.com/users/david-zacharias/gists{/gist_id}","starred_url":"https://api.github.com/users/david-zacharias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/david-zacharias/subscriptions","organizations_url":"https://api.github.com/users/david-zacharias/orgs","repos_url":"https://api.github.com/users/david-zacharias/repos","events_url":"https://api.github.com/users/david-zacharias/events{/privacy}","received_events_url":"https://api.github.com/users/david-zacharias/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-10T11:09:42Z","updated_at":"2018-11-01T10:53:52Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/wix/eslint-plugin-lodash/pulls/188","html_url":"https://github.com/wix/eslint-plugin-lodash/pull/188","diff_url":"https://github.com/wix/eslint-plugin-lodash/pull/188.diff","patch_url":"https://github.com/wix/eslint-plugin-lodash/pull/188.patch"},"body":"As described in #186 it seems the plugin marks methods on chain with prefer-lodash-method error when `chain` is imported as member `import { chain } from 'lodash'`. \r\n\r\nThis PR fixes this by checking module imports for chain, registering this as general module, and check if a `chain()` call refers to the import from lodash.\r\n\r\nUnfortunately I was not able to cover this change with a test because it requires to test if `chain` is an imported member from lodash. Hints how to cover this welcome!"},"comment":{"url":"https://api.github.com/repos/wix/eslint-plugin-lodash/issues/comments/435004807","html_url":"https://github.com/wix/eslint-plugin-lodash/pull/188#issuecomment-435004807","issue_url":"https://api.github.com/repos/wix/eslint-plugin-lodash/issues/188","id":435004807,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTAwNDgwNw==","user":{"login":"david-zacharias","id":1903179,"node_id":"MDQ6VXNlcjE5MDMxNzk=","avatar_url":"https://avatars3.githubusercontent.com/u/1903179?v=4","gravatar_id":"","url":"https://api.github.com/users/david-zacharias","html_url":"https://github.com/david-zacharias","followers_url":"https://api.github.com/users/david-zacharias/followers","following_url":"https://api.github.com/users/david-zacharias/following{/other_user}","gists_url":"https://api.github.com/users/david-zacharias/gists{/gist_id}","starred_url":"https://api.github.com/users/david-zacharias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/david-zacharias/subscriptions","organizations_url":"https://api.github.com/users/david-zacharias/orgs","repos_url":"https://api.github.com/users/david-zacharias/repos","events_url":"https://api.github.com/users/david-zacharias/events{/privacy}","received_events_url":"https://api.github.com/users/david-zacharias/received_events","type":"User","site_admin":false},"created_at":"2018-11-01T10:53:52Z","updated_at":"2018-11-01T10:53:52Z","author_association":"NONE","body":"@ganimomer May I ask if you had time to take a look at the updated code? Anything I should change?"}}
{"actor":{"display_login":"david-zacharias"}}