grunt-jslint
Validates JavaScript files with JSLint
Documentation
(Coming soon)
Example Usage
module.exports = function (grunt) {
'use strict';
grunt.loadNpmTasks('grunt-jslint');
grunt.initConfig({
watch: {
files: '<config:jslint.files>',
tasks: 'jslint'
},
jslint: {
files: [
'grunt.js',
'src/**/*.js'
]
},
jslint_directives: {
browser: true,
unparam: true,
todo: true,
predef: [
'jQuery'
]
},
jslint_options: {
junit: 'out/junit.xml',
log: 'out/lint.log',
errorsOnly: true
}
});
grunt.registerTask('default', 'server watch');
};
Release History
- 0.1.7 - Added an option to only report on errors
- 0.1.6 - Added an exclude option and added number of files in violation to standard output.
License
Copyright (c) 2012 Stephen Mathieson
Licensed under the WTFPL license.