-
Notifications
You must be signed in to change notification settings - Fork 3
/
gruntfile.js
51 lines (45 loc) · 1000 Bytes
/
gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*global module*/
var md = module.require('matchdep');
module.exports = function (grunt) {
'use strict';
grunt.initConfig({
jshint: {
files: ['gruntfile.js', 'tests/*.js', 'tasks/*.js'],
//force: true,
options: {
bitwise: false,
camelcase: false,
curly: true,
eqeqeq: false, // allow ==
forin: true,
//freeze: true,
immed: false, //
latedef: true, // late definition
newcap: false, // capitalize ctos
noempty: true,
noarg: true,
plusplus: false,
quotmark: 'single',
undef: true,
maxparams: 5,
maxdepth: 5,
maxstatements: 30,
maxlen: 100,
maxcomplexity: 10,
// env
node: true,
// relax options
esnext: true,
regexp: true,
strict: true,
trailing: false,
sub: true, // [] notation
smarttabs: true,
lastsemic: false, // enforce semicolons
white: true
}
}
});
md.filterDev('grunt-*').forEach(grunt.loadNpmTasks);
grunt.registerTask('default', ['jshint']);
};