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

Change-Id: Ie5c456ce74674194fd10b3e05a283f32bac60f2f
This commit is contained in:
James D. Forrester
2019-05-07 11:18:09 -07:00
parent 96f3515eef
commit be400fe751
2 changed files with 10 additions and 13 deletions

View File

@@ -4,7 +4,6 @@ module.exports = function ( grunt ) {
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-eslint' );
grunt.loadNpmTasks( 'grunt-jsonlint' );
grunt.loadNpmTasks( 'grunt-stylelint' );
grunt.loadNpmTasks( 'grunt-svgmin' );
@@ -12,9 +11,15 @@ module.exports = function ( grunt ) {
eslint: {
options: {
reportUnusedDisableDirectives: true,
extensions: [ '.js', '.json' ],
cache: true
},
all: '.'
all: [
'**/*.js{,on}',
'!lib/**',
'!resources/js/ext.uls.webfonts.repository.js',
'!{vendor,node_modules}/**'
]
},
stylelint: {
options: {
@@ -28,13 +33,6 @@ module.exports = function ( grunt ) {
'!vendor/**'
]
},
jsonlint: {
all: [
'**/*.json',
'!node_modules/**',
'!vendor/**'
]
},
banana: conf.MessagesDirs,
// SVG Optimization
svgmin: {
@@ -75,6 +73,6 @@ module.exports = function ( grunt ) {
} );
grunt.registerTask( 'minify', 'svgmin' );
grunt.registerTask( 'test', [ 'eslint', 'stylelint', 'jsonlint', 'banana' ] );
grunt.registerTask( 'test', [ 'eslint', 'stylelint', 'banana' ] );
grunt.registerTask( 'default', [ 'minify', 'test' ] );
};

View File

@@ -4,11 +4,10 @@
"test": "grunt test"
},
"devDependencies": {
"eslint-config-wikimedia": "0.11.0",
"grunt": "^1.0.4",
"eslint-config-wikimedia": "0.12.0",
"grunt": "1.0.4",
"grunt-banana-checker": "0.7.0",
"grunt-eslint": "21.0.0",
"grunt-jsonlint": "1.1.0",
"grunt-stylelint": "0.10.1",
"grunt-svgmin": "5.0.0",
"stylelint-config-wikimedia": "0.5.0"