{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/7773","repository_url":"https://api.github.com/repos/eslint/eslint","labels_url":"https://api.github.com/repos/eslint/eslint/issues/7773/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/7773/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/7773/events","html_url":"https://github.com/eslint/eslint/issues/7773","id":195691383,"number":7773,"title":"CLIEngine cwd seems to be ignored for node_modules?","user":{"login":"alansouzati","id":1207250,"avatar_url":"https://avatars.githubusercontent.com/u/1207250?v=3","gravatar_id":"","url":"https://api.github.com/users/alansouzati","html_url":"https://github.com/alansouzati","followers_url":"https://api.github.com/users/alansouzati/followers","following_url":"https://api.github.com/users/alansouzati/following{/other_user}","gists_url":"https://api.github.com/users/alansouzati/gists{/gist_id}","starred_url":"https://api.github.com/users/alansouzati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alansouzati/subscriptions","organizations_url":"https://api.github.com/users/alansouzati/orgs","repos_url":"https://api.github.com/users/alansouzati/repos","events_url":"https://api.github.com/users/alansouzati/events{/privacy}","received_events_url":"https://api.github.com/users/alansouzati/received_events","type":"User","site_admin":false},"labels":[{"id":45711350,"url":"https://api.github.com/repos/eslint/eslint/labels/bug","name":"bug","color":"fc2929","default":true},{"id":82922548,"url":"https://api.github.com/repos/eslint/eslint/labels/core","name":"core","color":"c7def8","default":false},{"id":255319420,"url":"https://api.github.com/repos/eslint/eslint/labels/evaluating","name":"evaluating","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-12-15T01:18:27Z","updated_at":"2016-12-15T17:19:59Z","closed_at":null,"body":"* **ESLint Version:** v3.12.2\r\n* **Node Version:** v6.9.1\r\n* **npm Version:** 3.10.9\r\n\r\nI'm trying to create a little tool that will be able to parallelize eslint for a project. So I'm using CLIEngine directly based on the great API available.\r\n\r\nThe problem is that the code for the CLIEngine is in a separate node project that I install globally. When I try to execute it in my project the plugin lookup refers to the external project not my internal one. I thought cwd would solve this issue but I still cannot resolve it.\r\n\r\n```\r\n        const eslint = new CLIEngine({\r\n          configFile: eslintrcPath,\r\n          ignorePath: ignorePath,\r\n          cwd: process.cwd()\r\n        });\r\n```\r\n\r\n**What did you expect to happen?**\r\n\r\nPlugin lookup should use local node_modules\r\n\r\n**What actually happened? Please include the actual, raw output from ESLint.**\r\n\r\nPlugin lookup is on the external project...\r\n\r\n```\r\n/Users/alansouza/workspace/eslint-test/node_modules/eslint/lib/config/plugins.js:137\r\n                throw err;\r\n                ^\r\n\r\nError: Failed to load plugin react: Cannot find module 'eslint-plugin-react'\r\n    at Function.Module._resolveFilename (module.js:469:15)\r\n    at Function.Module._load (module.js:417:25)\r\n    at Module.require (module.js:497:17)\r\n    at require (internal/module.js:20:19)\r\n```\r\n\r\nAny ideas how to make sure to look for modules inside `/Users/alansouza/workspace/myproject` instead of `/Users/alansouza/workspace/eslint-test` ?\r\n"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/267386659","html_url":"https://github.com/eslint/eslint/issues/7773#issuecomment-267386659","issue_url":"https://api.github.com/repos/eslint/eslint/issues/7773","id":267386659,"user":{"login":"epmatsw","id":1126580,"avatar_url":"https://avatars.githubusercontent.com/u/1126580?v=3","gravatar_id":"","url":"https://api.github.com/users/epmatsw","html_url":"https://github.com/epmatsw","followers_url":"https://api.github.com/users/epmatsw/followers","following_url":"https://api.github.com/users/epmatsw/following{/other_user}","gists_url":"https://api.github.com/users/epmatsw/gists{/gist_id}","starred_url":"https://api.github.com/users/epmatsw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/epmatsw/subscriptions","organizations_url":"https://api.github.com/users/epmatsw/orgs","repos_url":"https://api.github.com/users/epmatsw/repos","events_url":"https://api.github.com/users/epmatsw/events{/privacy}","received_events_url":"https://api.github.com/users/epmatsw/received_events","type":"User","site_admin":false},"created_at":"2016-12-15T17:19:59Z","updated_at":"2016-12-15T17:19:59Z","body":"This looks like a dupe of https://github.com/eslint/eslint/issues/7723"}}
{"actor":{"display_login":"epmatsw"}}