{"action":"created","issue":{"url":"https://api.github.com/repos/scrooloose/syntastic/issues/974","labels_url":"https://api.github.com/repos/scrooloose/syntastic/issues/974/labels{/name}","comments_url":"https://api.github.com/repos/scrooloose/syntastic/issues/974/comments","events_url":"https://api.github.com/repos/scrooloose/syntastic/issues/974/events","html_url":"https://github.com/scrooloose/syntastic/issues/974","id":26677853,"number":974,"title":"JSCS Syntax Checker","user":{"login":"dejanr","id":18490,"avatar_url":"https://avatars.githubusercontent.com/u/18490?v=3","gravatar_id":"","url":"https://api.github.com/users/dejanr","html_url":"https://github.com/dejanr","followers_url":"https://api.github.com/users/dejanr/followers","following_url":"https://api.github.com/users/dejanr/following{/other_user}","gists_url":"https://api.github.com/users/dejanr/gists{/gist_id}","starred_url":"https://api.github.com/users/dejanr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dejanr/subscriptions","organizations_url":"https://api.github.com/users/dejanr/orgs","repos_url":"https://api.github.com/users/dejanr/repos","events_url":"https://api.github.com/users/dejanr/events{/privacy}","received_events_url":"https://api.github.com/users/dejanr/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2014-01-31T12:24:07Z","updated_at":"2015-02-11T04:56:49Z","closed_at":"2014-01-31T13:34:37Z","body":"I am gettings this, when i have jscs configured and i open files inside project i dont have .jscs.conf configured. It should be silent, like jshint is working.\r\n\r\n![pgb85h3xmv-3000x3000](https://f.cloud.github.com/assets/18490/2050347/78d168f2-8a72-11e3-9e3d-e26c8bb16377.png)"},"comment":{"url":"https://api.github.com/repos/scrooloose/syntastic/issues/comments/73834428","html_url":"https://github.com/scrooloose/syntastic/issues/974#issuecomment-73834428","issue_url":"https://api.github.com/repos/scrooloose/syntastic/issues/974","id":73834428,"user":{"login":"coolaj86","id":122831,"avatar_url":"https://avatars.githubusercontent.com/u/122831?v=3","gravatar_id":"","url":"https://api.github.com/users/coolaj86","html_url":"https://github.com/coolaj86","followers_url":"https://api.github.com/users/coolaj86/followers","following_url":"https://api.github.com/users/coolaj86/following{/other_user}","gists_url":"https://api.github.com/users/coolaj86/gists{/gist_id}","starred_url":"https://api.github.com/users/coolaj86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coolaj86/subscriptions","organizations_url":"https://api.github.com/users/coolaj86/orgs","repos_url":"https://api.github.com/users/coolaj86/repos","events_url":"https://api.github.com/users/coolaj86/events{/privacy}","received_events_url":"https://api.github.com/users/coolaj86/received_events","type":"User","site_admin":false},"created_at":"2015-02-11T04:56:49Z","updated_at":"2015-02-11T04:56:49Z","body":"@kennykaye Thanks for the example. I extended it to check parent directories:\r\n\r\nhttps://coolaj86.com/articles/jscs-jscsrc-vim-syntastic-and-you/\r\n\r\n```\r\nfunction! JavascriptLinter(curpath)\r\n  let parent=1\r\n  let local_path=a:curpath\r\n  let local_jscs=local_path . '.jscsrc'\r\n\r\n  while parent <= 255\r\n    let parent = parent + 1\r\n    let local_path = local_path . \"../\"\r\n    let local_jscs = local_path . '.jscsrc'\r\n    if filereadable(local_jscs)\r\n      return ['jscs']\r\n    endif\r\n  endwhile\r\n\r\n  unlet parent local_jscs\r\n\r\n  return ['jshint']\r\nendfunction\r\nlet g:syntastic_javascript_checkers=JavascriptLinter(getcwd() . \"/\")\r\n```\r\n\r\nIf there's a newer, better way to do this, I'd love to know about it."}}