Use :editorconfig to set js-switch-indent-offset

Instead of a hook.
This commit is contained in:
Henrik Lissner 2017-06-16 14:20:10 +02:00
parent 78f5306274
commit 9c9e410898
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -12,7 +12,7 @@
#'(flycheck-mode highlight-indentation-mode rainbow-delimiters-mode)) #'(flycheck-mode highlight-indentation-mode rainbow-delimiters-mode))
;; Conform switch-case indentation to editorconfig's config ;; Conform switch-case indentation to editorconfig's config
(add-hook! 'js2-mode-hook (setq js-switch-indent-offset js-indent-level)) (set! :editorconfig :add '(js2-mode js2-basic-offset js-switch-indent-offset))
;; Favor local eslint over global, if available ;; Favor local eslint over global, if available
(defun +javascript|init-flycheck-elint () (defun +javascript|init-flycheck-elint ()