[Pkg-mozext-commits] [tabmixplus] 19/147: Apply Eslint 'no-empty' rule with {"allowEmptyCatch": true} option

David Prévot taffit at moszumanska.debian.org
Sat Aug 5 15:27:32 UTC 2017


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository tabmixplus.

commit aa5a00e5c94454075219da3d523856386fcb8182
Author: onemen <tabmix.onemen at gmail.com>
Date:   Sun Oct 30 01:12:11 2016 +0300

    Apply Eslint 'no-empty' rule with {"allowEmptyCatch": true} option
---
 .eslintrc.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/.eslintrc.js b/.eslintrc.js
index 7cf2a77..c3039b5 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -40,8 +40,7 @@ module.exports = {
     "no-duplicate-case": 2,
     "no-duplicate-imports": [2, {"includeExports": true}],
     "no-else-return": 2,
-    // this show error on catch empty block unless there is a comment
-    "no-empty": 0,
+    "no-empty": [2, {"allowEmptyCatch": true}],
     "no-empty-character-class": 2,
     "no-empty-function": 0,
     "no-empty-pattern": 2,

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git



More information about the Pkg-mozext-commits mailing list