-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcoffeelint.json
140 lines (140 loc) · 3.12 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
138
139
140
{
"max_line_length": {
"value": 160,
"level": "error",
"limitComments": true,
"message":"单行长度过长"
},
"indentation": {
"level": "error",
"value": 2,
"message":"代码缩进不规范"
},
"line_endings": {
"value": "unix",
"level": "error",
"message":"换行符不规范"
},
"arrow_spacing": {
"level": "warn",
"message":"函数标示符前后缺少空格"
},
"camel_case_classes": {
"level": "error",
"message":"camel_case_classes"
},
"coffeescript_error": {
"level": "error",
"message":"coffeescript_error"
},
"colon_assignment_spacing": {
"level": "warn",
"spacing": {
"left": 0,
"right": 1
},
"message":"colon_assignment_spacing"
},
"cyclomatic_complexity": {
"value": 10,
"level": "ignore",
"message":"cyclomatic_complexity"
},
"duplicate_key": {
"level": "error",
"message":"duplicate_key"
},
"empty_constructor_needs_parens": {
"level": "warn",
"message":"调用无参数的构造函数请添加括号"
},
"missing_fat_arrows": {
"level": "ignore",
"message":"missing_fat_arrows"
},
"newlines_after_classes": {
"value": 1,
"level": "warn",
"message":"newlines_after_classes"
},
"no_backticks": {
"level": "error",
"message":"no_backticks"
},
"no_debugger": {
"level": "warn",
"message":"no_debugger"
},
"no_empty_functions": {
"level": "error",
"message":"避免写空函数"
},
"no_empty_param_list": {
"level": "warn",
"message":"no_empty_param_list"
},
"no_implicit_braces": {
"level": "ignore",
"strict": true,
"message":"no_implicit_braces"
},
"no_implicit_parens": {
"strict": true,
"level": "ignore",
"message":"no_implicit_parens"
},
"no_interpolation_in_single_quotes": {
"level": "warn",
"message":"no_interpolation_in_single_quotes"
},
"no_plusplus": {
"level": "ignore",
"message":"no_plusplus"
},
"spacing_after_comma": {
"level": "warn",
"message":"请在逗号后添加空格"
},
"no_stand_alone_at": {
"level": "warn",
"message":"不要单独使用@符号,使用this"
},
"no_tabs": {
"level": "error",
"message":"no_tabs"
},
"no_throwing_strings": {
"level": "error",
"message":"no_throwing_strings"
},
"no_trailing_semicolons": {
"level": "error",
"message":"no_trailing_semicolons"
},
"no_trailing_whitespace": {
"level": "error",
"allowed_in_comments": false,
"allowed_in_empty_lines": true,
"message":"no_trailing_whitespace"
},
"no_unnecessary_double_quotes": {
"level": "warn",
"message":"没必要使用双引号,请使用单引号"
},
"no_unnecessary_fat_arrows": {
"level": "warn",
"message":"no_unnecessary_fat_arrows"
},
"non_empty_constructor_needs_parens": {
"level": "warn",
"message":"调用带参数的构造函数应该添加括号"
},
"prefer_english_operator": {
"level": "ignore",
"message":"prefer_english_operator"
},
"space_operators": {
"level": "warn",
"message":"操作符前后应该添加空格"
}
}