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

Change-Id: Ie129e854469e276022bad488bfc813b550256541
This commit is contained in:
James D. Forrester 2019-05-07 10:13:47 -07:00
parent c1399a6d3d
commit ab49140e61
2 changed files with 5 additions and 13 deletions

View file

@ -10,29 +10,22 @@ module.exports = function ( grunt ) {
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-eslint' );
grunt.loadNpmTasks( 'grunt-jsonlint' );
grunt.initConfig( {
banana: conf.MessagesDirs,
eslint: {
options: {
reportUnusedDisableDirectives: true,
extensions: [ '.js', '.json' ],
cache: true
},
all: [
'**/*.js',
'**/*.js{,on}',
'!{vendor,node_modules}/**'
]
},
jsonlint: {
all: [
'**/*.json',
'!node_modules/**',
'!vendor/**'
]
}
} );
grunt.registerTask( 'test', [ 'eslint', 'jsonlint', 'banana' ] );
grunt.registerTask( 'test', [ 'eslint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};

View file

@ -7,10 +7,9 @@
"test": "grunt test"
},
"devDependencies": {
"eslint-config-wikimedia": "0.11.0",
"eslint-config-wikimedia": "0.12.0",
"grunt": "1.0.4",
"grunt-banana-checker": "0.6.0",
"grunt-eslint": "21.0.0",
"grunt-jsonlint": "1.1.0"
"grunt-eslint": "21.0.0"
}
}