This repository was archived by the owner on Aug 28, 2023. It is now read-only.
forked from occ/TraceKit
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathgrunt.js
59 lines (54 loc) · 1.38 KB
/
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
56
57
58
59
/*global module:false*/
module.exports = function(grunt) {
'use strict';
// Project configuration.
grunt.initConfig({
lint: {
files: ['grunt.js', 'tracekit.js']
},
watch: {
files: '<config:lint.files>',
tasks: 'lint'
},
jshint: {
options: {
// Uncommented are default grunt options
bitwise: true, //Added from site
curly: true,
eqeqeq: true,
immed: true,
latedef: true,
newcap: true,
noarg: true,
noempty: true, //Added from site
nonew: true, //Added
quotmark: 'single', //Added
/* regexp: true, */
undef: true,
unused: true, //Added from site
/* strict: true, //Added from site */
sub: true,
boss: true, //dont' allow assignments to be evaluated as truthy/falsey */
eqnull: true, //Allow == null
browser: true,
/* indent: 4, //Added from site */
devel: true, //Added
white: false,
es5: true,
onecase: true,
//Adding a few of nice restrictions:
trailing: true,
maxparams: 6,
maxdepth: 9,
maxerr: 20
},
globals: {
ActiveXObject: false
}
}
});
// Default task.
grunt.registerTask('default', 'lint watch');
// Travis-CI task.
grunt.registerTask('travis', 'lint');
};