]> source.dussan.org Git - jquery-ui.git/commitdiff
Build: Add demos to jscs and jshint
authorAlexander Schmitz <arschmitz@gmail.com>
Thu, 2 Jul 2015 13:55:12 +0000 (09:55 -0400)
committerAlexander Schmitz <arschmitz@gmail.com>
Tue, 21 Jul 2015 15:00:40 +0000 (11:00 -0400)
.jshintrc
Gruntfile.js

index d34c42da55b41880e4b704196995c11251e42d16..e79eeee472ebfdbb8f4edde0b10dd028f183080c 100644 (file)
--- a/.jshintrc
+++ b/.jshintrc
@@ -6,7 +6,6 @@
        "expr": true,
        "immed": true,
        "noarg": true,
-       "onevar": true,
        "quotmark": "double",
        "smarttabs": true,
        "trailing": true,
index c4acdb7fcbc215fc9ddeb17c2326df0c8f61f822..7ccb800b0cedcc4cb6d811ca98e4323b1c3d33ad 100644 (file)
@@ -201,6 +201,15 @@ grunt.initConfig({
                                requireSpacesInsideParentheses: null
                        },
                        src: [ "Gruntfile.js", "build/tasks/*.js" ]
+               },
+               demos: {
+                       options: {
+
+                               // While the style guide removed onevar upgrading jscs to allow it causes too many
+                               // errors right now
+                               disallowMultipleVarDecl: null
+                       },
+                       src: "demos/**/*.js"
                }
        },
        uglify: minify,
@@ -249,7 +258,8 @@ grunt.initConfig({
                        "Gruntfile.js",
                        "build/**/*.js",
                        "tests/unit/**/*.js",
-                       "tests/lib/**/*.js"
+                       "tests/lib/**/*.js",
+                       "demos/**/*.js"
                ]
        },
        csslint: {