-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.coffee
52 lines (49 loc) · 1.33 KB
/
Gruntfile.coffee
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
module.exports = (grunt) ->
grunt.initConfig
coffeelint:
app:
src: [
'bin/**/*.coffee',
'*.coffee',
'routes/**/*.coffee',
'test/**/*.coffee',
'data/**/*.coffee'
]
options:
arrow_spacing:
level: 'error'
colon_assignment_spacing:
level: 'error'
spacing:
left: 0
right: 1
empty_constructor_needs_parens:
level: 'error'
line_endings:
level: 'error'
max_line_length:
level: 'warn'
no_empty_functions:
level: 'error'
no_empty_param_list:
level: 'error'
no_unnecessary_double_quotes:
level: 'error'
no_unnecessary_fat_arrows:
level: 'error'
prefer_english_operator:
level: 'error'
non_empty_constructor_needs_parens:
level: 'error'
space_operators:
level: 'error'
mochaTest:
app:
src: ['test/**/*.coffee']
options:
reporter: 'spec'
require: 'coffee-script/register'
timeout: 60000
grunt.loadNpmTasks 'grunt-coffeelint'
grunt.loadNpmTasks 'grunt-mocha-test'
grunt.registerTask 'default', ['coffeelint', 'mochaTest']