branch: master
commit 4de0e2d4ba0b66518a0ad9222eca554d7ed4991e
Author: Dmitry Gutov <[email protected]>
Commit: Dmitry Gutov <[email protected]>
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