mirror of https://github.com/zulip/zulip.git
lint: Check for space after if in javascript.
This commit is contained in:
parent
eba0d6339f
commit
0c1b5006f7
|
@ -147,6 +147,8 @@ js_rules = [
|
||||||
'description': 'Missing whitespace after "="'},
|
'description': 'Missing whitespace after "="'},
|
||||||
{'pattern': '^[ ]*//[A-Za-z0-9]',
|
{'pattern': '^[ ]*//[A-Za-z0-9]',
|
||||||
'description': 'Missing space after // in comment'},
|
'description': 'Missing space after // in comment'},
|
||||||
|
{'pattern': 'if[(]',
|
||||||
|
'description': 'Missing space between if and ('},
|
||||||
{'pattern': 'else{$',
|
{'pattern': 'else{$',
|
||||||
'description': 'Missing space between else and {'},
|
'description': 'Missing space between else and {'},
|
||||||
] + whitespace_rules
|
] + whitespace_rules
|
||||||
|
|
Loading…
Reference in New Issue