diff options
author | XhmikosR <xhmikosr@gmail.com> | 2018-12-28 18:57:32 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2018-12-28 19:11:43 +0300 |
commit | 55b674ecb5366ea52dd9fca9f302d204b275a3c3 (patch) | |
tree | 93ed719c72852ecca189286e4cc0f794c7a144a9 /Gruntfile.js | |
parent | aefcb563306e99aa032464f6be6bc32e9656761d (diff) |
Switch to ESLint.
Diffstat (limited to 'Gruntfile.js')
-rw-r--r-- | Gruntfile.js | 8 |
1 files changed, 4 insertions, 4 deletions
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'); |