Gruntfile.js
module.exports = function (grunt) {
grunt.config.init({
htmlhintplus: {
options: {
force: false,
newer: false
},
dist: {
options: {
ignore: {
'{{': '}}'
}
},
src: ['test/*.html']
},
customAsFunction: {
options: {
customRules: [
'rules/foobar-exists-as-function'
],
rules: {
'foobar-exists-as-function': true
}
},
src: ['test/*.html']
},
custom: {
options: {
customRules: [
'rules/foobar-exists.js',
'rules/bad-rule.js'
],
rules: {
'foobar-exists': true // Custom rule that is loaded above
},
output: 'console|checkstyle|json|text'
},
src: ['test/*.html']
},
extendRules: {
options: {
rules: {
'doctype-first': false,
'tag-pair': false,
'tag-self-close': true,
'spec-char-escape': false
}
},
src: ['test/*.html']
}
}
});
grunt.loadTasks('tasks/');
grunt.registerTask('test', ['htmlhintplus']);
};