elicwhite / ESLint-Formatter

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

local_eslint_path doesn't work #47

Open franciscolourenco opened 7 years ago

franciscolourenco commented 7 years ago

This is my sublime project. .sublime-project

{
  "folders":
  [
    {
      "path": "."
    }
  ],
  "settings": {
    "ESLint-Formatter": {
      "format_on_save": true,
      "config_path": "website/.eslintrc",
      "local_eslint_path": {
        "osx": "website/node_modules/.bin/eslint"
      }
    }
  }
}

I open the project using the project file, not the folder.

local_eslint_path and config_path are supposed to be resolved relative to the project root, however the plugin doesn't seem to resolve correctly since it defaults to defaults.

EDIT: absolute path seems to work for config_path but not for local_eslint_path