MDL-55167 stylelint: disable some rules in grunt
authorDan Poltawski <dan@moodle.com>
Fri, 8 Jul 2016 16:26:11 +0000 (17:26 +0100)
committerDan Poltawski <dan@moodle.com>
Sat, 30 Jul 2016 12:07:54 +0000 (13:07 +0100)
These will be fixed in a later issue

Gruntfile.js

index e26a294..4d9a81d 100644 (file)
@@ -172,7 +172,22 @@ module.exports = function(grunt) {
         },
         stylelint: {
             less: {
-                options: {syntax: 'less'},
+                options: {
+                    syntax: 'less',
+                    configOverrides: {
+                        rules: {
+                            // TODO: MDL-55165 -Enable these rules once we make output-changing changes to less.
+                            "declaration-block-no-ignored-properties": null,
+                            "value-keyword-case": null,
+                            "declaration-block-no-duplicate-properties": null,
+                            "declaration-block-no-shorthand-property-overrides": null,
+                            "selector-type-no-unknown": null,
+                            "length-zero-no-unit": null,
+                            "color-hex-case": null,
+                            "color-hex-length": null
+                        }
+                    }
+                },
                 src: ['theme/**/*.less', '!theme/bootstrapbase/less/bootstrap/*'],
             }
         }