-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
autoFixOnSave not working! #83
Comments
I experienced the same thing - autofix on save not working. |
This one actually works: https://github.com/numso/prettier-standard-vscode |
@feross does the core team still maintain this plugin? It doesn't look like it has been touched in months and this issue has not received any acknowledgement. |
Hi everyone, I'm not a user of Visual Studio Code so I don't know where to start to fix this, but if one of you wants to dig in and send a pull request, I'll be happy to merge it. (I'm not currently checking GitHub notifications regularly because I'm in graduate school so please email me if I don't see the PR) |
+1 for autofix on save not working on VSCode... |
升级版本后不管用了,目前版本vs版本:1.35 |
This issue is still open if someone wants to tackle it ;) |
I suspect no one commenting on this issue knows the code well enough to work on it. Personally, I don't have the time and I don't write TypeScript. |
I have since switched to Sublime, the packages seem to be of a higher quality overall for Sublime and the editor is way snappier as well. |
The only thing that worked for me was using regular ESLint, and just use the standard config for that. "javascript.validate.enable": false,
"typescript.format.enable": false,
"vetur.validation.style": false,
"vetur.validation.template": false,
"editor.insertSpaces": true,
"editor.tabSize": 2,
"editor.formatOnSave": false,
"eslint.autoFixOnSave": true,
"eslint.validate": [
"javascript",
"javascriptreact",
{
"language": "vue",
"autoFix": true
},
], that was the only setup that worked for me which actually auto fixes my formatting on save! I believe if this package ever works, it might make the setup easier & usable without requiring an eslint setup? |
Doesn't seem to do anything at all for me. No warnings, errors or auto fixing. |
@wouterds did you install the plugins? You'll need the |
Hi. If you use VSCode, you should check the following steps:
|
Building on @mesqueeb's suggestion, this is what I did to get this working:
|
Further follow-up: It seems all that is required for step 3 is |
I am not sure if anybody has tried this in 2020 yet, but I recently installed VSCode and started a Vue project, using eslint & prettier. I have the eslint extension for vscode, eslint install globally ( I used:
I didn't need to close & re-open. Hopefully that helps out. My VS code version is pretty new also. |
For me, I have solved it exactly by the following configs: "eslint.validate": [
{
"language": "vue", // Whatever language you are using
"autoFix": true // This is vital, because the autofixing won't work without this even if you have the right settings below
}
],
// https://github.com/microsoft/vscode-eslint/issues/600#issuecomment-469211948
"eslint.autoFixOnSave": true,
"files.autoSave": "off", // no fix on save with auto save on :-) |
Looks like right now adding only this:
solves the issue |
|
this works for me installing the |
Same here. I can use |
I haven't had any luck getting this plugin to do anything tangible on typescript code. This is running the latest version of the plugin and vscode as of this comment. |
Pretty late but just in case... I got the same issue, this was my solution: In your settings.json of VSCode:
Put this:
PLUS: This could be unnecessary but its pretty helpful: |
Make sure in your
instead, simply use:
Having them both enabled on save will conflict with one another, preventing the auto-fix to work after you save the file. So, just set the auto-fix |
That was it for me, thank you! Auto fixing works for me with only this in my {
"standard.enable": true,
"standard.autoFixOnSave": true,
} |
StandardJS version? 12.0.1
VSCode version? 1.32.1
StandardJS configuration?
What do you have in the
OUTPUT
panel?The text was updated successfully, but these errors were encountered: