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

Limit the evaluated files #201

Open
gian1200 opened this issue Aug 20, 2024 · 1 comment
Open

Limit the evaluated files #201

gian1200 opened this issue Aug 20, 2024 · 1 comment

Comments

@gian1200
Copy link

Currently the extension evaluates all files that are open. Sometimes it evaluate files that should not be parsed (generated files, files under node_modules, target, etc.).

Is there a way to tell HTMLhint which files should only be evaluated?

CLI already have ignore option (https://htmlhint.com/docs/user-guide/usage/options), which AFAIK is currently not possible to use with the extension. However, it'd be nice to have also a "files" like option ("only files to evaluate"), similar to other linters (e.g. ESLint); if not under .htmlhintrc, maybe inside .vscode\settings.json.

@coliff
Copy link
Member

coliff commented Aug 30, 2024

I agree that this would be a helpful feature. The ignore option would ideally be added to the .htmlhintrc config and the VS Code would automatically read and use that.

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

No branches or pull requests

2 participants