Closed craigcosmo closed 6 years ago
To use a globally installed eslint_d, your user settings should be:
{
"local_eslint_path": {
"osx": "node_modules/.bin/eslint_d"
},
"eslint_path": {
"osx": "/usr/local/bin/eslint_d"
},
"format_on_save": false
}
By default, ESLint Formatter looks for the regular eslint, not eslint_d (in /usr/local/bin/eslint
– line 25 in the left side panel). "local_eslint_path"
applies only if you install eslint_d locally to your project (npm install eslint_d
)
Thanks for that answer @cristianl.
I believe this is also mentioned in the README: https://github.com/TheSavior/ESLint-Formatter#performance
If the readme isn't clear about how to set this up, I'd be happy to accept a PR adding more information.
Hi,
I installed
eslint_d
package in sublime. And thennpm i -g eslint_d
in terminalAnd the set up this config in sublime
then try to format lint and I got this error