Answers for "how to stop prettier from adding commas"

0

how to stop prettier from adding commas

// method 1: 
// at root of the project create .prettierrc.json file and add following code 
// and restart vscode

{
    "trailingComma": "none"
}

// method 2:
// you can also try adding following code in settings.json file 
"prettier.trailingComma": "none"
// but this didn't work for me
Posted by: Guest on July-06-2021

Code answers related to "how to stop prettier from adding commas"

Browse Popular Code Answers by Language