]> source.dussan.org Git - jquery.git/commitdiff
Build: Improve ESLint configuration (#3188)
authorOleg Gaidarenko <markelog@gmail.com>
Wed, 22 Jun 2016 15:41:57 +0000 (19:41 +0400)
committerGitHub <noreply@github.com>
Wed, 22 Jun 2016 15:41:57 +0000 (19:41 +0400)
* 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

.gitignore
Gruntfile.js
package.json

index 676ce17393ae7caa7b5728d7ee49fa4fadc844e9..300adf912b1a16c638682b7c57ef946bbd975c25 100644 (file)
 
 npm-debug.log
 
-/dist/jquery*
+# Ignore everything in dist folder except for eslint config
+/dist/*
+!/dist/.eslintrc
+
 /node_modules
 
 /test/node_smoke_tests/lib/ensure_iterability.js
index 8f8408d838c242ab9d432fad6fd63f37df4c7a0e..62adbda39e361c1f714b2ecbbf17a07dcffaeb4a 100644 (file)
@@ -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" ] );
 };
index 5f099251c809ac3487cc30d6cfec3b609487a5d6..329fd1d86b7d86a461b6109322b47a352bfb9c0a 100644 (file)
@@ -29,7 +29,7 @@
     "commitplease": "2.3.1",
     "core-js": "2.2.2",
     "cross-spawn": "2.2.3",
-    "eslint-config-jquery": "0.1.2",
+    "eslint-config-jquery": "0.1.6",
     "grunt": "1.0.1",
     "grunt-babel": "6.0.0",
     "grunt-cli": "1.2.0",