2017-10-09 14:29:26 +00:00
|
|
|
/* eslint-env node, es6 */
|
2015-06-20 05:28:08 +00:00
|
|
|
module.exports = function ( grunt ) {
|
|
|
|
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
2017-10-09 14:29:26 +00:00
|
|
|
grunt.loadNpmTasks( 'grunt-eslint' );
|
2015-06-20 05:28:08 +00:00
|
|
|
|
|
|
|
grunt.initConfig( {
|
|
|
|
banana: {
|
|
|
|
all: 'i18n/'
|
|
|
|
},
|
2017-10-09 14:29:26 +00:00
|
|
|
eslint: {
|
2019-05-07 17:52:09 +00:00
|
|
|
options: {
|
|
|
|
reportUnusedDisableDirectives: true,
|
|
|
|
extensions: [ '.js', '.json' ],
|
|
|
|
cache: true
|
|
|
|
},
|
2015-06-20 05:28:08 +00:00
|
|
|
all: [
|
2019-05-07 17:52:09 +00:00
|
|
|
'**/*.js{,on}',
|
|
|
|
'!{vendor,node_modules}/**'
|
2015-06-20 05:28:08 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
} );
|
|
|
|
|
2019-05-07 17:52:09 +00:00
|
|
|
grunt.registerTask( 'test', [ 'eslint', 'banana' ] );
|
2015-06-20 05:28:08 +00:00
|
|
|
grunt.registerTask( 'default', 'test' );
|
|
|
|
};
|