Add .prettierrc, .prettierignore; update frontend/package.json scripts

- Root .prettierrc sets tabWidth=4 and proseWrap=always
- Root .prettierignore excludes node_modules, build output, lockfiles
- package.json: adds test (vite build), lint, fmt scripts; adds prettier
  as a devDependency; fixes typos in description and keywords

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
KS Jannette
2026-02-28 20:02:48 -05:00
parent b283d0f835
commit 6901c759da
3 changed files with 45 additions and 31 deletions

6
.prettierignore Normal file
View File

@@ -0,0 +1,6 @@
node_modules/
frontend/dist/
frontend/build/
backend-go/bin/
*.lock
Prompts/

4
.prettierrc Normal file
View File

@@ -0,0 +1,4 @@
{
"tabWidth": 4,
"proseWrap": "always"
}

View File

@@ -1,32 +1,36 @@
{
"name": "frontend",
"version": "1.0.0",
"description": "koin_ping blockchain monoitor UI",
"main": "index.js",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"keywords": [
"cryptocurrency",
"blockchain",
"blockchain event moitoring"
],
"author": "Steven Jannette",
"license": "MIT",
"type": "module",
"dependencies": {
"firebase": "^12.7.0",
"react": "^19.2.3",
"react-dom": "^19.2.3",
"react-router-dom": "^7.11.0"
},
"devDependencies": {
"@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^5.1.2",
"typescript": "^5.9.3",
"vite": "^7.3.0"
}
"name": "frontend",
"version": "1.0.0",
"description": "koin_ping blockchain monitor UI",
"main": "index.js",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"test": "vite build",
"lint": "prettier --check 'src/**/*.{js,jsx,ts,tsx,css}'",
"fmt": "prettier --write 'src/**/*.{js,jsx,ts,tsx,css}'"
},
"keywords": [
"cryptocurrency",
"blockchain",
"blockchain event monitoring"
],
"author": "Steven Jannette",
"license": "MIT",
"type": "module",
"dependencies": {
"firebase": "^12.7.0",
"react": "^19.2.3",
"react-dom": "^19.2.3",
"react-router-dom": "^7.11.0"
},
"devDependencies": {
"@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^5.1.2",
"prettier": "^3.8.1",
"typescript": "^5.9.3",
"vite": "^7.3.0"
}
}