{"action":"created","issue":{"url":"https://api.github.com/repos/wix/eslint-plugin-lodash/issues/124","repository_url":"https://api.github.com/repos/wix/eslint-plugin-lodash","labels_url":"https://api.github.com/repos/wix/eslint-plugin-lodash/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/wix/eslint-plugin-lodash/issues/124/comments","events_url":"https://api.github.com/repos/wix/eslint-plugin-lodash/issues/124/events","html_url":"https://github.com/wix/eslint-plugin-lodash/issues/124","id":190643727,"number":124,"title":"False positives","user":{"login":"greew","id":189321,"avatar_url":"https://avatars.githubusercontent.com/u/189321?v=3","gravatar_id":"","url":"https://api.github.com/users/greew","html_url":"https://github.com/greew","followers_url":"https://api.github.com/users/greew/followers","following_url":"https://api.github.com/users/greew/following{/other_user}","gists_url":"https://api.github.com/users/greew/gists{/gist_id}","starred_url":"https://api.github.com/users/greew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greew/subscriptions","organizations_url":"https://api.github.com/users/greew/orgs","repos_url":"https://api.github.com/users/greew/repos","events_url":"https://api.github.com/users/greew/events{/privacy}","received_events_url":"https://api.github.com/users/greew/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-21T08:00:32Z","updated_at":"2016-11-21T08:20:59Z","closed_at":null,"body":"Hi maintainers.\r\n\r\nI've been troubling with getting false positives in when trying to lint my JS. \r\n\r\nI ended up creating a simple file `test.js` with only the following code:\r\n\r\n```javascript\r\nvar func = function (a) {\r\n    return a;\r\n};\r\n_.map([], func);\r\n```\r\nwhich results in \r\n\r\n```bash\r\n08:48 $ eslint test.js\r\n\r\n/home/jesper/code/test/test.js\r\n  4:1  error  Prefer '_.map' over the native function  lodash/prefer-lodash-method\r\n\r\n✖ 1 problem (1 error, 0 warnings)\r\n```\r\n\r\nMy setup is as follows: \r\n\r\n```\r\n08:48 $ npm -v\r\n3.5.2\r\n\r\n08:48 $ nodejs -v\r\nv4.2.6\r\n\r\n08:48 $ nodejs list -g\r\n...\r\n├─┬ eslint@3.10.2\r\n...\r\n├─┬ eslint-plugin-lodash@2.2.0\r\n│ └── lodash@4.17.2\r\n...\r\n\r\n08:58 $ cat package.json \r\n{\r\n  ...\r\n  \"dependencies\": {\r\n    \"gulp\": \"^3.9.1\",\r\n    \"jquery\": \"^3.1.0\",\r\n    \"laravel-elixir\": \"^6.0.0-9\",\r\n    \"laravel-elixir-lodash\": \"^3.0.6\",\r\n    \"lodash\": \"^4.14.0\"\r\n  },\r\n  \"devDependencies\": {\r\n    \"laravel-elixir-browsersync-official\": \"^1.0.0\"\r\n  },\r\n  \"eslintConfig\": {\r\n    \"plugins\": [\"lodash\"],\r\n    \"globals\": {\r\n      \"Bloodhound\": true,\r\n      \"PNotify\": false,\r\n      \"WSD\": true,\r\n      \"_\": false,\r\n      \"Page\": true,\r\n      \"bootbox\": false\r\n    },\r\n    \"extends\": [\r\n      \"eslint:recommended\",\r\n      \"plugin:lodash/recommended\"\r\n    ],\r\n    \"rules\": {\r\n      \"linebreak-style\": [\"error\", \"unix\"],\r\n      \"semi\": [\"error\", \"always\"],\r\n      \"comma-dangle\": [\"error\", \"always-multiline\"],\r\n      \"no-cond-assign\": [\"error\", \"always\"],\r\n      \"no-console\": \"off\",\r\n      \"lodash/prefer-lodash-method\": [2, {\"ignoreMethods\": [\"find\", \"filter\", \"includes\"]}]\r\n    },\r\n    \"env\": {\r\n      \"jquery\": true,\r\n      \"browser\": true\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nCan you help me find out what is wrong here, because I'm running headfirst into a wall whatever I'm trying here :smile: \r\n\r\nIf you need any extra info or cannot help me, just drop a note, and I'll close the issue.\r\n\r\nBest regards\r\n/Jesper"},"comment":{"url":"https://api.github.com/repos/wix/eslint-plugin-lodash/issues/comments/261872347","html_url":"https://github.com/wix/eslint-plugin-lodash/issues/124#issuecomment-261872347","issue_url":"https://api.github.com/repos/wix/eslint-plugin-lodash/issues/124","id":261872347,"user":{"login":"greew","id":189321,"avatar_url":"https://avatars.githubusercontent.com/u/189321?v=3","gravatar_id":"","url":"https://api.github.com/users/greew","html_url":"https://github.com/greew","followers_url":"https://api.github.com/users/greew/followers","following_url":"https://api.github.com/users/greew/following{/other_user}","gists_url":"https://api.github.com/users/greew/gists{/gist_id}","starred_url":"https://api.github.com/users/greew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greew/subscriptions","organizations_url":"https://api.github.com/users/greew/orgs","repos_url":"https://api.github.com/users/greew/repos","events_url":"https://api.github.com/users/greew/events{/privacy}","received_events_url":"https://api.github.com/users/greew/received_events","type":"User","site_admin":false},"created_at":"2016-11-21T08:20:59Z","updated_at":"2016-11-21T08:20:59Z","body":"@ganimomer And using the `canonical` config did the trick!\r\n\r\nThanks a lot for a quick answer!! :-)"}}
{"actor":{"display_login":"greew"}}