mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TextExtracts
synced 2024-11-14 19:30:37 +00:00
6f3840db35
Use of all: '.' in Gruntfile.js for eslint config and eslintIgnore in package.json to ignore linting the "vendor/" directory. Change-Id: Ic8489351b8de6b7e31a95a55420db1f772f8d535
26 lines
486 B
JavaScript
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' );
|
|
};
|