build: Upgrade eslint-config-wikimedia 0.12.0, drop grunt-jsonlint

Change-Id: I4c82af69580292b91177fb1021908613292de5da
This commit is contained in:
James D. Forrester 2019-05-07 11:30:32 -07:00
parent d1ad4ec5d4
commit b374d6beed
2 changed files with 9 additions and 18 deletions

View file

@ -1,21 +1,21 @@
/* eslint-env node */
module.exports = function ( grunt ) {
var conf = grunt.file.readJSON( 'extension.json' );
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-eslint' );
grunt.loadNpmTasks( 'grunt-jsonlint' );
grunt.loadNpmTasks( 'grunt-stylelint' );
grunt.initConfig( {
eslint: {
options: {
reportUnusedDisableDirectives: true,
extensions: [ '.js', '.json' ],
cache: true
},
all: [
'**/*.js',
'!node_modules/**',
'!vendor/**'
'**/*.js{,on}',
'!{vendor,node_modules}/**'
]
},
stylelint: {
@ -24,20 +24,12 @@ module.exports = function ( grunt ) {
},
all: [
'**/*.less',
'!node_modules/**',
'!vendor/**'
'!{vendor,node_modules}/**'
]
},
banana: conf.MessagesDirs,
jsonlint: {
all: [
'**/*.json',
'!node_modules/**',
'!vendor/**'
]
}
banana: conf.MessagesDirs
} );
grunt.registerTask( 'test', [ 'eslint', 'stylelint', 'jsonlint', 'banana' ] );
grunt.registerTask( 'test', [ 'eslint', 'stylelint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};

View file

@ -4,11 +4,10 @@
"test": "grunt test"
},
"devDependencies": {
"eslint-config-wikimedia": "0.11.0",
"grunt": "1.0.3",
"eslint-config-wikimedia": "0.12.0",
"grunt": "1.0.4",
"grunt-banana-checker": "0.7.0",
"grunt-eslint": "21.0.0",
"grunt-jsonlint": "1.1.0",
"grunt-stylelint": "0.10.1",
"stylelint-config-wikimedia": "0.5.0"
}