From 919828dfbe8027f96bab6d3fcd0d3bd0169d3aa1 Mon Sep 17 00:00:00 2001 From: Alexander Schmitz Date: Thu, 2 Jul 2015 09:55:12 -0400 Subject: [PATCH] Build: Add demos to jscs and jshint --- .jshintrc | 1 - Gruntfile.js | 12 +++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.jshintrc b/.jshintrc index d34c42da5..e79eeee47 100644 --- a/.jshintrc +++ b/.jshintrc @@ -6,7 +6,6 @@ "expr": true, "immed": true, "noarg": true, - "onevar": true, "quotmark": "double", "smarttabs": true, "trailing": true, diff --git a/Gruntfile.js b/Gruntfile.js index c4acdb7fc..7ccb800b0 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -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: {