From 4b9fecb6f4225800265411102058ffec5a682a36 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 16 Jul 2018 20:38:31 -0700 Subject: [PATCH] Include node externs and don't warn about semicolons --- emacs/.emacs.d/init/oni-js2-init.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/emacs/.emacs.d/init/oni-js2-init.el b/emacs/.emacs.d/init/oni-js2-init.el index 506a2e5..df2191d 100644 --- a/emacs/.emacs.d/init/oni-js2-init.el +++ b/emacs/.emacs.d/init/oni-js2-init.el @@ -27,7 +27,9 @@ (require 'js2-mode) (require 'js2-refactor) +(setq js2-include-node-externs t) (setq js2-strict-trailing-comma-warning nil) +(setq js2-strict-missing-semi-warning nil) (setq js2-basic-offset 2) (add-hook 'js2-mode-hook 'subword-mode)