elicwhite / ESLint-Formatter

Sublime Text 3 Plugin to Autoformat with Eslint
MIT License
139 stars 20 forks source link

eslint command-line options support #74

Closed rosedo closed 4 years ago

rosedo commented 4 years ago

Since ESLint 7.0.0 (very recent) I had to change SublimeLinter configuration to resolve plugins globally.

Example configuration for SublimeLinter: "executable": ["eslint", "--resolve-plugins-relative-to", "%APPDATA%/npm"]

This runs eslint --resolve-plugins-relative-to "%APPDATA%/npm" <file>

On linux it could be eslint --resolve-plugins-relative-to "$(dirname "$(npm root -g)")" or more simply eslint --resolve-plugins-relative-to /usr/lib

I tried to configure ESLint-Formatter but it doesn't accept command-line options.

skeggse commented 4 years ago

Not sure if it's been published, but would this be fixed by #72?

rosedo commented 4 years ago

Yes thanks I forgot to upgrade the ESLint-Formatter package.

"extra_args": ["--resolve-plugins-relative-to", "%APPDATA%/npm"]