Configuration not found when using the CLI
Open
Nobody has claimed this yet.
bug
keep-unstale
PR needed
- Dominant language
- JavaScript
- Stars
- 3.3k
- Forks
- 474
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 12
Description
I have a strange behavior with the CLI and configuration file.
I have a .htmlhintrc file at the root of my project.
When I run htmlhint src, it finds the config file and correctly lint my html files, but when I run htmlhint src/**/*.html I have an error saying that the configuration is not found?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing both commands with a root-level .htmlhintrc and compare how the CLI handles src versus src/**/*.html. Trace the CLI's configuration lookup from those entry points. Done means both forms find the root configuration and lint the matching HTML files without the configuration-not-found error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100