[gnome-maps/wip/mattiasb/eslint: 5/8] Lint: No debugger



commit 9d10c22d9104e58c15a8008fe8c1816ea710b8a3
Author: Mattias Bengtsson <mattias jc bengtsson gmail com>
Date:   Sat Jan 30 20:49:36 2016 +0100

    Lint: No debugger
    
    Disallow the debugger statement.
    
    From the ESLint documentation:
    
        The debugger statement is used to tell the executing JavaScript
        environment to stop execution and start up a debugger at the current
        point in the code. This has fallen out of favor as a good practice
        with the advent of modern debugging and development tools.
        Production code should definitely not contain debugger, as it will
        cause the browser to stop executing code and open an appropriate
        debugger.
    
    http://eslint.org/docs/rules/no-debugger

 .eslintrc.yaml |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/.eslintrc.yaml b/.eslintrc.yaml
index 758bcb9..6cb27ea 100644
--- a/.eslintrc.yaml
+++ b/.eslintrc.yaml
@@ -14,3 +14,5 @@ rules:
         - 2
     no-constant-condition:
         - 2
+    no-debugger:
+        - 2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]