From 97f862bd7e294ed5cf986d8b0a3eb3728cdd310c Mon Sep 17 00:00:00 2001 From: Eric Ferraiuolo Date: Wed, 27 Nov 2013 14:38:03 -0500 Subject: [PATCH] Improve CSSLint config to work on a per-module basis The grunt-contrib-csslint Grunt plugin does odd things with the way it processes CSSLint config. This improves linting by only applying in-file lint overrides on a per-module basis. --- .csslintrc | 3 ++- Gruntfile.js | 9 ++++++--- src/buttons/css/buttons.css | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.csslintrc b/.csslintrc index 46d6b60..3e2af48 100644 --- a/.csslintrc +++ b/.csslintrc @@ -1,5 +1,6 @@ { "box-sizing" : false, "display-property-grouping": false, - "star-property-hack" : false + "star-property-hack" : false, + "unqualified-attributes" : false } diff --git a/Gruntfile.js b/Gruntfile.js index 5115b51..b2b9303 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -111,9 +111,12 @@ grunt.initConfig({ csslintrc: '.csslintrc' }, - src: { - src: 'src/**/css/*.css' - } + base : ['src/base/css/*.css'], + buttons: ['src/buttons/css/*.css'], + forms : ['src/forms/css/*.css'], + grids : ['src/grids/css/*.css'], + menus : ['src/menus/css/*.css'], + tables : ['src/tables/css/*.css'] }, // -- CSSMin Config -------------------------------------------------------- diff --git a/src/buttons/css/buttons.css b/src/buttons/css/buttons.css index cdce424..f88c03b 100644 --- a/src/buttons/css/buttons.css +++ b/src/buttons/css/buttons.css @@ -1,4 +1,4 @@ -/*csslint unqualified-attributes:false, outline-none:false*/ +/*csslint outline-none:false*/ .pure-button { font-family: inherit;