2019-05-06 23:25:17 +00:00
|
|
|
/* eslint-env node, es6 */
|
2015-06-17 19:11:19 +00:00
|
|
|
module.exports = function ( grunt ) {
|
2019-05-06 23:25:17 +00:00
|
|
|
grunt.loadNpmTasks( 'grunt-eslint' );
|
2015-06-17 19:11:19 +00:00
|
|
|
|
|
|
|
grunt.initConfig( {
|
2019-05-06 23:25:17 +00:00
|
|
|
eslint: {
|
2015-07-16 19:12:37 +00:00
|
|
|
options: {
|
2019-05-06 23:25:17 +00:00
|
|
|
cache: true
|
2015-07-16 19:12:37 +00:00
|
|
|
},
|
|
|
|
all: [
|
2019-05-06 23:26:39 +00:00
|
|
|
'**/*.js{,on}',
|
2019-05-06 23:25:17 +00:00
|
|
|
'!{vendor,node_modules}/**'
|
2015-07-16 19:12:37 +00:00
|
|
|
]
|
2015-06-17 19:11:19 +00:00
|
|
|
}
|
|
|
|
} );
|
|
|
|
|
2024-04-10 05:29:33 +00:00
|
|
|
grunt.registerTask( 'test', [ 'eslint' ] );
|
2015-06-17 19:11:19 +00:00
|
|
|
grunt.registerTask( 'default', 'test' );
|
|
|
|
};
|