From e65c42cb5ff1926cee9a3ecc586827ecb0756285 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yago=20Gonz=C3=A1lez?= Date: Sun, 4 Dec 2016 16:50:32 +0000 Subject: [PATCH] eslint: Turn on errors for new-cap rule. Now the eslint rule "new-cap" is set as: ["error", { "newIsCap": true, "capIsNew": false }] --- .eslintrc.json | 2 +- static/js/stream_data.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 0237a827cc..5548d3d577 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -205,7 +205,7 @@ }], "max-params": [0, 3], "max-statements": [0, 10], - "new-cap": 1, + "new-cap": ["error", { "newIsCap": true, "capIsNew": false }], "new-parens": 2, "one-var": ["error", "never"], "quotes": [1, "single"], diff --git a/static/js/stream_data.js b/static/js/stream_data.js index e16ae2bbea..b2108738ae 100644 --- a/static/js/stream_data.js +++ b/static/js/stream_data.js @@ -368,7 +368,7 @@ exports.get_recent_topics = function (stream_name) { exports.populate_stream_topics_for_tests = function (stream_map) { // This is only used by tests. - recent_topics = new Dict.from(stream_map, {fold_case: true}); + recent_topics = Dict.from(stream_map, {fold_case: true}); }; return exports;