mediawiki-extensions-TextEx.../Gruntfile.js
Alangi Derick 6f3840db35 Add recent pattern for ESLinting in repo
Use of all: '.' in Gruntfile.js for eslint config and
eslintIgnore in package.json to ignore linting the "vendor/"
directory.

Change-Id: Ic8489351b8de6b7e31a95a55420db1f772f8d535
2018-09-03 15:31:36 +01:00

26 lines
486 B
JavaScript

/* eslint-env node, es6 */
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: {
all: [
'**/*.json',
'!node_modules/**',
'!vendor/**'
]
}
} );
grunt.registerTask( 'test', [ 'jsonlint', 'banana', 'eslint' ] );
grunt.registerTask( 'default', 'test' );
};