aboutsummaryrefslogtreecommitdiffstats
path: root/Gruntfile.js
diff options
context:
space:
mode:
authorMichał Gołębiowski <m.goleb@gmail.com>2016-07-26 01:22:53 +0200
committerOleg Gaidarenko <markelog@gmail.com>2016-07-26 03:22:53 +0400
commitedf7a43681ca0ba517b155fd5d748921660dfcd2 (patch)
treec41e55d480e858be853ad5bc2a45d64590c22012 /Gruntfile.js
parent04a2e036d0de3a0b382af3379c99d23e9ac7c390 (diff)
downloadjquery-edf7a43681ca0ba517b155fd5d748921660dfcd2.tar.gz
jquery-edf7a43681ca0ba517b155fd5d748921660dfcd2.zip
Build: Don't lint every file in dist/ (#3245)
Currently the "all" target for the eslint task includes way more than the "dev" & "dist" targets combined and those 2 tasks are the one run in `npm test`.
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 7af3ac98a..8cc4c91c0 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -113,7 +113,6 @@ module.exports = function( grunt ) {
// See https://github.com/sindresorhus/grunt-eslint/issues/119
quiet: true
},
- all: ".",
dist: "dist/jquery.js",
dev: [ "src/**/*.js", "Gruntfile.js", "test/**/*.js", "build/**/*.js" ]
},
@@ -197,7 +196,8 @@ module.exports = function( grunt ) {
grunt.registerTask( "lint", [
"jsonlint",
- runIfNewNode( "eslint:all" )
+ runIfNewNode( "eslint:dev" ),
+ runIfNewNode( "eslint:dist" )
] );
grunt.registerTask( "test_fast", [ runIfNewNode( "node_smoke_tests" ) ] );
@@ -225,6 +225,7 @@ module.exports = function( grunt ) {
grunt.registerTask( "precommit_lint", [
"newer:jsonlint",
- runIfNewNode( "newer:eslint:all" )
+ runIfNewNode( "newer:eslint:dev" ),
+ runIfNewNode( "newer:eslint:dist" )
] );
};