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

Change-Id: I2799004a68022deb13a068e491c1bdb48fdebe0c
This commit is contained in:
James D. Forrester 2019-05-06 16:22:12 -07:00
parent 0447c43b58
commit 608b0bbb16
2 changed files with 10 additions and 16 deletions

View file

@ -1,29 +1,24 @@
/* eslint-env node */ /* eslint-env node */
module.exports = function ( grunt ) { module.exports = function ( grunt ) {
grunt.loadNpmTasks( 'grunt-eslint' ); grunt.loadNpmTasks( 'grunt-eslint' );
grunt.loadNpmTasks( 'grunt-jsonlint' );
grunt.loadNpmTasks( 'grunt-banana-checker' ); grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-stylelint' ); grunt.loadNpmTasks( 'grunt-stylelint' );
grunt.initConfig( { grunt.initConfig( {
eslint: { eslint: {
options: {
reportUnusedDisableDirectives: true,
extensions: [ '.js', '.json' ],
cache: true
},
all: [ all: [
'**/*.js', '**/*.js{,on}',
'!node_modules/**', '!{lib,vendor,node_modules}/**'
'!lib/**',
'!vendor/**'
] ]
}, },
banana: { banana: {
all: 'i18n/' all: 'i18n/'
}, },
jsonlint: {
all: [
'**/*.json',
'!node_modules/**',
'!vendor/**'
]
},
stylelint: { stylelint: {
all: [ all: [
'**/*.css', '**/*.css',
@ -33,6 +28,6 @@ module.exports = function ( grunt ) {
} }
} ); } );
grunt.registerTask( 'test', [ 'eslint', 'jsonlint', 'banana', 'stylelint' ] ); grunt.registerTask( 'test', [ 'eslint', 'banana', 'stylelint' ] );
grunt.registerTask( 'default', 'test' ); grunt.registerTask( 'default', 'test' );
}; };

View file

@ -4,11 +4,10 @@
"test": "grunt test" "test": "grunt test"
}, },
"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-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"
} }