Skip to content

Commit 919828d

Browse files
committed
Build: Add demos to jscs and jshint
1 parent 21acf69 commit 919828d

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.jshintrc

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"expr": true,
77
"immed": true,
88
"noarg": true,
9-
"onevar": true,
109
"quotmark": "double",
1110
"smarttabs": true,
1211
"trailing": true,

Gruntfile.js

+11-1
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,15 @@ grunt.initConfig({
201201
requireSpacesInsideParentheses: null
202202
},
203203
src: [ "Gruntfile.js", "build/tasks/*.js" ]
204+
},
205+
demos: {
206+
options: {
207+
208+
// While the style guide removed onevar upgrading jscs to allow it causes too many
209+
// errors right now
210+
disallowMultipleVarDecl: null
211+
},
212+
src: "demos/**/*.js"
204213
}
205214
},
206215
uglify: minify,
@@ -249,7 +258,8 @@ grunt.initConfig({
249258
"Gruntfile.js",
250259
"build/**/*.js",
251260
"tests/unit/**/*.js",
252-
"tests/lib/**/*.js"
261+
"tests/lib/**/*.js",
262+
"demos/**/*.js"
253263
]
254264
},
255265
csslint: {

0 commit comments

Comments
 (0)