I’m trying to use a custom .jshintrc file by placing it in the project root, as per method 2 of the docs, to enforce different local styles to what I normally have but can’t seem to get it to work.
The docs state:
_"There are three main ways to configure your copy of JSHint: _
(1) via the --config flag
_(2) use a special file .jshintrc _
(3) or put your config into your projects package.json file under the jshintConfig property.
“In case of .jshintrc, JSHint will start looking for this file in the same directory as the file that’s being linted. If not found, it will move one level up the directory tree all the way up to the filesystem root. (Note that if the input comes from stdin, JSHint doesn’t attempt to find a configuration file).”
Any thoughts on what I might be doing wrong?