2021-02-15 19:27:55 +00:00
|
|
|
/* eslint-env node, es6 */
|
2016-03-24 23:16:34 +00:00
|
|
|
module.exports = function ( grunt ) {
|
2021-02-15 19:27:55 +00:00
|
|
|
grunt.loadNpmTasks( 'grunt-eslint' );
|
2016-03-24 23:16:34 +00:00
|
|
|
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
|
|
|
|
|
|
|
grunt.initConfig( {
|
|
|
|
banana: {
|
|
|
|
all: 'i18n/'
|
|
|
|
},
|
2021-02-15 19:27:55 +00:00
|
|
|
eslint: {
|
|
|
|
options: {
|
|
|
|
cache: true
|
|
|
|
},
|
2016-03-24 23:16:34 +00:00
|
|
|
all: [
|
2021-02-15 19:27:55 +00:00
|
|
|
'**/*.{js,json}',
|
2017-11-03 17:34:06 +00:00
|
|
|
'!node_modules/**',
|
|
|
|
'!vendor/**'
|
2016-03-24 23:16:34 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
} );
|
|
|
|
|
2021-02-15 19:27:55 +00:00
|
|
|
grunt.registerTask( 'test', [ 'eslint', 'banana' ] );
|
2016-03-24 23:16:34 +00:00
|
|
|
grunt.registerTask( 'default', 'test' );
|
|
|
|
};
|