[
  {
    "path": "LICENSE",
    "content": "The MIT License (MIT)\n\nCopyright (c) 2015 Matt Smith\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n"
  },
  {
    "path": "README.md",
    "content": "# syntastic-local-eslint.vim\n\nPrefer local repo install of eslint over global install with syntastic\n\nInstallation Instructions\n-------------------------\n\nUsing [vim plugged](https://github.com/junegunn/vim-plug) you just need to add:\n\n```\nPlug 'mtscout6/syntastic-local-eslint.vim'\n```\n\nInspired By\n-----------\n\nInspired by http://blog.pixelastic.com/2015/10/05/use-local-eslint-in-syntastic/\n"
  },
  {
    "path": "ftplugin/javascript.vim",
    "content": "\" return full path with the trailing slash\n\"  or an empty string if we're not in an npm project\nfun! s:GetNodeModulesAbsPath ()\n  let lcd_saved = fnameescape(getcwd())\n  silent! exec \"lcd\" expand('%:p:h')\n  let path = finddir('node_modules', '.;')\n  exec \"lcd\" lcd_saved\n\n  \" fnamemodify will return full path with trailing slash;\n  \" if no node_modules found, we're safe\n  return path is '' ? '' : fnamemodify(path, ':p')\nendfun\n\n\" return full path of local eslint executable\n\"  or an empty string if no executable found\nfun! s:GetEslintExec (node_modules)\n  let eslint_guess = a:node_modules is '' ? '' : a:node_modules . '.bin/eslint'\n  return exepath(eslint_guess)\nendfun\n\n\" if eslint_exec found successfully, set it for the current buffer\nfun! s:LetEslintExec (eslint_exec)\n  if a:eslint_exec isnot ''\n    let b:syntastic_javascript_eslint_exec = a:eslint_exec\n  endif\nendfun\n\nfun! s:main ()\n  let node_modules = s:GetNodeModulesAbsPath()\n  let eslint_exec = s:GetEslintExec(node_modules)\n  call s:LetEslintExec(eslint_exec)\nendfun\n\ncall s:main()\n"
  }
]