{"action":"created","issue":{"url":"https://api.github.com/repos/roadhump/SublimeLinter-eslint/issues/97","labels_url":"https://api.github.com/repos/roadhump/SublimeLinter-eslint/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/roadhump/SublimeLinter-eslint/issues/97/comments","events_url":"https://api.github.com/repos/roadhump/SublimeLinter-eslint/issues/97/events","html_url":"https://github.com/roadhump/SublimeLinter-eslint/issues/97","id":111685200,"number":97,"title":"Getting `chdir not set or invalid`","user":{"login":"bfricka","id":689311,"avatar_url":"https://avatars.githubusercontent.com/u/689311?v=3","gravatar_id":"","url":"https://api.github.com/users/bfricka","html_url":"https://github.com/bfricka","followers_url":"https://api.github.com/users/bfricka/followers","following_url":"https://api.github.com/users/bfricka/following{/other_user}","gists_url":"https://api.github.com/users/bfricka/gists{/gist_id}","starred_url":"https://api.github.com/users/bfricka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bfricka/subscriptions","organizations_url":"https://api.github.com/users/bfricka/orgs","repos_url":"https://api.github.com/users/bfricka/repos","events_url":"https://api.github.com/users/bfricka/events{/privacy}","received_events_url":"https://api.github.com/users/bfricka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-15T19:02:09Z","updated_at":"2015-11-16T14:00:18Z","closed_at":null,"body":"```\r\nSublimeLinter: chdir not set or invalid, using /Users/brian.frichette/Dev/gc.camera/app/js/gc/camera \r\nSublimeLinter: eslint: CameraApp.js ['/usr/local/bin/eslint', '--format', 'compact', '--stdin', '--stdin-filename', '__RELATIVE_TO_FOLDER__', '@', '--config /Users/brian.frichette/Dev/gc.camera/grunt/eslint/.eslintrc'] \r\nSublimeLinter: eslint output:\r\n/Users/brian.frichette/Dev/gc.camera/app/js/gc/camera/CameraApp.js: line 73, col 28, Error - Parsing error: Unexpected token *\r\n\r\n1 problem \r\n```\r\n\r\nProject settings look like:\r\n\r\n```js\r\n{\r\n  \"SublimeLinter\": {\r\n    \"linters\": {\r\n      \"eslint\": {\r\n        \"@disable\": false,\r\n        \"args\": [\r\n          \"@\",\r\n          \"--config ${project}/grunt/eslint/.eslintrc\"\r\n        ]\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nI've tried as many variants of these settings as I could possibly find:\r\n- with and without `@`, `--stin-filename`\r\n- using relative paths `-c grunt/eslint/.eslintrc`\r\n- setting `chdir` in SublimeLinter\r\n\r\nWith the above settings it's linting files very strangely: Ignoring the .eslintrc file, but also missing new errors. I don't even know how to debug something like that.\r\n\r\nRunning eslint directly works flawlessly (as does our build): `eslint -c grunt/eslint/.eslintrc ./app/js/gc/camera/CameraApp.js` produces no errors (since we have the `generators` flag set).\r\n\r\nAlso, copying my `.eslintrc` into my project base directory allows the linter to work, but this is not feasible since we distribute the the file as part of a git submodule amongst all of our projects."},"comment":{"url":"https://api.github.com/repos/roadhump/SublimeLinter-eslint/issues/comments/157036503","html_url":"https://github.com/roadhump/SublimeLinter-eslint/issues/97#issuecomment-157036503","issue_url":"https://api.github.com/repos/roadhump/SublimeLinter-eslint/issues/97","id":157036503,"user":{"login":"ChaimaeCh","id":6553242,"avatar_url":"https://avatars.githubusercontent.com/u/6553242?v=3","gravatar_id":"","url":"https://api.github.com/users/ChaimaeCh","html_url":"https://github.com/ChaimaeCh","followers_url":"https://api.github.com/users/ChaimaeCh/followers","following_url":"https://api.github.com/users/ChaimaeCh/following{/other_user}","gists_url":"https://api.github.com/users/ChaimaeCh/gists{/gist_id}","starred_url":"https://api.github.com/users/ChaimaeCh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChaimaeCh/subscriptions","organizations_url":"https://api.github.com/users/ChaimaeCh/orgs","repos_url":"https://api.github.com/users/ChaimaeCh/repos","events_url":"https://api.github.com/users/ChaimaeCh/events{/privacy}","received_events_url":"https://api.github.com/users/ChaimaeCh/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T14:00:18Z","updated_at":"2015-11-16T14:00:18Z","body":"Hello ! I tried this because I have the same issue but it didn't work, unfortunately. I think it does not recognize that ${project} is a variable, for me... Do I have to d something else so it works ?"}}