Add csslint for frontend linting.

This commit is contained in:
Alexis Lahouze 2016-10-15 13:46:08 +02:00
parent 189d76fc22
commit 07ea908c73
3 changed files with 13 additions and 0 deletions

View File

@ -105,6 +105,8 @@ module.exports = function(grunt) {
grunt.registerTask('feLint', [ grunt.registerTask('feLint', [
// ECMAScript // ECMAScript
'newer:eslint:frontend', 'newer:eslint:frontend',
// CSS
'newer:csslint:frontend',
// HTML. // HTML.
'newer:htmllint' 'newer:htmllint'
]); ]);

10
grunt-config/csslint.js Normal file
View File

@ -0,0 +1,10 @@
'use strict';
module.exports = {
frontend: {
options: {
import: 2
},
src: ['<%= accountant.frontend.src %>/css/*.css']
}
};

View File

@ -20,6 +20,7 @@
"grunt-contrib-clean": "~1.0", "grunt-contrib-clean": "~1.0",
"grunt-contrib-concat": "~1.0", "grunt-contrib-concat": "~1.0",
"grunt-contrib-connect": "~1.0", "grunt-contrib-connect": "~1.0",
"grunt-contrib-csslint": "^2.0.0",
"grunt-contrib-cssmin": "~1.0", "grunt-contrib-cssmin": "~1.0",
"grunt-contrib-uglify": "~2.0", "grunt-contrib-uglify": "~2.0",
"grunt-contrib-watch": "~1.0", "grunt-contrib-watch": "~1.0",