📜  如何阻止 prettier 添加逗号 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:00.129000             🧑  作者: Mango

代码示例1
// 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