-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
🏗🐛 Lint the contents of validator/
#15444
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did you test that the validator chrome extension worked locally after this change?
validator/engine/htmlparser.js
Outdated
'\/+(?!>))' + // e.g. "/" | ||
'([^\\t\\r\\n /=>][^\\t\\r\\n =>]*|' + // e.g. "href" | ||
'[^\\t\\r\\n =>]+[^ >]|' + // e.g. "/asdfs/asd" | ||
'\/+(?!>))' + // e.g. "/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
boo. sad lint can't accept this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed by turning off the no-multi-spaces
rule and reverting this (and other similar) changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did you test that the validator chrome extension worked locally after this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did you test that the validator chrome extension worked locally after this change?
@honeybadgerdontcare PTAL. I tested the chrome extension locally as follows:
Does this sound good? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good.
Cool, will merge, and rebase #15443 on this PR to confirm that they work well together. |
This PR does the following:
eslint
linting for the contents ofvalidator/
.eslintrc
file forvalidator/
that supportsnode
andjasmine
codegulp lint --files=validator/**/*.js --fix