Merge "Replace grunt fix with grunt eslint --fix"

This commit is contained in:
jenkins-bot 2020-02-25 17:23:08 +00:00 committed by Gerrit Code Review
commit 7b1276d909

View file

@ -28,15 +28,8 @@ module.exports = function ( grunt ) {
]
},
sources: {
src: [
'*.{js,json}',
'src/**/*.{js,json}',
'tests/**/*.{js,json}'
]
},
sourcesfix: {
options: {
fix: true
fix: grunt.option( 'fix' )
},
src: [
'*.{js,json}',
@ -47,7 +40,8 @@ module.exports = function ( grunt ) {
},
stylelint: {
options: {
syntax: 'less'
syntax: 'less',
fix: grunt.option( 'fix' )
},
all: [
'src/**/*.less'
@ -86,7 +80,6 @@ module.exports = function ( grunt ) {
}
} );
grunt.registerTask( 'fix', [ 'eslint:sourcesfix' ] );
grunt.registerTask( 'lint', [ 'eslint', 'stylelint', 'banana', 'eslint:build', 'svgmin' ] );
grunt.registerTask( 'default', [ 'lint' ] );
};