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

[Bug] webhint does not use .hintrc in project directory #4824

Open
Mark-Hetherington opened this issue Oct 20, 2021 · 4 comments
Open

[Bug] webhint does not use .hintrc in project directory #4824

Mark-Hetherington opened this issue Oct 20, 2021 · 4 comments
Labels

Comments

@Mark-Hetherington
Copy link

🐞 Bug report

Description

After crearting a .hintrc using npm create hintrc neither npx hint or installing a local hint and running via npm webhint honours the configuration. Specifying -c .hintrc also does not seem to use the .hintrc.

Details

webhint:v6.1.4
Windows 10
.hintrc:

{
    "extends": [
        "web-recommended"
    ]
}
>dir .hintrc

 Directory of C:\wwwroot\kms

20/10/2021  04:23 PM                52 .hintrc

>npm run webhint -- -c .hintrc google.com.au

> [email protected] webhint C:\wwwroot\kms
> hint "-c" ".hintrc" "google.com.au"

Using the built-in configuration.
@Mark-Hetherington
Copy link
Author

I don't know if this might be related to #3651?

@antross
Copy link
Member

antross commented Oct 21, 2021

Thanks for the report @Mark-Hetherington!

I can confirm I appear to be seeing the same behavior. This feels more like a regression (though if it is it's been there awhile). I'm still digging in to see if I can figure out what's up.

FYI @sarvaje @molant

@antross
Copy link
Member

antross commented Nov 2, 2021

@Mark-Hetherington I think this may have been related to #4837 as I no longer repro with the most recent webhint update. Can you confirm this appears to be fixed for you as well?

@Mark-Hetherington
Copy link
Author

Hmm, no luck as yet.

v6.1.7
>npx hint -c .hintrc https://google.com.au
Using the built-in configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants