summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2025-05-21 22:33:17 -0400
committerOwen Jacobson <owen@grimoire.ca>2025-05-30 19:49:44 -0400
commitfb588fcab980db57c443812801838d1f632c8fdc (patch)
treea19718ebeea8f5ddc956c272e29c7ecde30d7e16
parentd02d4fdd8e1ce85660294d89138887a5f4918e68 (diff)
Permit (and expect) trailing commas in most contexts.
This is purely a stylistic preference. However, it has helped keep diffs smaller (since diffs at the end of an object or array don't require changing the last line of the array), and it's something a lot of tools and IDEs now default to expecting to.
-rw-r--r--.prettierrc1
1 files changed, 0 insertions, 1 deletions
diff --git a/.prettierrc b/.prettierrc
index 3d01ccd..190fedf 100644
--- a/.prettierrc
+++ b/.prettierrc
@@ -1,7 +1,6 @@
{
"useTabs": false,
"singleQuote": true,
- "trailingComma": "none",
"printWidth": 100,
"plugins": ["prettier-plugin-svelte"],
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]