From 25d8ccd1112d75394b91071ff7eba13283aaf898 Mon Sep 17 00:00:00 2001 From: Oleg Gaidarenko Date: Wed, 22 Jun 2016 19:41:57 +0400 Subject: Build: Improve ESLint configuration (#3188) * Bump eslint-config-jquery package to 0.1.4 version * Add subtask "dist" to "eslint" task and add it to the build task list * Make gitignore globs more flexible for the "dist" folder Fixes gh-3169 --- Gruntfile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Gruntfile.js') diff --git a/Gruntfile.js b/Gruntfile.js index 8f8408d83..62adbda39 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -109,6 +109,7 @@ module.exports = function( grunt ) { quiet: true }, all: ".", + dist: "dist/jquery.js", dev: [ "src/**/*.js", "Gruntfile.js", "test/**/*.js", "build/**/*.js" ] }, testswarm: { @@ -201,7 +202,7 @@ module.exports = function( grunt ) { ] ); - grunt.registerTask( "default", [ "dev", "test_fast", "compare_size" ] ); + grunt.registerTask( "default", [ "dev", "eslint:dist", "test_fast", "compare_size" ] ); grunt.registerTask( "precommit_lint", [ "newer:jsonlint", "newer:eslint:all" ] ); }; -- cgit v1.2.3