Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion pages/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,13 @@ the first positive match:
1. The location specified with the `--config` [flag](#flags)
2. A file named `package.json` located in the current directory or any parent
of the current directory (the configuration should be declared as the
`jshintConfig` attribute of that file's JSON value)
`jshintConfig` attribute of that file's JSON value). **Note** only the first
file named `package.json` encountered will be considered, *regardless of the
presence of a `jshintConfig` attribute*. This behavior is faulty and
[scheduled to be fixed in the next major release of
JSHint](https://github.com/jshint/jshint/issues/2898). Future releases will
continue querying `package.json` files in ancestor directories in these
cases.
3. A file named `.jshintrc` located in the current directory or any parent of
the current directory
4. A file named `.jshintrc` located in the current user's "home" directory
Expand Down