nvm
does not play nicely with eslint/sublime. I tirelessly tried to configure this with different paths/plugins.
Various errors come out- such as .bin/eslint: line 2: sed: command not found
, eslint cannot locate 'eslint'
and more
nvm
does not play nicely with eslint/sublime. I tirelessly tried to configure this with different paths/plugins.
Various errors come out- such as .bin/eslint: line 2: sed: command not found
, eslint cannot locate 'eslint'
and more
My solution?
Make sure to install both SublimeLinter
and SublimeLinter-eslint
As your node package manager, use volta
. Run npm install -g eslint
and voilia!
Your config should look like this:
{
"linters": {
"eslint": {
"disable": false,
"args": ["--env=es6"],
"env": {
"PATH": "/Users/[USER_NAME]/.volta/tools/image/node/18.16.0/bin"
}
}
}
}