設定emacs外掛flycheck使用jslint eslint

c3tc3tc3t發表於2016-09-01

emacs的flycheck外掛支援使用 jslint 和eslint

 

 

  

(setq flycheck-javascript-eslint-executable   "~/.nvm/versions/node/v6.4.0/bin/eslint")
(setq flycheck-javascript-jshint-executable   "~/.nvm/versions/node/v6.4.0/bin/jshint")
(setq flycheck-javascript-jscs-executable     "~/.nvm/versions/node/v6.4.0/bin/jscs")
(setq flycheck-javascript-standard-executable "~/.nvm/versions/node/v6.4.0/bin/standard")

(setq flycheck-eslintrc "~/.emacs.d/js/eslintrc")
(setq flycheck-jshintrc "~/.emacs.d/js/jshintrc")
(setq flycheck-jscsrc "~/.emacs.d/js/jscsrc")

  

相關文章