Skip to content

Commit

Permalink
Base: Add CSS Lint to Grunt
Browse files Browse the repository at this point in the history
  • Loading branch information
salbahra committed Jun 22, 2015
1 parent 16a9a1b commit a052335
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .csslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"adjoining-classes": false,
"qualified-headings": false,
"box-sizing": false,
"important": false,
"ids": false
}
10 changes: 10 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module.exports = function( grunt ) {
grunt.loadNpmTasks( "grunt-contrib-compress" );
grunt.loadNpmTasks( "grunt-contrib-uglify" );
grunt.loadNpmTasks( "grunt-contrib-cssmin" );
grunt.loadNpmTasks( "grunt-contrib-csslint" );
grunt.loadNpmTasks( "grunt-contrib-clean" );
grunt.loadNpmTasks( "grunt-jscs" );
grunt.loadTasks( "tasks" );
Expand Down Expand Up @@ -57,6 +58,15 @@ module.exports = function( grunt ) {
}
},

csslint: {
strict: {
options: {
csslintrc: ".csslintrc"
},
src: [ "www/css/main.css" ]
}
},

blanket_mocha: {
test: {
src: [ "test/tests.html" ],
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"grunt": "^0.4.5",
"grunt-contrib-clean": "^0.6.0",
"grunt-contrib-compress": "^0.13.0",
"grunt-contrib-csslint": "^0.4.0",
"grunt-contrib-cssmin": "^0.12.2",
"grunt-contrib-jshint": "^0.11.1",
"grunt-contrib-uglify": "^0.9.1",
Expand Down

0 comments on commit a052335

Please sign in to comment.