diff options
author | Alexander Schmitz <arschmitz@gmail.com> | 2015-08-21 00:15:43 -0400 |
---|---|---|
committer | Alexander Schmitz <arschmitz@gmail.com> | 2015-08-21 08:06:24 -0400 |
commit | 8d4157f4e3fbfc03474c65fd151df06dd5c66412 (patch) | |
tree | 014d76dbb0225cb899309b4d3e58e7cd1d469af8 /Gruntfile.js | |
parent | 3188e1c40ccbb38a70553e2b044b659212769856 (diff) | |
download | jquery-ui-8d4157f4e3fbfc03474c65fd151df06dd5c66412.tar.gz jquery-ui-8d4157f4e3fbfc03474c65fd151df06dd5c66412.zip |
Build: Style updates
Fixes #14246
Closes gh-1588
Diffstat (limited to 'Gruntfile.js')
-rw-r--r-- | Gruntfile.js | 45 |
1 files changed, 5 insertions, 40 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index 41961061b..7797b5c77 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -55,19 +55,6 @@ var }, component = grunt.option( "component" ) || "**", - jscsBad = [ - "ui/button.js", - "ui/datepicker.js", - "ui/draggable.js", - "ui/droppable.js", - "ui/effect.js", - "ui/mouse.js", - "ui/resizable.js", - "ui/selectable.js", - "ui/slider.js", - "ui/sortable.js" - ], - htmllintBad = [ "demos/tabs/ajax/content*.html", "demos/tooltip/ajax/content*.html", @@ -150,35 +137,13 @@ grunt.initConfig({ // Remove the requireSpacesInsideParentheses override once everything is fixed jscs: { - "ui-good": [ "ui/*.js" ].concat( jscsBad.map( function( file ) { - return "!" + file; - } ) ), - "ui-bad": { - options: { - requireSpacesInsideParentheses: null - }, - src: jscsBad - }, - tests: { - options: { - requireSpacesInsideParentheses: null - }, - src: "tests/unit/**/*.js" - }, - grunt: { - options: { - requireSpacesInsideParentheses: null - }, - src: [ "Gruntfile.js", "build/tasks/*.js" ] - }, - demos: { + all: { options: { - - // While the style guide removed onevar upgrading jscs to allow it causes too many - // errors right now - disallowMultipleVarDecl: null + requireCapitalizedComments: null }, - src: "demos/**/*.js" + files: { + src: [ "demos/**/*.js", "build/**/*.js", "tests/**/*.js", "ui/**/*.js" ] + } } }, uglify: minify, |