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/ /node_modules/
/vendor/ /vendor/
/composer.lock /composer.lock
.eslintcache
# Editors # Editors
*.kate-swp *.kate-swp

View file

@ -4,26 +4,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: {
all: [ options: {
'**/*.js', reportUnusedDisableDirectives: true,
'!node_modules/**', extensions: [ '.js', '.json' ],
'!vendor/**' cache: true
]
}, },
jsonlint: {
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,10 +4,9 @@
"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-eslint": "21.0.0",
"grunt-banana-checker": "0.6.0", "grunt-banana-checker": "0.6.0",
"grunt-jsonlint": "1.1.0" "grunt-eslint": "21.0.0"
} }
} }