emacs - How can I use local .eslintrc in Spacemacs? -


i new spacemacs , follow guides in https://github.com/syl20bnr/spacemacs/tree/master/layers/%2bframeworks/react .

everything works except eslinter not use local .eslintrc .

it works on atom editor, sublime text 3, vscode. don't know why.

can me ?

thanks.

just use projectile(which included in spacemacs) find .eslintrc.

(defun codefalling//reset-eslint-rc ()     (let ((rc-path (if (projectile-project-p)                        (concat (projectile-project-root) ".eslintrc"))))       (if (file-exists-p rc-path)           (progn             (message rc-path)           (setq flycheck-eslintrc rc-path)))))      (add-hook 'flycheck-mode-hook 'codefalling//reset-eslint-rc) 

Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -