GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running jshint without a --config param is supposed to search for .jshintrc from CWD up to root. However, it skips every other directory.
Culprit: findFile in src/cli/cli.js
var parent = path.resolve(dir, "../../");
Tested in v1.0.0
Don't skip directories when searching for .jshintrc.
Instead of moving on to the parent directory when a .jshintrc
file was not found, the cli script was checking the
'grandparent' directory. A test was added to demonstrate the
issue / prevent regressions.
[browser defs] Add some methods