Skip to content

Commit 8d4157f

Browse files
committed
Build: Style updates
Fixes #14246 Closes gh-1588
1 parent 3188e1c commit 8d4157f

File tree

1 file changed

+5
-40
lines changed

1 file changed

+5
-40
lines changed

Gruntfile.js

Lines changed: 5 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,6 @@ var
5555
},
5656
component = grunt.option( "component" ) || "**",
5757

58-
jscsBad = [
59-
"ui/button.js",
60-
"ui/datepicker.js",
61-
"ui/draggable.js",
62-
"ui/droppable.js",
63-
"ui/effect.js",
64-
"ui/mouse.js",
65-
"ui/resizable.js",
66-
"ui/selectable.js",
67-
"ui/slider.js",
68-
"ui/sortable.js"
69-
],
70-
7158
htmllintBad = [
7259
"demos/tabs/ajax/content*.html",
7360
"demos/tooltip/ajax/content*.html",
@@ -150,35 +137,13 @@ grunt.initConfig({
150137

151138
// Remove the requireSpacesInsideParentheses override once everything is fixed
152139
jscs: {
153-
"ui-good": [ "ui/*.js" ].concat( jscsBad.map( function( file ) {
154-
return "!" + file;
155-
} ) ),
156-
"ui-bad": {
157-
options: {
158-
requireSpacesInsideParentheses: null
159-
},
160-
src: jscsBad
161-
},
162-
tests: {
163-
options: {
164-
requireSpacesInsideParentheses: null
165-
},
166-
src: "tests/unit/**/*.js"
167-
},
168-
grunt: {
169-
options: {
170-
requireSpacesInsideParentheses: null
171-
},
172-
src: [ "Gruntfile.js", "build/tasks/*.js" ]
173-
},
174-
demos: {
140+
all: {
175141
options: {
176-
177-
// While the style guide removed onevar upgrading jscs to allow it causes too many
178-
// errors right now
179-
disallowMultipleVarDecl: null
142+
requireCapitalizedComments: null
180143
},
181-
src: "demos/**/*.js"
144+
files: {
145+
src: [ "demos/**/*.js", "build/**/*.js", "tests/**/*.js", "ui/**/*.js" ]
146+
}
182147
}
183148
},
184149
uglify: minify,

0 commit comments

Comments
 (0)