You can update .prettierrc.json and set option trailingComma to none like:

{
  "trailingComma" : "none",
  ...
}
Answer from Zuckerberg on Stack Overflow
🌐
Prettier
prettier.io › docs › options
Options · Prettier
Prettier ships with a handful of format options · To learn more about Prettier’s stance on options – see the Option Philosophy
Discussions

Trailing Commas - Yea or Nay?
I really like it because it's easier to sort elements by moving lines (you won't get that error that says that you're missing a comma), but whatever Prettier defines in the project is fine. More on reddit.com
🌐 r/typescript
42
36
October 6, 2021
prettier.trailingComma: es5 removed on save
Issue Type: Bug I'm attempting to have prettier format my file with the es5 setting on the trailingComma. I do not recall changing any of my settings and this alway worked before, but I cannot ... More on github.com
🌐 github.com
7
April 13, 2020
Trailing-comma "all" stopped working
This setting stopped working for me suddenly. These things I tried: set "prettier.trailingComma": "all" in user settings set "prettier.trailingComma": "all" ... More on github.com
🌐 github.com
4
July 3, 2018
Trailing comma automatically inserted in JSON files
What happened? I’ve been editing JSON files, and have found that when I save the file, it is automatically formatted (which is great!). However the issue is that the formatting adds a comma to the final entry, which is invalid. I.e. trying to load the JSON file in a program crashes. More on discourse.doomemacs.org
🌐 discourse.doomemacs.org
0
0
December 17, 2022
🌐
GitHub
github.com › prettier › prettier › issues › 9369
A discussion on changing the default value for trailingComma in Prettier 3.0 and/or TypeScript · Issue #9369 · prettier/prettier
October 11, 2020 - In the Prettier 2.0 release notes blog post, Georgii Dolzhykov explains how Prettier decided to change the default value for the trailingComma option from none to es5.
Author   Zamiell
🌐
Prettier
prettier.io › docs › configuration
Configuration File · Prettier
NODE_OPTIONS="--experimental-strip-types" prettier . --write · JSON: { "trailingComma": "es5", "tabWidth": 4, "semi": false, "singleQuote": true } JS (ES Modules): // prettier.config.js, .prettierrc.js, prettier.config.mjs, or .prettierrc.mjs /** * @see https://prettier.io/docs/configuration * @type {import("prettier").Config} */ const config = { trailingComma: "es5", tabWidth: 4, semi: false, singleQuote: true, }; export default config; JS (CommonJS): // prettier.config.js, .prettierrc.js, prettier.config.cjs, or .prettierrc.cjs /** * @see https://prettier.io/docs/configuration * @type {impo
🌐
GitHub
github.com › prettier › prettier-vscode › issues › 1323
prettier.trailingComma: es5 removed on save · Issue #1323 · prettier/prettier-vscode
April 13, 2020 - Issue Type: Bug I'm attempting to have prettier format my file with the es5 setting on the trailingComma. I do not recall changing any of my settings and this alway worked before, but I cannot tell if it's a problem with the extension or...
Author   chrisbeaver
Find elsewhere
🌐
GitHub
github.com › prettier › prettier-vscode › issues › 509
Trailing-comma "all" stopped working · Issue #509 · prettier/prettier-vscode
July 3, 2018 - This setting stopped working for me suddenly. These things I tried: set "prettier.trailingComma": "all" in user settings set "prettier.trailingComma": "all" ...
Author   valimaggi
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Trailing_commas
Trailing commas - JavaScript | MDN
July 8, 2025 - Trailing commas (sometimes called "final commas") can be useful when adding new elements, parameters, or properties to JavaScript code. If you want to add a new property, you can add a new line without modifying the previously last line if that line already uses a trailing comma.
🌐
Doom Emacs Discourse
discourse.doomemacs.org › user support
Trailing comma automatically inserted in JSON files - User Support - Doom Emacs Discourse
December 17, 2022 - What happened? I’ve been editing JSON files, and have found that when I save the file, it is automatically formatted (which is great!). However the issue is that the formatting adds a comma to the final entry, which is invalid. I.e. trying to load the JSON file in a program crashes.
🌐
DEV Community
dev.to › akinghill › start-using-prettier-the-right-way-59kg
Start Using Prettier The Right Way - DEV Community
February 19, 2021 - This file will contain all of the rules we want Prettier to follow in this project. For those that want to have pretty code without knowing why, just paste the code in your new file. { "trailingComma": "es5", "tabWidth": 2, "semi": true, "singleQuote": true, "jsxSingleQuote": true }
🌐
Prettier
prettier.io › blog › 2023 › 07 › 05 › 3.0.0.html
Prettier 3.0: Hello, ECMAScript Modules! · Prettier
July 5, 2023 - Internet Explorer, the last browser ... to all. If the old behavior is still preferred, please configure Prettier with { "trailingComma": "es5" }....
🌐
GitHub
github.com › prettier › prettier-vscode › issues › 1687
Prettier putting trailing commas in the end of object definitions. · Issue #1687 · prettier/prettier-vscode
December 8, 2020 - and added this code below to my .prettierrc file in the root folder · { "printWidth": 120, "trailingComma": "none" } Prettier is still adding comma in the end of properties, single functions and so on.
Author   furkangercek
🌐
GitLab
gitlab.com › gitlab.org › gitlab foss › #44589
Problem with prettier setting trailingComma: all (#44589) · Issues · GitLab.org / GitLab FOSS · GitLab
One problem we have with the prettier setting `trailingComma: "all"`, is that build scripts like the webpack config or the new `scripts/frontend/prettier.js` will [break on node < 8](https://prettier.io/docs/en/options.html#trailing-commas), because it adds trailing commas to function parameters.
🌐
Benpickles
benpickles.com › articles › 80-my-prettier-preferences-and-why
My Prettier preferences and why
July 25, 2019 - Prettier makes quotes consistent either way so what’s the difference whether you write ' or "?
🌐
YouTube
youtube.com › andré casal
VS Code Prettier Setting: prettier.trailingComma - YouTube
In this video I explain what this VS Code setting is and how to set it up. 👇SUBSCRIBE TO ANDRÉ'S YOUTUBE CHANNEL NOW👇 https://www.youtube.com/channel/UCAVNcl...
Published   September 20, 2019
Views   154
🌐
GitHub
github.com › prettier › prettier › issues › 15077
weird trailingComma:all cases · Issue #15077 · prettier/prettier
July 11, 2023 - I found 2 weird cases when applying prettier 3.0 with trailingComma:all to my code base. It compiles, so this is more of a code aesthetics question and if this is the desired formatting behavior. P...
Author   fabb
🌐
GitHub
github.com › prettier › prettier › issues › 15142
Trailing comma added to TS type params in ES5 mode · Issue #15142 · prettier/prettier
July 22, 2023 - Prettier 3.0.0 Playground link --parser typescript --trailing-comma es5 Input: const x = [ "This is the first of two strings too long to fit on the same line ...", "... and this is the second.", ]; const y = ( longNameForFunctionParamete...
Author   jakes-space