Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Code Formatting

on:
pull_request:
push:
branches: ['**']

jobs:
prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: '21.1.0'

- uses: pnpm/action-setup@v2
with:
version: 8

- name: Install Dependencies
run: pnpm install

- name: Check Formatting
run: pnpm exec prettier --config prettier.config.js --check "**/*.{js,jsx,ts,tsx,md,json,css,scss,yaml,yml}"
78 changes: 0 additions & 78 deletions .github/workflows/prettier.yml.disabled

This file was deleted.

3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
.next/
.out/
.out/
pnpm-lock.yaml
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,13 @@ pnpm dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

## Code Formatting

This project uses Prettier for code formatting. To ensure consistent code style:

1. Install the VSCode Prettier extension
2. Enable "Format on Save" in VSCode
3. Prettier will automatically format your code when you save

The CI pipeline will check formatting on all PRs. Unformatted code will block merging.
2 changes: 1 addition & 1 deletion global.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
interface Window {
$crisp: any;
$crisp: any
}
6 changes: 6 additions & 0 deletions knip.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://unpkg.com/knip@latest/schema.json",
"ignore": ["src/assets/**"],
"entry": ["src/**/*.{js,jsx,ts,tsx}", "postcss.config.js", "tailwind.config.js"],
"project": ["src/**/*.{js,jsx,ts,tsx}", "*.config.{js,ts}"]
}
2 changes: 2 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,6 @@ if (process.env.NODE_ENV !== 'development') {
// https://vercel.com/docs/cron-jobs
automaticVercelMonitors: true,
})
} else {
module.exports = nextConfig
}
70 changes: 28 additions & 42 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,87 +10,73 @@
"build": "next build",
"start": "next start",
"lint": "next lint",
"knip": "knip",
"format": "prettier --write .",
"analyze": "ANALYZE=true next build"
},
"dependencies": {
"@calcom/embed-react": "^1.5.1",
"@chakra-ui/color-mode": "^2.2.0",
"@chakra-ui/react": "^2.8.2",
"@chakra-ui/icon": "^3.2.0",
"@chakra-ui/react": "^2.10.4",
"@chakra-ui/react-context": "^2.1.0",
"@chakra-ui/shared-utils": "^2.0.4",
"@dicebear/collection": "^9.2.2",
"@dicebear/core": "^9.2.2",
"@headlessui/react": "^1.7.19",
"@headlessui/tailwindcss": "^0.2.1",
"@safe-global/safe-apps-sdk": "^9.1.0",
"@sentry/nextjs": "^8.30.0",
"@squirrel-labs/peanut-sdk": "^0.5.10",
"@tanstack/react-query": "^5.56.2",
"@sentry/nextjs": "^8.39.0",
"@squirrel-labs/peanut-sdk": "^0.5.11",
"@tanstack/react-query": "^5.61.0",
"@typeform/embed-react": "^3.20.0",
"@vercel/analytics": "^1.3.1",
"@web3modal/wagmi": "^5.1.9",
"@vercel/analytics": "^1.4.1",
"@wagmi/core": "^2.14.6",
"@web3modal/wagmi": "^5.1.11",
"auto-text-size": "^0.2.3",
"autoprefixer": "^10.4.20",
"axios": "^1.7.7",
"chakra-ui-steps": "^2.1.0",
"country-list": "^2.3.0",
"encoding": "^0.1.13",
"eslint-config-next": "^14.2.13",
"ethers": "5.7.2",
"framer-motion": "^11.6.0",
"frames.js": "^0.15.2",
"fs-extra": "^11.2.0",
"i18n-iso-countries": "^7.12.0",
"install": "^0.13.0",
"libphonenumber-js": "^1.11.8",
"logrocket": "^8.1.0",
"lokijs": "^1.5.12",
"framer-motion": "^11.11.17",
"i18n-iso-countries": "^7.13.0",
"i18next": "^23.2.3",
"lottie-react": "^2.4.0",
"multicoin-address-validator": "^0.5.21",
"next": "^14.2.13",
"node-fetch": "^3.3.2",
"pino-pretty": "^10.3.1",
"prop-types": "^15.8.1",
"multicoin-address-validator": "^0.5.22",
"next": "^14.2.18",
"react": "^18.3.1",
"react-csv": "^2.2.2",
"react-device-detect": "^2.2.3",
"react-dom": "^18.3.1",
"react-fast-marquee": "^1.6.5",
"react-ga4": "^2.1.0",
"react-google-recaptcha": "^3.1.0",
"react-hook-form": "^7.53.0",
"react-lottie": "^1.2.4",
"react-hook-form": "^7.53.2",
"react-lottie": "^1.2.8",
"react-qr-code": "^2.0.15",
"react-tooltip": "^5.28.0",
"sharp": "^0.32.6",
"sharp": "^0.33.5",
"siwe": "^2.3.2",
"tailwind-merge": "^1.14.0",
"tailwind-scrollbar": "^3.1.0",
"tap": "^18.8.0",
"three": "^0.157.0",
"uuid": "^10.0.0",
"validator": "^13.12.0",
"viem": "^2.21.10",
"wagmi": "2.8.6",
"@wagmi/core": "^2.12.16",
"web3": "^1.10.4"
"viem": "^2.21.48",
"wagmi": "2.8.6"
},
"devDependencies": {
"@types/country-list": "^2.1.4",
"@types/fs-extra": "^11.0.4",
"@types/multicoin-address-validator": "^0.5.3",
"@types/node": "20.4.2",
"@types/react": "^18.3.8",
"@types/react": "^18.3.12",
"@types/react-csv": "^1.1.10",
"@types/react-dom": "^18.3.0",
"@types/react-google-recaptcha": "^2.1.9",
"@types/react-dom": "^18.3.1",
"@types/react-lottie": "^1.2.10",
"@types/three": "^0.157.2",
"@types/uuid": "^9.0.8",
"@types/validator": "^13.12.2",
"postcss": "^8.4.47",
"knip": "^5.37.1",
"postcss": "^8.4.49",
"postcss-import": "^16.1.0",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.5.14",
"tailwindcss": "^3.4.12",
"typescript": "^5.6.2"
"tailwindcss": "^3.4.15",
"typescript": "^5.6.3"
}
}
Loading
Loading