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

Change-Id: I764c24fcd33a1732bb228fd68cde919f8bd5273e
This commit is contained in:
James D. Forrester 2019-05-07 10:52:09 -07:00
parent 8de415c4fd
commit f2cbf77787
3 changed files with 12 additions and 12 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
node_modules/ node_modules/
/vendor /vendor
composer.lock composer.lock
.eslintcache

View file

@ -2,24 +2,24 @@
module.exports = function ( grunt ) { 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: { banana: {
all: 'i18n/' all: 'i18n/'
}, },
eslint: { eslint: {
all: '.' options: {
}, reportUnusedDisableDirectives: true,
jsonlint: { extensions: [ '.js', '.json' ],
cache: true
},
all: [ all: [
'**/*.json', '**/*.js{,on}',
'!node_modules/**', '!{vendor,node_modules}/**'
'!vendor/**'
] ]
} }
} ); } );
grunt.registerTask( 'test', [ 'jsonlint', 'banana', 'eslint' ] ); grunt.registerTask( 'test', [ 'eslint', 'banana' ] );
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.9.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"
}, },
"eslintIgnore": [ "eslintIgnore": [
"vendor/**" "vendor/**"