2021-08-26 21:47:42 +02:00

23 lines
529 B
JavaScript

'use strict';
module.exports = function (grunt) {
grunt.initConfig({
eslint: {
src: ['lib/*.js', 'lib/**/*.js'],
options: {
configFile: '.eslintrc.json',
},
},
mochaTest: {
src: ['test/test-*.js'],
options: {
reporter: 'dot',
},
},
});
grunt.loadNpmTasks('gruntify-eslint');
grunt.loadNpmTasks('grunt-mocha-test');
grunt.registerTask('test', ['eslint', 'mochaTest']);
};