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/
/vendor
composer.lock
.eslintcache

View file

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

View file

@ -4,11 +4,10 @@
"test": "grunt test"
},
"devDependencies": {
"eslint-config-wikimedia": "0.9.0",
"grunt": "1.0.3",
"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"
},
"eslintIgnore": [
"vendor/**"