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

Bug: T220036
Change-Id: Ia081ff5429547cf1c7e6d6e8b0cae94e8ca3e0ba
This commit is contained in:
James D. Forrester 2019-05-06 13:52:00 -07:00
parent 65f5a71d0c
commit 7eabe08806
2 changed files with 4 additions and 14 deletions

View file

@ -5,7 +5,6 @@ module.exports = function ( grunt ) {
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-contrib-watch' );
grunt.loadNpmTasks( 'grunt-eslint' );
grunt.loadNpmTasks( 'grunt-jsonlint' );
grunt.loadNpmTasks( 'grunt-notify' );
grunt.loadNpmTasks( 'grunt-stylelint' );
@ -13,11 +12,12 @@ module.exports = function ( grunt ) {
eslint: {
options: {
cache: true,
extensions: [ '.js', '.json' ],
maxWarnings: 0,
reportUnusedDisableDirectives: true
},
all: [
'**/*.js',
'**/*.js{,on}',
'!docs/**',
'!libs/**',
'!node_modules/**',
@ -39,15 +39,6 @@ module.exports = function ( grunt ) {
'!vendor/**'
]
},
jsonlint: {
all: [
'**/*.json',
'!docs/**',
'!libs/**',
'!node_modules/**',
'!vendor/**'
]
},
banana: conf.MessagesDirs,
watch: {
lint: {
@ -67,7 +58,7 @@ module.exports = function ( grunt ) {
}
} );
grunt.registerTask( 'lint', [ 'eslint', 'stylelint', 'jsonlint', 'banana' ] );
grunt.registerTask( 'lint', [ 'eslint', 'stylelint', 'banana' ] );
grunt.registerTask( 'test', [ 'lint' ] );
grunt.registerTask( 'default', [ 'test' ] );

View file

@ -9,12 +9,11 @@
},
"dependencies": {},
"devDependencies": {
"eslint-config-wikimedia": "0.11.0",
"eslint-config-wikimedia": "0.12.0",
"grunt": "1.0.3",
"grunt-banana-checker": "0.6.0",
"grunt-contrib-watch": "1.1.0",
"grunt-eslint": "21.0.0",
"grunt-jsonlint": "1.1.0",
"grunt-notify": "0.4.5",
"grunt-stylelint": "0.10.1",
"jsdoc": "3.5.5",