wookiehangover / jshint.vim

JSHint fork of jslint.vim
Other
194 stars 45 forks source link

Fix issue with finding path to .jshintrc #33

Closed marrs closed 10 years ago

marrs commented 10 years ago

On Windows 7, this script was climbing the directory tree 2 nodes at a time on its search for my .jshintrc (stored in my home directory under C:\Users\myusername). If I was in a directory that was nested by an odd number of children, the rc would never get found.

I have not tested this patch in a unix environment

bemurphy commented 10 years ago

I needed this for OSX as well, fixes a similar problem I had, too.

ekashida commented 10 years ago

This also fixes the problem for me. LGTM!

macalinao commented 10 years ago

Please pull

kristoferjoseph commented 10 years ago

@wookiehangover +1 pretty please