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

Fail on bad config #691

valueof opened this Issue Oct 12, 2012 · 0 comments


None yet
1 participant
Copy link

valueof commented Oct 12, 2012

(OP: @miohtama)

jshint should abort as error if

  • Config file does not exist
  • Config file is not valid JSON

Now it silently ignores config, causing confusion when config flags are not effective.

@valueof valueof closed this in b729bec Dec 18, 2012

jugglinmike added a commit to jugglinmike/jshint that referenced this issue Oct 21, 2014

Fail early when configuration file can't be found or is invalid.
It's confusing when you provide a configuration file using --config
option and it changes nothing. Usually this happens because JSHint
couldn't find your file or the file is not a valid JSON. This commit
makes JSHint to loudly complain about such cases.

Note that this affects only cases when user explicitly provides
a configuration file using --config.

Fixes jshintGH-691.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment