Use :editorconfig to set js-switch-indent-offset
Instead of a hook.
This commit is contained in:
parent
78f5306274
commit
9c9e410898
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@
|
|||
#'(flycheck-mode highlight-indentation-mode rainbow-delimiters-mode))
|
||||
|
||||
;; 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
|
||||
(defun +javascript|init-flycheck-elint ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue