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

Document CLI bug #39

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
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