{"action":"opened","issue":{"url":"https://api.github.com/repos/TheSavior/ESLint-Formatter/issues/18","repository_url":"https://api.github.com/repos/TheSavior/ESLint-Formatter","labels_url":"https://api.github.com/repos/TheSavior/ESLint-Formatter/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/TheSavior/ESLint-Formatter/issues/18/comments","events_url":"https://api.github.com/repos/TheSavior/ESLint-Formatter/issues/18/events","html_url":"https://github.com/TheSavior/ESLint-Formatter/issues/18","id":169206275,"number":18,"title":"Using a local install makes node load a shell script","user":{"login":"Dinnerbone","id":317625,"avatar_url":"https://avatars.githubusercontent.com/u/317625?v=3","gravatar_id":"","url":"https://api.github.com/users/Dinnerbone","html_url":"https://github.com/Dinnerbone","followers_url":"https://api.github.com/users/Dinnerbone/followers","following_url":"https://api.github.com/users/Dinnerbone/following{/other_user}","gists_url":"https://api.github.com/users/Dinnerbone/gists{/gist_id}","starred_url":"https://api.github.com/users/Dinnerbone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dinnerbone/subscriptions","organizations_url":"https://api.github.com/users/Dinnerbone/orgs","repos_url":"https://api.github.com/users/Dinnerbone/repos","events_url":"https://api.github.com/users/Dinnerbone/events{/privacy}","received_events_url":"https://api.github.com/users/Dinnerbone/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-03T18:55:07Z","updated_at":"2016-08-03T18:55:07Z","closed_at":null,"body":"Running windows 10, sublime text 3, ESLint-Formatter 2.1.1.\r\n\r\nI just created an empty project and installed eslint locally. I have auto-format turned on on ESLint-Formatter config.\r\n\r\nSeemingly 1 in 5 saves, eslint tries to load from the local eslint, and the other 4 it uses global. I assume this is probably #17 causing it to not always find the local eslint.\r\n\r\nWhenever it uses the global eslint, it loads node with `%APPDATA%/npm/node_modules/eslint/bin/eslint` which is a Javascript file, and works great. However...\r\n\r\nWhenever it uses the local eslint, it loads node with `node_modules/.bin/eslint` which is a shell file, and causes this to pop up as an error message:\r\n\r\n```\r\nUnexpected error(<class 'Exception'>): Error: <project>\\node_modules\\.bin\\eslint:2\r\nbasedir=$(dirname \"$(echo \"$0\" | sed -e 's,\\\\,/,g')\")\r\n          ^^^^^^^\r\nSyntaxError: missing ) after argument list\r\n    at Object.exports.runInThisContext (vm.js:53:16)\r\n    at Module._compile (module.js:513:28)\r\n    at Object.Module._extensions..js (module.js:550:10)\r\n    at Module.load (module.js:458:32)\r\n    at tryModuleLoad (module.js:417:12)\r\n    at Function.Module._load (module.js:409:3)\r\n    at Module.runMain (module.js:575:10)\r\n    at run (node.js:348:7)\r\n    at startup (node.js:140:9)\r\n    at node.js:463:3\r\n```\r\n\r\nI'd suggest looking for `node_modules/eslint/bin/eslint` for local installations instead."}}
{"actor":{"display_login":"Dinnerbone"}}