build: Upgrade eslint-config-wikimedia 0.12.0, drop grunt-jsonlint
Change-Id: Ie5c456ce74674194fd10b3e05a283f32bac60f2f
This commit is contained in:
18
Gruntfile.js
18
Gruntfile.js
@@ -4,7 +4,6 @@ module.exports = function ( grunt ) {
|
||||
|
||||
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
||||
grunt.loadNpmTasks( 'grunt-eslint' );
|
||||
grunt.loadNpmTasks( 'grunt-jsonlint' );
|
||||
grunt.loadNpmTasks( 'grunt-stylelint' );
|
||||
grunt.loadNpmTasks( 'grunt-svgmin' );
|
||||
|
||||
@@ -12,9 +11,15 @@ module.exports = function ( grunt ) {
|
||||
eslint: {
|
||||
options: {
|
||||
reportUnusedDisableDirectives: true,
|
||||
extensions: [ '.js', '.json' ],
|
||||
cache: true
|
||||
},
|
||||
all: '.'
|
||||
all: [
|
||||
'**/*.js{,on}',
|
||||
'!lib/**',
|
||||
'!resources/js/ext.uls.webfonts.repository.js',
|
||||
'!{vendor,node_modules}/**'
|
||||
]
|
||||
},
|
||||
stylelint: {
|
||||
options: {
|
||||
@@ -28,13 +33,6 @@ module.exports = function ( grunt ) {
|
||||
'!vendor/**'
|
||||
]
|
||||
},
|
||||
jsonlint: {
|
||||
all: [
|
||||
'**/*.json',
|
||||
'!node_modules/**',
|
||||
'!vendor/**'
|
||||
]
|
||||
},
|
||||
banana: conf.MessagesDirs,
|
||||
// SVG Optimization
|
||||
svgmin: {
|
||||
@@ -75,6 +73,6 @@ module.exports = function ( grunt ) {
|
||||
} );
|
||||
|
||||
grunt.registerTask( 'minify', 'svgmin' );
|
||||
grunt.registerTask( 'test', [ 'eslint', 'stylelint', 'jsonlint', 'banana' ] );
|
||||
grunt.registerTask( 'test', [ 'eslint', 'stylelint', 'banana' ] );
|
||||
grunt.registerTask( 'default', [ 'minify', 'test' ] );
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user