aboutsummaryrefslogtreecommitdiffstats
path: root/Gruntfile.js
diff options
context:
space:
mode:
authorOleg Gaidarenko <markelog@gmail.com>2016-05-10 12:12:28 +0300
committerOleg Gaidarenko <markelog@gmail.com>2016-06-11 10:41:33 +0300
commit58c6ca9822afa42d3b40cca8edb0abe90a2bcb34 (patch)
treeeb8c4c93031b4f0d88ffe5d58af7d58337c7b116 /Gruntfile.js
parenta4474c9a0025095f82d734a9d7230eace2f08ef8 (diff)
downloadjquery-58c6ca9822afa42d3b40cca8edb0abe90a2bcb34.tar.gz
jquery-58c6ca9822afa42d3b40cca8edb0abe90a2bcb34.zip
Build: ESLint details
Use eslint pragmas, fix new errors, etc Closes gh-3148
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 5f101050a..8f8408d83 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -180,7 +180,7 @@ module.exports = function( grunt ) {
// Integrate jQuery specific tasks
grunt.loadTasks( "build/tasks" );
- grunt.registerTask( "lint", [ "jsonlint" ] );
+ grunt.registerTask( "lint", [ "jsonlint", "eslint:all" ] );
// Don't run Node-related tests in Node.js < 1.0.0 as they require an old
// jsdom version that needs compiling, making it harder for people to compile
@@ -194,6 +194,7 @@ module.exports = function( grunt ) {
// Short list as a high frequency watch task
grunt.registerTask( "dev", [
"build:*:*",
+ "newer:eslint:dev",
"uglify",
"remove_map_comment",
"dist:*"
@@ -202,5 +203,5 @@ module.exports = function( grunt ) {
grunt.registerTask( "default", [ "dev", "test_fast", "compare_size" ] );
- grunt.registerTask( "precommit_lint", [ "newer:jsonlint" ] );
+ grunt.registerTask( "precommit_lint", [ "newer:jsonlint", "newer:eslint:all" ] );
};