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

Change-Id: Ib22e621da6791a713a04a92ebdae8adc22386112
This commit is contained in:
James D. Forrester 2019-05-07 11:06:12 -07:00
parent 74843e2582
commit a2b9eda54b
3 changed files with 12 additions and 16 deletions

1
.gitignore vendored
View file

@ -2,6 +2,7 @@
/node_modules/
/vendor/
/composer.lock
.eslintcache
# Editors
*.kate-swp

View file

@ -4,26 +4,22 @@ module.exports = function ( grunt ) {
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-eslint' );
grunt.loadNpmTasks( 'grunt-jsonlint' );
grunt.initConfig( {
banana: conf.MessagesDirs,
eslint: {
options: {
reportUnusedDisableDirectives: true,
extensions: [ '.js', '.json' ],
cache: true
},
all: [
'**/*.js',
'!node_modules/**',
'!vendor/**'
]
},
jsonlint: {
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,10 +4,9 @@
"test": "grunt test"
},
"devDependencies": {
"eslint-config-wikimedia": "0.9.0",
"grunt": "1.0.3",
"grunt-eslint": "21.0.0",
"eslint-config-wikimedia": "0.12.0",
"grunt": "1.0.4",
"grunt-banana-checker": "0.6.0",
"grunt-jsonlint": "1.1.0"
"grunt-eslint": "21.0.0"
}
}