-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathGruntfile.js
More file actions
23 lines (20 loc) · 743 Bytes
/
Gruntfile.js
File metadata and controls
23 lines (20 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module.exports = function (grunt) {
grunt.initConfig({
jshint: {
files: ['sonant.js', 'example-songs/4k-synth.js'],
options: {
es3: true, // ie 7 compatibility
eqeqeq: true, // no == or !=
immed: true, // forces () around directly called functions
forin: true, // makes it harder to use for in
latedef: 'nofunc', // makes it impossible to use a variable before it is declared
newcap: true, // force capitalized constructors
strict: true, // enforce strict mode
trailing: true // trailing whitespaces are ugly
}
}
})
grunt.loadNpmTasks('grunt-contrib-jshint')
grunt.registerTask('test', ['jshint'])
grunt.registerTask('default', ['test'])
}