build: Alter jscs rule 'requireDotNotation' to reflect need for ES3 compatibility
authorJames D. Forrester <jforrester@wikimedia.org>
Thu, 3 Sep 2015 22:07:22 +0000 (15:07 -0700)
committerJames D. Forrester <jforrester@wikimedia.org>
Thu, 3 Sep 2015 22:07:22 +0000 (15:07 -0700)
Change-Id: I0f2b59e99ad1d449df45505a87976c0c466226be

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

diff --git a/.jscsrc b/.jscsrc
index c9f9a46..72ff45c 100644 (file)
--- a/.jscsrc
+++ b/.jscsrc
@@ -8,6 +8,8 @@
        "requireSpacesInsideBrackets": null,
        "jsDoc": null,
 
+       "requireDotNotation": { "allExcept": [ "keywords" ] },
+
        "excludeFiles": [
                "docs/**",
                "extensions/**",
index 3153fd4..bdff99f 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;