so I am following this doc by Wes Bos https://github.com/wesbos/eslint-config-wesbos?tab=readme-ov-file to set up both Eslint and prettier. I also wanted to make it such that the set up automatically helps me reformat my code on save. However, this part of the set up is not working.
After some investigation, I found out that in my settings.json file, where i have
“editor.codeActionsOnSave”: {
“source.fixAll.eslint”: true,
},
“[javascript][javascriptreact][typescript][typescriptreact]”: {
“editor.formatOnSave”: false
},
“eslint.enable”: true,
The part that is not working is ‘true’ in
“source.fixAll.eslint”: true,
as I am getting a ‘Incorrect type. Expected “string” error. I also tried restarting vscode and when i come back, true always gets changed to “explicit”. Does anyone have any idea what’s wrong? Tqs!!!