Skip to content
New issue

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

JSHint reporter don't look for .jshintsrc #182

Open
svachon opened this issue Apr 6, 2016 · 0 comments
Open

JSHint reporter don't look for .jshintsrc #182

svachon opened this issue Apr 6, 2016 · 0 comments

Comments

@svachon
Copy link

svachon commented Apr 6, 2016

When no configuration is supplied, the default behavior of JSHint is to look for ".jshintsrc" up the processed file's hierarchy.

Problem seems to come from 'reporters/jshint/index.js` line #9:

var jsHintOptions = jsHintCli.getConfig(source);

The variable source has the content of the processed file assigned to it. For getConfig to check up the hierarchy of the file, should we supply it with the processed file name instead?:

var jsHintOptions = jsHintCli.getConfig(reportInfo.file);

The file name is found in the parameter 'reportInfo.file'. Unfortunately this parameter has been removed (commented).

Thanks

kyungilpark pushed a commit to kyungilpark/plato that referenced this issue Jun 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant