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

Change-Id: I4510c552189ae7b0f458cb82f389dff7f14a0a96
This commit is contained in:
James D. Forrester 2019-05-07 10:50:20 -07:00
parent 2058003ba0
commit 68c4348935
2 changed files with 6 additions and 14 deletions

View file

@ -11,18 +11,18 @@ module.exports = function ( grunt ) {
grunt.loadNpmTasks( 'grunt-banana-checker' ); grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-contrib-watch' ); grunt.loadNpmTasks( 'grunt-contrib-watch' );
grunt.loadNpmTasks( 'grunt-eslint' ); grunt.loadNpmTasks( 'grunt-eslint' );
grunt.loadNpmTasks( 'grunt-jsonlint' );
grunt.loadNpmTasks( 'grunt-stylelint' ); grunt.loadNpmTasks( 'grunt-stylelint' );
grunt.initConfig( { grunt.initConfig( {
eslint: { eslint: {
options: { options: {
reportUnusedDisableDirectives: true, reportUnusedDisableDirectives: true,
extensions: [ '.js', '.json' ],
cache: true cache: true
}, },
all: [ all: [
'modules/**/*.js', '**/*.js{,on}',
'tests/**/*.js' '!{lib,vendor,node_modules}/**'
] ]
}, },
stylelint: { stylelint: {
@ -31,13 +31,6 @@ module.exports = function ( grunt ) {
'resources/*.css' 'resources/*.css'
] ]
}, },
jsonlint: {
all: [
'**/*.json',
'!node_modules/**',
'!vendor/**'
]
},
banana: conf.MessagesDirs, banana: conf.MessagesDirs,
watch: { watch: {
files: [ files: [
@ -49,6 +42,6 @@ module.exports = function ( grunt ) {
} }
} ); } );
grunt.registerTask( 'test', [ 'eslint', 'stylelint', 'jsonlint', 'banana' ] ); grunt.registerTask( 'test', [ 'eslint', 'stylelint', 'banana' ] );
grunt.registerTask( 'default', 'test' ); grunt.registerTask( 'default', 'test' );
}; };

View file

@ -5,12 +5,11 @@
"doc": "jsduck" "doc": "jsduck"
}, },
"devDependencies": { "devDependencies": {
"eslint-config-wikimedia": "0.11.0", "eslint-config-wikimedia": "0.12.0",
"grunt": "1.0.3", "grunt": "1.0.4",
"grunt-banana-checker": "0.6.0", "grunt-banana-checker": "0.6.0",
"grunt-contrib-watch": "1.1.0", "grunt-contrib-watch": "1.1.0",
"grunt-eslint": "21.0.0", "grunt-eslint": "21.0.0",
"grunt-jsonlint": "1.1.0",
"grunt-stylelint": "0.10.1", "grunt-stylelint": "0.10.1",
"stylelint-config-wikimedia": "0.5.0" "stylelint-config-wikimedia": "0.5.0"
} }