SublimeText EsLint issues- cannot be located

41 views Asked by At

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

1

There are 1 answers

0
Ycon On

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"
            }
        }
    }
}