[gnome-maps/wip/refactor2: 7/9] JSHint: Allow unsafe lineendings



commit 71859aac6e76fbc591a09b78645a29eb0db11843
Author: Mattias Bengtsson <mattias jc bengtsson gmail com>
Date:   Mon Oct 13 21:24:37 2014 +0200

    JSHint: Allow unsafe lineendings
    
    This is meant as a way to protect oneself from beeing bitten by
    JavaScripts Automatic Semicolon Insertion.
    
    Since this is already covered by the "asi" option in JSHint and it
    warns on existing code with operators first we'll relax this check.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=699967

 .jshintrc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/.jshintrc b/.jshintrc
index 6d9b7cc..bb1cdff 100644
--- a/.jshintrc
+++ b/.jshintrc
@@ -44,7 +44,7 @@
     "globalstrict"  : false,     // true: Allow global "use strict" (also enables 'strict')
     "iterator"      : false,     // true: Tolerate using the `__iterator__` property
     "lastsemic"     : false,     // true: Tolerate omitting a semicolon for the last statement of a 1-line 
block
-    "laxbreak"      : false,     // true: Tolerate possibly unsafe line breakings
+    "laxbreak"      : true,      // true: Tolerate possibly unsafe line breakings
     "laxcomma"      : false,     // true: Tolerate comma-first style coding
     "loopfunc"      : false,     // true: Tolerate functions being defined in loops
     "multistr"      : true,      // true: Tolerate multi-line strings


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