Switch no-empty eslint rule from warning to error (in .eslintrc)

This commit is contained in:
lonerz 2016-12-05 01:35:14 +00:00
parent 9f68efa47b
commit 025fe9980b
3 changed files with 3 additions and 1 deletions

View File

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

View File

@ -337,4 +337,5 @@ return exports;
try { try {
exports.common = common; exports.common = common;
} catch (e) { } catch (e) {
// continue regardless of error
} }

View File

@ -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) {