Introduce stylelint and make pass
Change-Id: Iaf12e7773f21d42ff59591680abdf248bf121224
This commit is contained in:
committed by
Niklas Laxström
parent
aaa144ca1d
commit
e6dcdb56c4
15
Gruntfile.js
15
Gruntfile.js
@@ -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' );
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user