[gnome-maps/wip/refactor2: 7/7] JSHint: Allow unsafe lineendings
- From: Mattias Bengtsson <mattiasb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/refactor2: 7/7] JSHint: Allow unsafe lineendings
- Date: Mon, 13 Oct 2014 19:36:50 +0000 (UTC)
commit 3629fa1ecb9736798042767e4c3e79e90b265d9e
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.
.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]