A lot of projects I work on install eslint as a dev dependency, with a custom set of eslint plugins. Right now, flycheck uses the globally installed version of eslint rather than the version of eslint installed with each project.
I would like to make flycheck point to node_modules/eslint/bin/eslint.js instead. The full path should depend on the path of the current buffer's file so I can be working on multiple projects at the same time with each buffer using a potentially different eslint executable.
Is this possible? Any suggestions for how I would go about doing this?
(and eslint (file-executable-p eslint))
I was encountering errors otherwise trying to, i.e. edit my .emacs file
– Jason Dufair Jun 14 '16 at 15:31"node_modules/.bin/eslint"
, just in case eslint ever changes their directory structure. – Cody Reichert Jun 25 '18 at 03:01