emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] master 4de0e2d 05/22: Don't warn about trailing commas by default


From: Dmitry Gutov
Subject: [elpa] master 4de0e2d 05/22: Don't warn about trailing commas by default
Date: Tue, 19 Feb 2019 06:06:45 -0500 (EST)

branch: master
commit 4de0e2d4ba0b66518a0ad9222eca554d7ed4991e
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    Don't warn about trailing commas by default
    
    #338
---
 NEWS.md     | 4 ++++
 js2-mode.el | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/NEWS.md b/NEWS.md
index d66f25e..efd4e7a 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -1,5 +1,9 @@
 # History of user-visible changes
 
+## Next
+
+* Changed the default of `js2-strict-trailing-comma-warning` to nil.
+
 ## 2018-03-01
 
 * Support single-line JSDocs.
diff --git a/js2-mode.el b/js2-mode.el
index 5dcb2a6..c1b4877 100644
--- a/js2-mode.el
+++ b/js2-mode.el
@@ -290,7 +290,7 @@ even if this flag is non-nil."
   :type 'boolean
   :group 'js2-mode)
 
-(defcustom js2-strict-trailing-comma-warning t
+(defcustom js2-strict-trailing-comma-warning nil
   "Non-nil to warn about trailing commas in array literals.
 Ecma-262-5.1 allows them, but older versions of IE raise an error."
   :type 'boolean



reply via email to

[Prev in Thread] Current Thread [Next in Thread]