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

Change-Id: I142a8d136b65d26ac148dbe825e542af9c796f5f
This commit is contained in:
James D. Forrester 2019-05-07 10:03:40 -07:00
parent 350af7c5c0
commit 91a0d3b6e9
3 changed files with 12 additions and 16 deletions

1
.gitignore vendored
View file

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

View file

@ -5,26 +5,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: {
reportUnusedDisableDirectives: true,
extensions: [ '.js', '.json' ],
cache: true
},
all: [ all: [
'**/*.js', '**/*.js{,on}',
'!node_modules/**', '!{vendor,node_modules}/**'
'!vendor/**'
]
},
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

@ -4,10 +4,9 @@
"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"
} }
} }