Add csslint for frontend linting.
This commit is contained in:
parent
189d76fc22
commit
07ea908c73
@ -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
10
grunt-config/csslint.js
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
frontend: {
|
||||||
|
options: {
|
||||||
|
import: 2
|
||||||
|
},
|
||||||
|
src: ['<%= accountant.frontend.src %>/css/*.css']
|
||||||
|
}
|
||||||
|
};
|
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user