lang/javascript: major refactor

+ Adds ./node_modules/.bin to exec-path
+ Uses eslint_d globally, if available
+ Always favor local installs of eslint over global eslint or eslint_d

Relevant to #214 #185
This commit is contained in:
Henrik Lissner
2017-10-04 17:49:49 +02:00
parent 3fe9ea2b2e
commit 028fd43d75
2 changed files with 32 additions and 28 deletions

View File

@ -169,7 +169,6 @@
(defun +javascript|init-screeps-mode ()
(when (eq major-mode 'js2-mode)
(cl-pushnew 'javascript-jshint flycheck-disabled-checkers)
(push 'javascript-jshint flycheck-disabled-checkers)
(setq js2-additional-externs (append '("_") screeps-objects screeps-constants))))
(add-hook '+javascript-screeps-mode-hook #'+javascript|init-screeps-mode)