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:
6
.prettierignore
Normal file
6
.prettierignore
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
node_modules/
|
||||||
|
frontend/dist/
|
||||||
|
frontend/build/
|
||||||
|
backend-go/bin/
|
||||||
|
*.lock
|
||||||
|
Prompts/
|
||||||
4
.prettierrc
Normal file
4
.prettierrc
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"tabWidth": 4,
|
||||||
|
"proseWrap": "always"
|
||||||
|
}
|
||||||
@@ -1,17 +1,20 @@
|
|||||||
{
|
{
|
||||||
"name": "frontend",
|
"name": "frontend",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "koin_ping blockchain monoitor UI",
|
"description": "koin_ping blockchain monitor UI",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vite build",
|
"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": [
|
"keywords": [
|
||||||
"cryptocurrency",
|
"cryptocurrency",
|
||||||
"blockchain",
|
"blockchain",
|
||||||
"blockchain event moitoring"
|
"blockchain event monitoring"
|
||||||
],
|
],
|
||||||
"author": "Steven Jannette",
|
"author": "Steven Jannette",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@@ -26,6 +29,7 @@
|
|||||||
"@types/react": "^19.2.7",
|
"@types/react": "^19.2.7",
|
||||||
"@types/react-dom": "^19.2.3",
|
"@types/react-dom": "^19.2.3",
|
||||||
"@vitejs/plugin-react": "^5.1.2",
|
"@vitejs/plugin-react": "^5.1.2",
|
||||||
|
"prettier": "^3.8.1",
|
||||||
"typescript": "^5.9.3",
|
"typescript": "^5.9.3",
|
||||||
"vite": "^7.3.0"
|
"vite": "^7.3.0"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user