diff --git a/Gruntfile.js b/Gruntfile.js index c69f1b5..7ba5af8 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -105,6 +105,8 @@ module.exports = function(grunt) { grunt.registerTask('feLint', [ // ECMAScript 'newer:eslint:frontend', + // CSS + 'newer:csslint:frontend', // HTML. 'newer:htmllint' ]); diff --git a/grunt-config/csslint.js b/grunt-config/csslint.js new file mode 100644 index 0000000..aea1692 --- /dev/null +++ b/grunt-config/csslint.js @@ -0,0 +1,10 @@ +'use strict'; + +module.exports = { + frontend: { + options: { + import: 2 + }, + src: ['<%= accountant.frontend.src %>/css/*.css'] + } +}; diff --git a/package.json b/package.json index 4173bbe..5c7906b 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "grunt-contrib-clean": "~1.0", "grunt-contrib-concat": "~1.0", "grunt-contrib-connect": "~1.0", + "grunt-contrib-csslint": "^2.0.0", "grunt-contrib-cssmin": "~1.0", "grunt-contrib-uglify": "~2.0", "grunt-contrib-watch": "~1.0",