Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/frontend
diff options
context:
space:
mode:
authorLeitwolf112026-09-26 00:36:04 +0300
committerLeitwolf112026-09-26 00:36:04 +0300
commit215a5a42fa4e21e75bbdfa45f8bccf4d98e781c7 (patch)
treedd12105c386ca30e7ccb6e62fa151b700370a2e4 /frontend
parente21de6d255b041fca036c9599332c7a42548617a (diff)
downloadwebsite-215a5a42fa4e21e75bbdfa45f8bccf4d98e781c7.tar.gz
Make website formatting deterministic across Windows CRLF checkouts by using auto line endings and one explicit Prettier config for frontend and forum assets
Diffstat (limited to 'frontend')
-rw-r--r--frontend/.prettierrc.json1
-rw-r--r--frontend/package.json4
2 files changed, 3 insertions, 2 deletions
diff --git a/frontend/.prettierrc.json b/frontend/.prettierrc.json
index fe3e033..6633ea0 100644
--- a/frontend/.prettierrc.json
+++ b/frontend/.prettierrc.json
@@ -1,5 +1,6 @@
{
"singleQuote": false,
+ "endOfLine": "auto",
"printWidth": 100,
"tabWidth": 2,
"trailingComma": "all"
diff --git a/frontend/package.json b/frontend/package.json
index 0c1d3d1..75a73c7 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -10,8 +10,8 @@
"preview": "vite preview",
"check": "vue-tsc --noEmit",
"test": "node --experimental-strip-types --test tests/*.test.mjs",
- "format": "prettier --write index.html src tests ../forum vite.config.ts",
- "format:check": "prettier --check index.html src tests ../forum vite.config.ts"
+ "format": "prettier --config .prettierrc.json --write index.html src tests ../forum vite.config.ts",
+ "format:check": "prettier --config .prettierrc.json --check index.html src tests ../forum vite.config.ts"
},
"dependencies": {
"vue": "^3.5.0",