Introduce stylelint and make pass

Change-Id: Iaf12e7773f21d42ff59591680abdf248bf121224
This commit is contained in:
Ed Sanders
2016-05-24 14:34:27 +01:00
committed by Niklas Laxström
parent aaa144ca1d
commit e6dcdb56c4
12 changed files with 95 additions and 69 deletions

View File

@@ -6,6 +6,7 @@ module.exports = function ( grunt ) {
grunt.loadNpmTasks( 'grunt-contrib-jshint' );
grunt.loadNpmTasks( 'grunt-jscs' );
grunt.loadNpmTasks( 'grunt-jsonlint' );
grunt.loadNpmTasks( 'grunt-stylelint' );
grunt.initConfig( {
jshint: {
@@ -23,6 +24,18 @@ module.exports = function ( grunt ) {
jscs: {
src: '<%= jshint.all %>'
},
stylelint: {
options: {
syntax: 'less'
},
src: [
'**/*.css',
'**/*.less',
'!lib/**',
'!node_modules/**',
'!vendor/**'
]
},
jsonlint: {
all: [
'**/*.json',
@@ -35,6 +48,6 @@ module.exports = function ( grunt ) {
}
} );
grunt.registerTask( 'test', [ 'jshint', 'jscs', 'jsonlint', 'banana' ] );
grunt.registerTask( 'test', [ 'jshint', 'jscs', 'stylelint', 'jsonlint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};