[Pkg-javascript-commits] [node-mocks-http] 127/296: updated eslint rules

Thorsten Alteholz alteholz at moszumanska.debian.org
Mon Feb 8 18:13:28 UTC 2016


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

alteholz pushed a commit to branch master
in repository node-mocks-http.

commit b53ba28d3639b6f7113a93f0fdded3462981288b
Author: Johnny Estilles <johnny.estilles at agentia.asia>
Date:   Sat Mar 21 00:35:26 2015 +0800

    updated eslint rules
---
 .eslintrc | 32 +++++++++-----------------------
 1 file changed, 9 insertions(+), 23 deletions(-)

diff --git a/.eslintrc b/.eslintrc
index a2dfe06..44649f5 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -4,13 +4,11 @@
     },
 
     "rules": {
+        "comma-dangle": 2,
         "no-alert": 2,
         "no-array-constructor": 2,
         "no-caller": 2,
-        "no-bitwise": 0,
         "no-catch-shadow": 2,
-        "no-console": 0, // 2
-        "no-comma-dangle": 2,
         "no-control-regex": 2,
         "no-debugger": 2,
         "no-div-regex": 2,
@@ -38,15 +36,12 @@
         "no-new": 2,
         "no-new-func": 2,
         "no-native-reassign": 2,
-        "no-plusplus": 0,
         "no-delete-var": 2,
         "no-return-assign": 2,
         "no-new-object": 2,
         "no-label-var": 2,
-        "no-ternary": 0,
         "no-self-compare": 2,
         "no-sync": 2,
-        "no-underscore-dangle": 0, // 2
         "no-loop-func": 2,
         "no-empty-label": 2,
         "no-unused-vars": 1,
@@ -56,35 +51,26 @@
         "no-mixed-requires": [0, false],
         "no-wrap-func": 2,
         "no-shadow": 2,
-        "no-use-before-define": 0,
+        "no-use-before-define": 2,
         "no-redeclare": 2,
         "no-regex-spaces": 2,
+        "no-mixed-spaces-and-tabs": 2,
+        "no-underscore-dangle": 0,
 
-        "brace-style": 0,
-        "block-scoped-var": 0,
+        "brace-style": 2,
         "camelcase": 2,
-        "complexity": [0, 11],
-        "consistent-this": [0, "that"],
+        "consistent-this": [2, "self"],
         "curly": 2,
         "dot-notation": 2,
         "eqeqeq": 2,
-        "guard-for-in": 0,
-        "max-depth": [0, 4],
-        "max-len": [0, 80, 4],
-        "max-params": [0, 3],
-        "max-statements": [0, 10],
         "new-cap": 2,
         "new-parens": 2,
-        "one-var": 0,
         "quotes": [2, "single"],
-        "quote-props": 0,
-        "radix": 0,
         "semi": 2,
-        "strict": 2,
-        "unnecessary-strict": 0,
+        "strict": [2, "global"],
         "use-isnan": 2,
-        "valid-typeof": 0,
+        "valid-typeof": 2,
         "wrap-iife": 2,
-        "wrap-regex": 0
+        "indent": [2, 4, {indentSwitchCase: true}]
     }
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-mocks-http.git



More information about the Pkg-javascript-commits mailing list