-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathgrunt.js
55 lines (52 loc) · 991 Bytes
/
grunt.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
52
53
54
55
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: '<json:package.json>',
lint: {
files: ['grunt.js', 'lib/**/*.js', 'spec/**/*.spec.js']
},
watch: {
files: '<config:lint.files>',
tasks: 'default'
},
jshint: {
options: {
node: true,
es5: true,
curly: true,
debug: false,
devel: false,
eqeqeq: true,
evil: true,
forin: true,
immed: true,
indent: 4,
latedef: true,
lastsemic: true,
maxparams: 5,
maxdepth: 3,
maxcomplexity: 5,
newcap: true,
noarg: true,
noempty: false,
nonew: true,
onevar: false,
plusplus: false,
quotmark: "double",
regexp: true,
undef: true,
unused: true,
smarttabs: true,
sub: true,
strict: false,
trailing: false,
white: false
},
globals: {
exports: true
}
}
});
// Default task.
grunt.registerTask('default', 'lint');
};