Permalink
Browse files

replace java based html linter grunt-html w/ node linter grunt-htmllint

  • Loading branch information...
1 parent a7339c0 commit ce7aac5231de59e4db13d3084ca939b419ec0949 @swilliamset swilliamset committed Jan 10, 2017
Showing with 35 additions and 36 deletions.
  1. +7 −0 .htmllintrc
  2. +0 −4 .travis.yml
  3. +3 −7 grunt/config/htmllint.js
  4. +1 −1 package.json
  5. +24 −24 test/markup/repeater-markup.html
View
@@ -0,0 +1,7 @@
+{
+ "attr-bans": [],
+ "attr-name-style": false,
+ "id-class-style": false,
+ "line-end-style": false,
+ "label-req-for": false
+}
View
@@ -2,10 +2,6 @@ language: node_js
node_js:
- 6.8.1
sudo: false
-addons:
- apt:
- packages:
- - oracle-java8-installer
install:
- time npm install
- time ./node_modules/bower/bin/bower update
@@ -1,11 +1,7 @@
module.exports = {
options: {
- ignore:[
- 'Section lacks heading. Consider using “h2”-“h6” elements to add identifying headings to all sections.',
- 'Bad value X-UA-Compatible for attribute http-equiv on element meta.',
- 'Element head is missing a required instance of child element title.'
- ],
- force: true
+ force: true,
+ htmllintrc: true
},
src: ['index.html', 'markup/*.html', 'test/markup/*.html']
-};
+};
View
@@ -35,7 +35,7 @@
"grunt-contrib-qunit": "1.2.0",
"grunt-contrib-uglify": "2.0.0",
"grunt-contrib-watch": "1.0.0",
- "grunt-html": "5.0.1",
+ "grunt-htmllint": "^0.2.7",
"grunt-jsbeautifier": "0.2.13",
"grunt-prompt": "1.3.3",
"grunt-saucelabs": "9.0.0",
@@ -62,32 +62,32 @@
</div>
<div class="repeater-footer-right">
<div class="repeater-pagination">
- <button type="button" class="btn btn-default btn-sm repeater-prev">
- <span class="glyphicon glyphicon-chevron-left"></span>
- <span class="sr-only">Previous Page</span>
- </button>
- <label id="MyPageLabel1" class="page-label">Page</label>
- <div class="repeater-primaryPaging active">
- <div class="input-group input-append dropdown combobox">
- <input type="text" class="form-control" aria-labelledby="MyPageLabel1">
- <div class="input-group-btn">
- <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
- <span class="caret"></span>
- <span class="sr-only">Toggle Dropdown</span>
- </button>
- <ul class="dropdown-menu dropdown-menu-right"></ul>
- </div>
- </div>
- </div>
- <input type="text" class="form-control repeater-secondaryPaging" aria-labelledby="MyPageLabel1">
- <span>of <span class="repeater-pages"></span></span>
- <button type="button" class="btn btn-default btn-sm repeater-next">
- <span class="glyphicon glyphicon-chevron-right"></span>
- <span class="sr-only">Next Page</span>
- </button>
+ <button type="button" class="btn btn-default btn-sm repeater-prev">
+ <span class="glyphicon glyphicon-chevron-left"></span>
+ <span class="sr-only">Previous Page</span>
+ </button>
+ <label id="MyPageLabel1" class="page-label">Page</label>
+ <div class="repeater-primaryPaging active">
+ <div class="input-group input-append dropdown combobox">
+ <input type="text" class="form-control" aria-labelledby="MyPageLabel1">
+ <div class="input-group-btn">
+ <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
+ <span class="caret"></span>
+ <span class="sr-only">Toggle Dropdown</span>
+ </button>
+ <ul class="dropdown-menu dropdown-menu-right"></ul>
+ </div>
+ </div>
+ </div>
+ <input type="text" class="form-control repeater-secondaryPaging" aria-labelledby="MyPageLabel1">
+ <span>of <span class="repeater-pages"></span></span>
+ <button type="button" class="btn btn-default btn-sm repeater-next">
+ <span class="glyphicon glyphicon-chevron-right"></span>
+ <span class="sr-only">Next Page</span>
+ </button>
</div>
</div>
</div>
</div>
</body>
-</html>
+</html>

0 comments on commit ce7aac5

Please sign in to comment.