[Pkg-mozext-commits] [tabmixplus] 27/73: Enable more Eslint rules, no errors

David Prévot taffit at moszumanska.debian.org
Mon May 9 02:30:52 UTC 2016


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

taffit pushed a commit to branch master
in repository tabmixplus.

commit ce0df1bec5630fb8370fafe4df6a88c24c32e3e2
Author: onemen <tabmix.onemen at gmail.com>
Date:   Sun Apr 3 16:48:48 2016 +0300

    Enable more Eslint rules, no errors
---
 .eslintrc.js | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/.eslintrc.js b/.eslintrc.js
index 227165e..b069663 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -33,7 +33,7 @@ module.exports = {
     "no-control-regex": 2,
     "no-debugger": 2,
     "no-delete-var": 2,
-    "no-div-regex": 0,
+    "no-div-regex": 2,
     "no-dupe-class-members": 2,
     "no-dupe-keys": 2,
     "no-dupe-args": 2,
@@ -42,17 +42,17 @@ module.exports = {
     "no-else-return": 2,
     // this show error on catch empty block unless there is a comment
     "no-empty": 0,
-    "no-empty-character-class": 0,
+    "no-empty-character-class": 2,
     "no-empty-function": 0,
-    "no-empty-pattern": 0,
+    "no-empty-pattern": 2,
     "no-eq-null": 2,
     "no-eval": 0,
     "no-ex-assign": 2,
     "no-extend-native": 2,
     "no-extra-bind": 2,
     "no-extra-boolean-cast": 2,
-    "no-extra-label": 0,
-    "no-extra-parens": 0, // TODO need to fix this...
+    "no-extra-label": 2,
+    "no-extra-parens": [2, "functions"], // TODO need to fix this for [2, "all"]
     "no-extra-semi": 2,
     "no-fallthrough": 2,
     "no-floating-decimal": 0,
@@ -104,12 +104,12 @@ module.exports = {
     "no-restricted-syntax": 0,
     "no-return-assign": [2, "except-parens"],
     "no-script-url": 0,
-    "no-self-assign": 0,
+    "no-self-assign": 2,
     "no-self-compare": 2,
     "no-sequences": 2,
     "no-shadow": [2, {"hoist": "all"}],
     "no-shadow-restricted-names": 2,
-    "no-whitespace-before-property": 0,
+    "no-whitespace-before-property": 2,
     "no-spaced-func": 2,
     "no-sparse-arrays": 2,
     // "no-sync": 0, // node
@@ -121,13 +121,13 @@ module.exports = {
     "no-undef": 2,
     "no-undef-init": 2,
     "no-undefined": 0,
-    "no-unexpected-multiline": 0,
+    "no-unexpected-multiline": 2,
     "no-underscore-dangle": 0,
-    "no-unmodified-loop-condition": 0,
+    "no-unmodified-loop-condition": 2,
     "no-unneeded-ternary": 2,
     "no-unreachable": 2,
     "no-unused-expressions": 2,
-    "no-unused-labels": 0,
+    "no-unused-labels": 2,
     "no-unused-vars": [2, {"vars": "all", "args": "after-used"}],
     "no-use-before-define": [2, "nofunc"],
     "no-useless-call": 0,
@@ -140,11 +140,11 @@ module.exports = {
     "no-with": 2,
     "no-magic-numbers": 0,
     "array-bracket-spacing": [2, "never"],
-    "array-callback-return": 0,
+    "array-callback-return": 2,
     "arrow-body-style": 0,
     "arrow-parens": [2, "as-needed"],
     "arrow-spacing": [2, {"before": true, "after": true}],
-    "accessor-pairs": 0,
+    "accessor-pairs": 2,
     "block-scoped-var": 2,
     "block-spacing": 0,
     "brace-style": [2, "1tbs"],
@@ -157,7 +157,7 @@ module.exports = {
     "comma-style": [2, "last"],
     "complexity": [0, 11],
     "consistent-return": 2,
-    "computed-property-spacing": 0,
+    "computed-property-spacing": [2, "never"],
     "consistent-this": [2, "self"],
     "constructor-super": 2,
     // TODO - currently there are more the 1500 errors if we set "curly": 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