{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/3993","labels_url":"https://api.github.com/repos/eslint/eslint/issues/3993/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/3993/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/3993/events","html_url":"https://github.com/eslint/eslint/issues/3993","id":109170156,"number":3993,"title":"global CLI should check for local installation","user":{"login":"jamestalmage","id":4082216,"avatar_url":"https://avatars.githubusercontent.com/u/4082216?v=3","gravatar_id":"","url":"https://api.github.com/users/jamestalmage","html_url":"https://github.com/jamestalmage","followers_url":"https://api.github.com/users/jamestalmage/followers","following_url":"https://api.github.com/users/jamestalmage/following{/other_user}","gists_url":"https://api.github.com/users/jamestalmage/gists{/gist_id}","starred_url":"https://api.github.com/users/jamestalmage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamestalmage/subscriptions","organizations_url":"https://api.github.com/users/jamestalmage/orgs","repos_url":"https://api.github.com/users/jamestalmage/repos","events_url":"https://api.github.com/users/jamestalmage/events{/privacy}","received_events_url":"https://api.github.com/users/jamestalmage/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/core","name":"core","color":"c7def8"},{"url":"https://api.github.com/repos/eslint/eslint/labels/feature","name":"feature","color":"bfd4f2"},{"url":"https://api.github.com/repos/eslint/eslint/labels/proposal","name":"proposal","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-09-30T20:14:41Z","updated_at":"2015-10-01T20:43:16Z","closed_at":null,"body":"If you have installed `eslint` globally and run `eslint` from the command line, it should check to see if there is a local installation in `node_modules` and preferentially run that version.\r\n\r\nMany build tools follow this pattern (`gulp` and `grunt` to name a few popular ones). If you have installed `eslint` as a (dev)dependency of your project, you almost certainly want that version and set of plugins linting your code, not whatever version happens to be installed globally.\r\n\r\nI have a PR that implements this already (#3986), but was asked to open it as an issue for discussion.\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/27068606-global-cli-should-check-for-local-installation?utm_campaign=plugin&utm_content=tracker%2F282608&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F282608&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/144842406","html_url":"https://github.com/eslint/eslint/issues/3993#issuecomment-144842406","issue_url":"https://api.github.com/repos/eslint/eslint/issues/3993","id":144842406,"user":{"login":"nzakas","id":38546,"avatar_url":"https://avatars.githubusercontent.com/u/38546?v=3","gravatar_id":"","url":"https://api.github.com/users/nzakas","html_url":"https://github.com/nzakas","followers_url":"https://api.github.com/users/nzakas/followers","following_url":"https://api.github.com/users/nzakas/following{/other_user}","gists_url":"https://api.github.com/users/nzakas/gists{/gist_id}","starred_url":"https://api.github.com/users/nzakas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nzakas/subscriptions","organizations_url":"https://api.github.com/users/nzakas/orgs","repos_url":"https://api.github.com/users/nzakas/repos","events_url":"https://api.github.com/users/nzakas/events{/privacy}","received_events_url":"https://api.github.com/users/nzakas/received_events","type":"User","site_admin":false},"created_at":"2015-10-01T20:43:16Z","updated_at":"2015-10-01T20:43:16Z","body":"What sort of debug problems are you thinking of? If -v still works, won't that give us the info we need?"}}