3 (global-flycheck-mode 1)
5 (setq-default flycheck-disabled-checkers '(emacs-lisp-checkdoc))
7 (setq flycheck-emacs-lisp-load-path 'inherit)
9 (add-hook 'flycheck-mode-hook #'my/use-eslint-from-node-modules)
11 (setq flycheck-indication-mode 'right-fringe)
13 (define-fringe-bitmap 'flycheck-fringe-bitmap-double-arrow
32 (defun my/use-eslint-from-node-modules ()
33 (let* ((root (locate-dominating-file
34 (or (buffer-file-name) default-directory)
37 (expand-file-name "node_modules/.bin/eslint" root))))
38 (when (and eslint (file-executable-p eslint))
39 (setq-local flycheck-javascript-eslint-executable eslint))))