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-banana-checker' );
grunt.loadNpmTasks( 'grunt-eslint' ); grunt.loadNpmTasks( 'grunt-eslint' );
grunt.loadNpmTasks( 'grunt-jsonlint' );
grunt.initConfig( { grunt.initConfig( {
banana: conf.MessagesDirs, banana: conf.MessagesDirs,
eslint: { eslint: {
options: { options: {
reportUnusedDisableDirectives: true, reportUnusedDisableDirectives: true,
extensions: [ '.js', '.json' ],
cache: true cache: true
}, },
all: [ all: [
'**/*.js', '**/*.js{,on}',
'!{vendor,node_modules}/**' '!{vendor,node_modules}/**'
] ]
},
jsonlint: {
all: [
'**/*.json',
'!node_modules/**',
'!vendor/**'
]
} }
} ); } );
grunt.registerTask( 'test', [ 'eslint', 'jsonlint', 'banana' ] ); grunt.registerTask( 'test', [ 'eslint', 'banana' ] );
grunt.registerTask( 'default', 'test' ); grunt.registerTask( 'default', 'test' );
}; };

View file

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