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,17 +1,20 @@
{
"name": "frontend",
"version": "1.0.0",
"description": "koin_ping blockchain monoitor UI",
"description": "koin_ping blockchain monitor UI",
"main": "index.js",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
"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 moitoring"
"blockchain event monitoring"
],
"author": "Steven Jannette",
"license": "MIT",
@@ -26,6 +29,7 @@
"@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"
}