Ale: Global eslint_d

Created on 14 Dec 2017  路  1Comment  路  Source: dense-analysis/ale

Hey 馃憢

Thanks for an awesome project! I'm curious about eslint_d and the options defined here https://github.com/w0rp/ale/blob/71d34fc0c6eba0935b97a8d9dc5fd29c432be452/autoload/ale/handlers/eslint.vim#L6-L10. It seems to me that

  • javascript_eslint_use_global
  • javascript_eslint_executable

are never referenced and per https://github.com/w0rp/ale/blob/71d34fc0c6eba0935b97a8d9dc5fd29c432be452/autoload/ale/handlers/eslint.vim#L32-L38 it seems that using a global eslint_d is not possible even though the above options would lead one to believe it is.

Is it possible to use a global eslint_d or does it have to be installed as a dev dependency?

Most helpful comment

You need to use the following settings.

let g:ale_javascript_eslint_use_global = 1
let g:ale_javascript_eslint_executable = 'eslint_d'

Though I recommend installing eslint_d in node_modules instead, so you can use different versions for different projects.

>All comments

You need to use the following settings.

let g:ale_javascript_eslint_use_global = 1
let g:ale_javascript_eslint_executable = 'eslint_d'

Though I recommend installing eslint_d in node_modules instead, so you can use different versions for different projects.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

garand picture garand  路  4Comments

kronos29296 picture kronos29296  路  4Comments

alexlafroscia picture alexlafroscia  路  4Comments

ianchanning picture ianchanning  路  3Comments

trevordmiller picture trevordmiller  路  3Comments