Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,6 @@ export default defineConfig({
["meta", { property: "og:type", content: "website" }],
["meta", { property: "og:image", content: "https://usage.jdx.dev/android-chrome-512x512.png" }],
["meta", { name: "twitter:card", content: "summary" }],
["meta", { name: "twitter:image", content: "https://usage.jdx.dev/android-chrome-512x512.png" }],
[
"script",
{
defer: "",
"data-domain": "usage.jdx.dev",
"data-api": "https://shrill.en.dev/f5f1/event",
src: "https://shrill.en.dev/shrill/script.js"
}
]
["meta", { name: "twitter:image", content: "https://usage.jdx.dev/android-chrome-512x512.png" }]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

It is recommended to maintain the trailing comma for the last element in the array when it is followed by a newline. This practice improves maintainability by reducing diff noise in future changes and adheres to common TypeScript style guides, such as the Google TypeScript Style Guide.

    ["meta", { name: "twitter:image", content: "https://usage.jdx.dev/android-chrome-512x512.png" }],
References
  1. The Google TypeScript Style Guide recommends using trailing commas in container literals (such as object literals and array literals) whenever there is a line break between the final element and the closing bracket to minimize diff noise. (link)

]
});