mirror of https://github.com/zulip/zulip.git
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:
parent
aad53443b5
commit
e65c42cb5f
|
@ -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"],
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue