Saving in sequence gives different output
See original GitHub issueIm having issues using autosave for vue files. Im not quite sure if this is a bug or a feature.
So, given Im using prettier over a vue files, I get different output each time I hit the save key (without changes).
Here is a small video to demonstrate my issue:
On the video, Im saving three times till I get a “stable” output. When using prettier-eslint-cli I get a final nice output.
Im wondering if this a limit of one on the iterations over the code or an issue with vscode integration.
This is my settings.json on vscode:
{
"editor.formatOnSave": false,
"javascript.format.enable": false,
"eslint.autoFixOnSave": true,
"eslint.alwaysShowStatus": true,
"eslint.options": {
"extensions": [ ".html", ".js", ".vue", ".jsx" ]
},
"eslint.validate": [
{ "language": "html", "autoFix": true },
{ "language": "vue", "autoFix": true },
{ "language": "javascript", "autoFix": true },
{ "language": "javascriptreact", "autoFix": true }
],
"prettier.eslintIntegration": true,
"vetur.format.defaultFormatter.js": "prettier",
"vetur.format.defaultFormatter.css": "prettier"
}
I have prettier vscode extension installed and enabled, along with eslint vscode extension.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
How to save in a sequence of files each output of a "for" loop
I am running a script that includes a "for" loop to manupulate these files and I want each time the output is saved...
Read more >Storing values from multiple for loop sequence iterations in r
To store values from a loop, you first need to initialize your object, then you can add values one at a time by...
Read more >Sequence Input/Output — test test documentation - Biopython
SeqIO.parse() function returns an iterator which gives SeqRecord objects. ... case to consider is when your sequence files have multiple records, ...
Read more >Loading and Saving Your Data | Spark Tutorial - Intellipaat
Spark supports multiple input and output sources to save the file. ... Sequence Files, Object Files, and Hadoop Input and Output Formats.
Read more >Sequence function in Power Apps - Microsoft Learn
The Sequence function generates a single column table of sequential ... ForAll can also be used to transform the value into other data...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You have
"eslint.autoFixOnSave": true,
and"editor.formatOnSave": false,
so prettier and eslint are fighting to be the first. Use one of them on the correct files, not both.This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.