-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Allow linting of inline module scripts in html file #3489
Comments
Thanks for reporting! This ticket is not a duplicate, and the behavior is certainly something we need to fix. Notes for any potential contributors:
@rbruckheimer if you'd like to take a shot at implementing this, I'd be happy to guide you. |
I was thinking the logic ought to be as follows:
Do you think there should be a way to ignore such an error? |
Other values for the "type" attribute are valid, so we should not emit an error or warning if we encounter them. If you remove the "else if" clause from your proposal, I think that should be good. |
I have this all set to go but was wondering why you suggested defaulting |
PR #3492 has been opened. |
Forgive me if this is duplicate, but I could not find this issue anywhere.
JSHint 2.11.0
Using
jshint --extract-always *.html
to scan and lint inline scripts in my html files works for plain old script tags, but if type="module" it will not lint what's inside.Is there a switch for this?
The text was updated successfully, but these errors were encountered: