build: Bump grunt-jscs to 2.1.0 and make pass
authorJames D. Forrester <jforrester@wikimedia.org>
Tue, 4 Aug 2015 02:13:14 +0000 (19:13 -0700)
committerKrinkle <krinklemail@gmail.com>
Thu, 3 Sep 2015 21:30:31 +0000 (21:30 +0000)
Change-Id: I7c5a38ad16c471bb1443a5bde56dda4203fcfad5

.jscsrc
package.json
resources/src/mediawiki/mediawiki.debug.js

diff --git a/.jscsrc b/.jscsrc
index 6a3c564..c9f9a46 100644 (file)
--- a/.jscsrc
+++ b/.jscsrc
@@ -4,6 +4,9 @@
        "disallowQuotedKeysInObjects": null,
        "requireSpacesInsideParentheses": null,
        "requireSpacesInsideArrayBrackets": null,
+       "requireVarDeclFirst": null,
+       "requireSpacesInsideBrackets": null,
+       "jsDoc": null,
 
        "excludeFiles": [
                "docs/**",
index 1958461..7b70048 100644 (file)
@@ -13,7 +13,7 @@
     "grunt-contrib-copy": "0.8.0",
     "grunt-contrib-jshint": "0.11.3",
     "grunt-contrib-watch": "0.6.1",
-    "grunt-jscs": "1.8.0",
+    "grunt-jscs": "2.1.0",
     "grunt-jsonlint": "1.0.4",
     "grunt-karma": "0.11.0",
     "karma": "0.12.36",
index bdff99f..3153fd4 100644 (file)
                        for ( i = 0, length = this.data.queries.length; i < length; i += 1 ) {
                                query = this.data.queries[i];
 
+                               // jscs: disable requireDotNotation
                                $( '<tr>' )
                                        .append( $( '<td>' ).text( i + 1 ) )
                                        .append( $( '<td>' ).text( query.sql ) )
                                        .append( $( '<td class="stats">' ).text( ( query.time * 1000 ).toFixed( 4 ) + 'ms' ) )
                                        .append( $( '<td>' ).text( query['function'] ) )
                                .appendTo( $table );
+                               // jscs: enable requireDotNotation
                        }
 
                        return $table;