From 07ea908c73d32b6134c0ed4a136efa0d43485ae6 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Sat, 15 Oct 2016 13:46:08 +0200 Subject: [PATCH] Add csslint for frontend linting. --- Gruntfile.js | 2 ++ grunt-config/csslint.js | 10 ++++++++++ package.json | 1 + 3 files changed, 13 insertions(+) create mode 100644 grunt-config/csslint.js 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",