htmlhint / htmlhint/HTMLHint

Configuration not found when using the CLI

Open
#190 14 comments 2 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.