eslint: Turn on errors for new-cap rule.

Now the eslint rule "new-cap" is set as: ["error", { "newIsCap": true, "capIsNew": false }]
This commit is contained in:
Yago González 2016-12-04 16:50:32 +00:00 committed by showell
parent aad53443b5
commit e65c42cb5f
2 changed files with 2 additions and 2 deletions

View File

@ -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"],

View File

@ -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;