Skip to content

Commit

Permalink
Improve CSSLint config to work on a per-module basis
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ericf committed Nov 27, 2013
1 parent b51c421 commit 97f862b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .csslintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"box-sizing" : false,
"display-property-grouping": false,
"star-property-hack" : false
"star-property-hack" : false,
"unqualified-attributes" : false
}
9 changes: 6 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 --------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/buttons/css/buttons.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*csslint unqualified-attributes:false, outline-none:false*/
/*csslint outline-none:false*/

.pure-button {
font-family: inherit;
Expand Down

0 comments on commit 97f862b

Please sign in to comment.