|
@@ -4,25 +4,7 @@ module.exports = function(grunt) {
|
|
|
// Project configuration.
|
|
|
grunt.initConfig({
|
|
|
// Task configuration.
|
|
|
- jshint: {
|
|
|
- options: {
|
|
|
- curly: true,
|
|
|
- eqeqeq: true,
|
|
|
- immed: true,
|
|
|
- latedef: true,
|
|
|
- newcap: true,
|
|
|
- noarg: true,
|
|
|
- sub: true,
|
|
|
- undef: true,
|
|
|
- unused: true,
|
|
|
- boss: true,
|
|
|
- eqnull: true,
|
|
|
- node: true,
|
|
|
- globals: {
|
|
|
- jQuery: true,
|
|
|
- window: true,
|
|
|
- }
|
|
|
- },
|
|
|
+ eslint: {
|
|
|
gruntfile: {
|
|
|
src: 'Gruntfile.js'
|
|
|
},
|
|
@@ -35,22 +17,22 @@ module.exports = function(grunt) {
|
|
|
},
|
|
|
watch: {
|
|
|
gruntfile: {
|
|
|
- files: '<%= jshint.gruntfile.src %>',
|
|
|
- tasks: ['jshint:gruntfile']
|
|
|
+ files: '<%= eslint.gruntfile.src %>',
|
|
|
+ tasks: ['eslint:gruntfile']
|
|
|
},
|
|
|
lib_test: {
|
|
|
- files: '<%= jshint.lib_test.src %>',
|
|
|
- tasks: ['jshint:lib_test', 'nodeunit']
|
|
|
+ files: '<%= eslint.lib_test.src %>',
|
|
|
+ tasks: ['eslint:lib_test', 'nodeunit']
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
// These plugins provide necessary tasks.
|
|
|
grunt.loadNpmTasks('grunt-contrib-nodeunit');
|
|
|
- grunt.loadNpmTasks('grunt-contrib-jshint');
|
|
|
+ grunt.loadNpmTasks("gruntify-eslint");
|
|
|
grunt.loadNpmTasks('grunt-contrib-watch');
|
|
|
|
|
|
// Default task.
|
|
|
- grunt.registerTask('default', ['jshint', 'nodeunit']);
|
|
|
+ grunt.registerTask('default', ['eslint', 'nodeunit']);
|
|
|
|
|
|
};
|