You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After VSCode got updated to version 1.50.1 Prettier started to conflict with ESLint. There is .eslintrc.js in my project folder and it states that I prefer using single quotes but from the log output of Prettier I see singleQuote": false, it puts double quotes everywhere and it's not the only rule that gets ignored. I believe there is some conflict happening that wasn't here before the update: when I press save all single quotes become double quotes but if I press save again for a split second quotes turn into single quotes and then double quotes again
Everything was working fine before the update so there shouldn't be any problem with configs I think...
Additional information
VS Code Version: 1.50.1
Prettier Extension Version: v5.7.1
OS and version: Windows 10
Prettier Log Output
["INFO" - 03:18:20] Formatting m:\X\myproject\src\main\index.js
["INFO" - 03:18:20] Using ignore file (if present) at m:\X\myproject\.prettierignore
["INFO" - 03:18:20] Using bundled version of prettier.
["INFO" - 03:18:20] File Info:
{
"ignored": false,
"inferredParser": "babel"
}
["INFO" - 03:18:20] No local configuration (i.e. .prettierrc or .editorconfig) detected, falling back to VS Code configuration
["INFO" - 03:18:20] Prettier Options:
{
"arrowParens": "always",
"bracketSpacing": true,
"endOfLine": "lf",
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"jsxBracketSameLine": false,
"jsxSingleQuote": false,
"printWidth": 80,
"proseWrap": "preserve",
"quoteProps": "as-needed",
"requirePragma": false,
"semi": true,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false,
"vueIndentScriptAndStyle": false,
"filepath": "m:\\X\\myproject\\src\\main\\index.js",
"parser": "babel"
}
["INFO" - 03:18:20] Formatting completed in 153.839501ms.
The text was updated successfully, but these errors were encountered:
I've solved this issue just now: apparently I somehow turned on vscode settings line editor. formatOnSave and it was conflicting with a similar line from ESLint config. Now everything is alright!
Summary
After VSCode got updated to version 1.50.1 Prettier started to conflict with ESLint. There is
.eslintrc.js
in my project folder and it states that I prefer using single quotes but from the log output of Prettier I seesingleQuote": false
, it puts double quotes everywhere and it's not the only rule that gets ignored. I believe there is some conflict happening that wasn't here before the update: when I press save all single quotes become double quotes but if I press save again for a split second quotes turn into single quotes and then double quotes againEverything was working fine before the update so there shouldn't be any problem with configs I think...
Additional information
VS Code Version: 1.50.1
Prettier Extension Version: v5.7.1
OS and version: Windows 10
Prettier Log Output
The text was updated successfully, but these errors were encountered: