-
Notifications
You must be signed in to change notification settings - Fork 135
/
Copy pathcoffeelint.json
137 lines (137 loc) · 3.78 KB
/
coffeelint.json
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
{
"arrow_spacing": {
"level": "error"
},
"braces_spacing": {
"level": "error",
"spaces": 0,
"empty_object_spaces": 0
},
"camel_case_classes": {
"level": "error"
},
"coffeescript_error": {
"level": "error"
},
"colon_assignment_spacing": {
"level": "error",
"spacing": {
"left": 0,
"right": 1
}
},
"cyclomatic_complexity": {
"value": 15,
"level": "warn",
"note": "Good for us to know, but we're sometimes okay with localized complexity when we have good test coverage."
},
"duplicate_key": {
"level": "error"
},
"empty_constructor_needs_parens": {
"level": "ignore",
"note": "We consider this idiomatic: `new NotFoundError`"
},
"ensure_comprehensions": {
"level": "warn",
"note": "TODO: What is this?"
},
"indentation": {
"value": 4,
"level": "error"
},
"line_endings": {
"level": "error",
"value": "unix"
},
"max_line_length": {
"value": 80,
"level": "error",
"limitComments": true
},
"missing_fat_arrows": {
"level": "ignore",
"is_strict": false,
"note": "There are plenty of dynamic `this` cases beyond simple class methods: event handlers, dynamic properties, even Mocha tests."
},
"newlines_after_classes": {
"value": 2,
"level": "warn",
"note": "We prefer this, but it won't be a show-stopper."
},
"no_backticks": {
"level": "error"
},
"no_debugger": {
"level": "error"
},
"no_empty_functions": {
"level": "error"
},
"no_empty_param_list": {
"level": "error"
},
"no_implicit_braces": {
"level": "warn",
"strict": false,
"note": "TODO: This fails on multi-line cases sometimes. https://github.com/clutchski/coffeelint/issues/459"
},
"no_implicit_parens": {
"strict": true,
"level": "ignore",
"note": "This is definitely idiomatic CoffeeScript: `foo a, b, c`"
},
"no_interpolation_in_single_quotes": {
"level": "error"
},
"no_plusplus": {
"level": "ignore",
"note": "We're okay with the use of ++ and --."
},
"no_stand_alone_at": {
"level": "ignore",
"note": "We're okay with standalone @."
},
"no_tabs": {
"level": "error"
},
"no_throwing_strings": {
"level": "error"
},
"no_trailing_semicolons": {
"level": "error"
},
"no_trailing_whitespace": {
"level": "error",
"allowed_in_comments": false,
"allowed_in_empty_lines": false
},
"no_unnecessary_double_quotes": {
"level": "warn",
"note": "We prefer single quotes wherever possible, but this won't be a show-stopper."
},
"no_unnecessary_fat_arrows": {
"level": "ignore",
"note": "We're okay with preemptive uses of fat arrows."
},
"non_empty_constructor_needs_parens": {
"level": "ignore",
"note": "Similar to `no_implicit_parens`, this is definitely idiomatic CoffeeScript: `new Foo a, b, c`"
},
"prefer_english_operator": {
"level": "error",
"doubleNotLevel": "ignore"
},
"space_operators": {
"level": "ignore",
"note": "TODO: We're okay with no spaces for default params (e.g. `opts={}`). Exception being worked on: https://github.com/clutchski/coffeelint/pull/438"
},
"spacing_after_comma": {
"level": "ignore",
"note": "This is definitely idiomatic CoffeeScript: `foo a, b, c`"
},
"transform_messes_up_line_numbers": {
"level": "warn",
"note": "This is just a recommended setting for CoffeeLint."
}
}