mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
lint: Do not forbid ES6 const.
Our pipeline was upgraded in commit
f54a63e2f9 (#12838).
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
13bdc655c9
commit
a32663dc85
@@ -155,12 +155,6 @@ js_rules = RuleList(
|
||||
'description': 'Write JS else statements on same line as }'},
|
||||
{'pattern': '^else if',
|
||||
'description': 'Write JS else statements on same line as }'},
|
||||
{'pattern': r'const\s',
|
||||
'exclude': set(['frontend_tests/zjsunit',
|
||||
'frontend_tests/node_tests',
|
||||
'static/js/portico',
|
||||
'tools/']),
|
||||
'description': 'Avoid ES6 constructs until we upgrade our pipeline.'},
|
||||
{'pattern': 'console[.][a-z]',
|
||||
'exclude': set(['static/js/blueslip.js',
|
||||
'frontend_tests/zjsunit',
|
||||
|
||||
Reference in New Issue
Block a user