2018-12-05 22:02:53 +00:00
|
|
|
/* eslint-env node, es6 */
|
2015-06-20 05:31:17 +00:00
|
|
|
module.exports = function ( grunt ) {
|
2018-12-05 22:02:53 +00:00
|
|
|
var conf = grunt.file.readJSON( 'extension.json' );
|
|
|
|
|
2015-06-20 05:31:17 +00:00
|
|
|
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
2018-12-05 22:02:53 +00:00
|
|
|
grunt.loadNpmTasks( 'grunt-eslint' );
|
2015-06-20 05:31:17 +00:00
|
|
|
|
|
|
|
grunt.initConfig( {
|
|
|
|
banana: conf.MessagesDirs,
|
2018-12-05 22:02:53 +00:00
|
|
|
eslint: {
|
2019-05-07 18:06:12 +00:00
|
|
|
options: {
|
|
|
|
reportUnusedDisableDirectives: true,
|
|
|
|
extensions: [ '.js', '.json' ],
|
|
|
|
cache: true
|
|
|
|
},
|
2017-04-21 15:59:57 +00:00
|
|
|
all: [
|
2019-05-07 18:06:12 +00:00
|
|
|
'**/*.js{,on}',
|
|
|
|
'!{vendor,node_modules}/**'
|
2015-06-20 05:31:17 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
} );
|
|
|
|
|
2019-05-07 18:06:12 +00:00
|
|
|
grunt.registerTask( 'test', [ 'eslint', 'banana' ] );
|
2015-06-20 05:31:17 +00:00
|
|
|
grunt.registerTask( 'default', 'test' );
|
|
|
|
};
|