-
Notifications
You must be signed in to change notification settings - Fork 11.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
Setup linter for HTML #5195
Merged
Merged
Setup linter for HTML #5195
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
3ff10ac
Add htmllint
loicbourgois 13cd5b0
Add htmllint
loicbourgois fddb06f
Setup html plugin for eslint
loicbourgois 6f821d7
Add option to lint script tags
loicbourgois 83822eb
Rename option
loicbourgois fd5232a
Convert spaces to tabs
loicbourgois 7cfcf5a
Setup eslint fix
loicbourgois 1b591b1
setup
loicbourgois 9f130a2
Autofix eslint
loicbourgois c640e69
Rollback before autofix
loicbourgois 098c133
Remove most errors
loicbourgois 71792f1
Correct introduced errors
loicbourgois 70822cf
Check samples
loicbourgois f8f119a
Fix lint
loicbourgois 8183537
Add TODO comments
loicbourgois 0171194
revert window.Samples
loicbourgois f588414
Move config to samples/.eslintrc.yml
loicbourgois 599fd09
Enforce camelcase rule
loicbourgois c3c0bea
Remove gulp-html-validator and refactor gulpfile.js
loicbourgois 066b3ae
Correct typo
loicbourgois 31d6571
Move htmllint config to .json file
loicbourgois 0940fdd
SteppedLines
loicbourgois 8378328
Revert "Move htmllint config to .json file"
loicbourgois adbfb4d
Introduce error
loicbourgois 27fa1a7
Revert "Revert "Move htmllint config to .json file""
loicbourgois 6f96837
Fix src for lintHtmlTask()
loicbourgois 9d2d092
Revert "Introduce error"
loicbourgois 8ac4864
Use default config file for htmllint
loicbourgois ccd9cab
Fail on error
loicbourgois 1fc07d2
Remove error
loicbourgois 8e4c315
Remove unecessary comment
loicbourgois 4675e85
Add link to issue for add data bug
loicbourgois 9b59b55
Clean gulpfile
loicbourgois 9bb89f4
Revert to inline event handler
loicbourgois 3746bad
Disable no-unused-vars for inline events
loicbourgois 261085f
Revert "Disable no-unused-vars for inline events"
loicbourgois 1474880
Indentation
loicbourgois 57fc01c
Remove old htmlTask
loicbourgois 4a2ff8c
Fix package.json
loicbourgois 03321b0
Fix plugin id
loicbourgois 58db09d
eslint-disable-next-line no-unused-vars
loicbourgois File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ extends: chartjs | |
env: | ||
browser: true | ||
node: true | ||
|
||
plugins: ['html'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"indent-style": "tabs", | ||
"attr-quote-style": "double", | ||
"spec-char-escape": false, | ||
"attr-bans": [ | ||
"align", | ||
"background", | ||
"bgcolor", | ||
"border", | ||
"frameborder", | ||
"longdesc", | ||
"marginwidth", | ||
"marginheight", | ||
"scrolling" | ||
], | ||
"tag-bans": [ "b", "i" ], | ||
"id-class-style": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
globals: | ||
$: true | ||
Chart: true | ||
Samples: true | ||
moment: true | ||
randomScalingFactor: true | ||
|
||
rules: | ||
no-new: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
We should also remove the
validHtml
associated function