From 55b674ecb5366ea52dd9fca9f302d204b275a3c3 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Fri, 28 Dec 2018 17:57:32 +0200 Subject: Switch to ESLint. --- Gruntfile.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Gruntfile.js') diff --git a/Gruntfile.js b/Gruntfile.js index 48ac214..25800fa 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -11,14 +11,14 @@ module.exports = function(grunt) { // Project configuration. grunt.initConfig({ - jshint: { + eslint: { all: [ 'Gruntfile.js', 'tasks/*.js', '<%= nodeunit.tests %>' ], options: { - jshintrc: '.jshintrc' + configFile: '.eslintrc.json' } }, @@ -125,13 +125,13 @@ module.exports = function(grunt) { grunt.loadTasks('tasks'); // These plugins provide necessary tasks. - grunt.loadNpmTasks('grunt-contrib-jshint'); + grunt.loadNpmTasks('grunt-eslint'); grunt.loadNpmTasks('grunt-contrib-clean'); grunt.loadNpmTasks('grunt-contrib-nodeunit'); // Whenever the "test" task is run, first clean the "tmp" dir, then lint, // then test the result. - grunt.registerTask('test', ['clean', 'jshint', 'nodeunit']); + grunt.registerTask('test', ['clean', 'eslint', 'nodeunit']); // By default, run all tests. grunt.registerTask('default', 'test'); -- cgit v1.2.3