Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 8 additions & 0 deletions website/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"semi": true,
"trailingComma": "es5",
"singleQuote": true,
"printWidth": 80,
"tabWidth": 2,
"useTabs": false
}
2 changes: 2 additions & 0 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
"test:run": "vitest run",
"test:coverage": "vitest run --coverage",
"lint": "eslint js/**/*.js",
"format": "prettier --write .",
"format:check": "prettier --check .",
Comment on lines +12 to +13

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

The Prettier scripts are currently targeting . which will attempt to format every file in the directory. While Prettier ignores some files by default (like node_modules), this is very broad and could format unintended files in the future (e.g., build artifacts, logs). It's better practice to use a more specific glob pattern to target only the files you intend to format.

    "format": "prettier --write \"**/*.{html,css,js,json,md}\"",
    "format:check": "prettier --check \"**/*.{html,css,js,json,md}\""

"build": "echo 'Static site - no build needed'"
},
"devDependencies": {
Expand Down
Loading