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:
Anders Kaseorg
2019-07-25 15:42:49 -07:00
committed by Tim Abbott
parent 13bdc655c9
commit a32663dc85

View File

@@ -155,12 +155,6 @@ js_rules = RuleList(
'description': 'Write JS else statements on same line as }'}, 'description': 'Write JS else statements on same line as }'},
{'pattern': '^else if', {'pattern': '^else if',
'description': 'Write JS else statements on same line as }'}, '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]', {'pattern': 'console[.][a-z]',
'exclude': set(['static/js/blueslip.js', 'exclude': set(['static/js/blueslip.js',
'frontend_tests/zjsunit', 'frontend_tests/zjsunit',