33 - Add Prettier to the frontend

This commit is contained in:
myrmidex 2026-06-28 02:11:14 +02:00
parent 41bcc1b905
commit 4ac02d1ee9
4 changed files with 31 additions and 0 deletions

4
frontend/.prettierignore Normal file
View file

@ -0,0 +1,4 @@
node_modules
dist
package-lock.json
*.tsbuildinfo

View file

@ -0,0 +1,7 @@
{
"semi": false,
"singleQuote": true,
"trailingComma": "all",
"printWidth": 80,
"tabWidth": 2
}

View file

@ -17,6 +17,7 @@
"@types/react-dom": "^19.2.3", "@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^6.0.2", "@vitejs/plugin-react": "^6.0.2",
"oxlint": "^1.69.0", "oxlint": "^1.69.0",
"prettier": "^3.9.1",
"typescript": "~6.0.2", "typescript": "~6.0.2",
"vite": "^8.1.0" "vite": "^8.1.0"
} }
@ -1166,6 +1167,22 @@
"node": "^10 || ^12 || >=14" "node": "^10 || ^12 || >=14"
} }
}, },
"node_modules/prettier": {
"version": "3.9.1",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.9.1.tgz",
"integrity": "sha512-ppiDo2CSwexck1eyZUwJHg/N3nf1+6IRCv7W/VJ5vaLnVCmB7+3CdRfMwoCHBBX6xTrREDTksZ4OZl5SSf4zXA==",
"dev": true,
"license": "MIT",
"bin": {
"prettier": "bin/prettier.cjs"
},
"engines": {
"node": ">=14"
},
"funding": {
"url": "https://github.com/prettier/prettier?sponsor=1"
}
},
"node_modules/react": { "node_modules/react": {
"version": "19.2.7", "version": "19.2.7",
"resolved": "https://registry.npmjs.org/react/-/react-19.2.7.tgz", "resolved": "https://registry.npmjs.org/react/-/react-19.2.7.tgz",

View file

@ -7,6 +7,8 @@
"dev": "vite", "dev": "vite",
"build": "tsc -b && vite build", "build": "tsc -b && vite build",
"lint": "oxlint", "lint": "oxlint",
"format": "prettier --write .",
"format:check": "prettier --check .",
"preview": "vite preview" "preview": "vite preview"
}, },
"dependencies": { "dependencies": {
@ -19,6 +21,7 @@
"@types/react-dom": "^19.2.3", "@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^6.0.2", "@vitejs/plugin-react": "^6.0.2",
"oxlint": "^1.69.0", "oxlint": "^1.69.0",
"prettier": "^3.9.1",
"typescript": "~6.0.2", "typescript": "~6.0.2",
"vite": "^8.1.0" "vite": "^8.1.0"
} }