mirror of https://github.com/zulip/zulip.git
Switch no-empty eslint rule from warning to error (in .eslintrc)
This commit is contained in:
parent
9f68efa47b
commit
025fe9980b
|
@ -124,7 +124,7 @@
|
||||||
"no-div-regex": 2,
|
"no-div-regex": 2,
|
||||||
"no-dupe-keys": 2,
|
"no-dupe-keys": 2,
|
||||||
"no-else-return": 2,
|
"no-else-return": 2,
|
||||||
"no-empty": 1,
|
"no-empty": 2,
|
||||||
"no-empty-character-class": 2,
|
"no-empty-character-class": 2,
|
||||||
"no-eq-null": 2,
|
"no-eq-null": 2,
|
||||||
"no-eval": 2,
|
"no-eval": 2,
|
||||||
|
|
|
@ -337,4 +337,5 @@ return exports;
|
||||||
try {
|
try {
|
||||||
exports.common = common;
|
exports.common = common;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
// continue regardless of error
|
||||||
}
|
}
|
||||||
|
|
|
@ -161,6 +161,7 @@ exports.strcmp = (function () {
|
||||||
var collator = new Intl.Collator();
|
var collator = new Intl.Collator();
|
||||||
return collator.compare;
|
return collator.compare;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
// continue regardless of error
|
||||||
}
|
}
|
||||||
|
|
||||||
return function util_strcmp (a, b) {
|
return function util_strcmp (a, b) {
|
||||||
|
|
Loading…
Reference in New Issue