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
Rule proposal: prefer-https
#971
Comments
This is now accepted. The rule name should be |
I can pick this up! |
Should |
Yes, any URL without a TLD should be ignored. |
Is this still desired since string-content can accomplish this now? |
Yes, that's addressed in the issue description. |
My apologies @sindresorhus. That's what I get for skimming too quickly. 😞 |
FWIW, just in case it helps here, this is the regex I came up with for use with
Demo here on regex101: https://regex101.com/r/ITZChx/1 |
If anyone wants to work on this, see the initial attempt and feedback in #1084. |
Enforce using HTTPS URLs over HTTP.
Fail
Pass
Alternative name:
prefer-https
. Which one do people prefer?I'm aware this could be partly solved with the
string-content
rule, but I don't think most people would think of this and it also wouldn't work in comments.The text was updated successfully, but these errors were encountered: