Open jerrychen1013 opened 7 years ago
@jerrychen1013 I believe you'll need to add the following to your ESLint-Formatter.sublime-settings - User
file (accessed by Sublime Text > Preferences > Package Settings > ESLintFormatter > Settings menu)
"format_on_save": true
"format_on_save_extensions": [
"js",
"jsx",
"es",
"es6",
"babel",
"vue"
]
I did this and I can see in the console that EsLint is being run... but my file is not being formatted. It formats standard js files fine.. but not vue single file components.
If I run EsLint on the file from the command line it points out the errors just fine, but EsLint-Formatter doesn't apply the format to fix those issues.
Could this be due to #71?
v2.3.1 is installed, after setting config: "format_on_save: true", it would only pop out Linter warning and not fixed. But if using hot key, it works perfectly.
My env: OS: Sierra 10.12 Sublime Text 3
Below is the debug message:
I still can not find out the reason. Has any idea? Thank you