build: Enforce stylelints on spacing around declarations
authorJames D. Forrester <jforrester@wikimedia.org>
Thu, 19 May 2016 15:05:31 +0000 (16:05 +0100)
committerJforrester <jforrester@wikimedia.org>
Thu, 19 May 2016 16:24:49 +0000 (16:24 +0000)
* A space before but not after a 'bang' (' !important' not '! important')
* A space after but not before a colon ('display: block' not 'display :block')

Change-Id: Ice36c2034e94e62377bac8a110ff4b16b7187e85

.stylelintrc
resources/src/mediawiki.special/mediawiki.special.search.css
resources/src/mediawiki/mediawiki.debug.less

index c6d9db4..ca0af95 100644 (file)
@@ -4,5 +4,10 @@
                "color-hex-length": [ "short" ],
                "color-named": [ "never" ],
                "color-no-invalid-hex": true,
+
+               "declaration-bang-space-after": [ "never" ],
+               "declaration-bang-space-before": [ "always" ],
+               "declaration-colon-space-after": [ "always" ],
+               "declaration-colon-space-before": [ "never" ],
        }
 }
index a281309..1e99361 100644 (file)
@@ -126,8 +126,8 @@ fieldset#mw-searchoptions div.divider {
        margin-bottom: 0.5em;
 }
 td#mw-search-menu {
-       padding-left:6em;
-       font-size:85%;
+       padding-left: 6em;
+       font-size: 85%;
 }
 div#mw-search-interwiki {
        float: right;
index bc5e0da..54620f4 100644 (file)
@@ -65,7 +65,7 @@
        font-size: 13px;
        /* IE-hack for display: inline-block */
        zoom: 1;
-       *display:inline;
+       *display: inline;
 }
 
 .mw-debug-panelink {