UNPKG

581 BJavaScriptView Raw
1'use strict';
2
3/* globals module */
4
5module.exports = function(grunt) {
6 // configure project
7 grunt.initConfig({
8 // make node configurations available
9 pkg: grunt.file.readJSON('package.json'),
10 eslint: {
11 options: {
12 configFile: '.eslintrc'
13 },
14 target: ['src/**/*.js', 'main.js']
15 },
16 githooks: {
17 all: {
18 'pre-commit': 'eslint'
19 }
20 }
21 });
22 // enable plugins
23 grunt.loadNpmTasks('grunt-eslint');
24
25 // set default tasks to run when grunt is called without parameters
26 grunt.registerTask('default', ['eslint']);
27};