Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(mobile): fix lint #352

Merged
merged 2 commits into from
Sep 21, 2024
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
6 changes: 3 additions & 3 deletions apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,19 @@
"@hono/clerk-auth": "^2.0.0",
"@hono/node-server": "^1.11.4",
"@hono/zod-validator": "^0.2.2",
"@prisma/client": "5.19.0",
"@prisma/client": "5.19.1",
"@vercel/blob": "^0.23.4",
"got": "^14.4.1",
"hono": "^4.4.8",
"next": "^14.2.4",
"openai": "^4.52.7",
"pino": "^9.2.0",
"pino-pretty": "^11.2.1",
"prisma": "5.19.0",
"prisma": "5.19.1",
"react": "18.3.1",
"react-dom": "18.3.1",
"svix": "^1.28.0",
"zod": "^3.23.8",
"zod": "3.23.8",
"zod-prisma-types": "^3.1.8"
},
"devDependencies": {
Expand Down
5 changes: 2 additions & 3 deletions apps/mobile/app/(app)/(tabs)/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,8 @@ export default function HomeScreen() {
}

const transactionsGroupByDate = useMemo(() => {
const groupedByDay = groupBy(
transactions,
(transaction) => dayjsExtended(transaction.date).format('YYYY-MM-DD'),
const groupedByDay = groupBy(transactions, (transaction) =>
dayjsExtended(transaction.date).format('YYYY-MM-DD'),
)

const sectionDict = mapValues(groupedByDay, (transactions, key) => ({
Expand Down
8 changes: 4 additions & 4 deletions apps/mobile/components/ui/badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ import { type VariantProps, cva } from 'class-variance-authority'
import { View } from 'react-native'

const badgeVariants = cva(
'items-center rounded-full border border-border px-2.5 py-0.5 web:inline-flex web:focus:outline-none web:focus:ring-2 web:focus:ring-ring web:focus:ring-offset-2 web:transition-colors',
'web:inline-flex items-center rounded-full border border-border px-2.5 py-0.5 web:transition-colors web:focus:outline-none web:focus:ring-2 web:focus:ring-ring web:focus:ring-offset-2',
{
variants: {
variant: {
default:
'border-transparent bg-primary active:opacity-80 web:hover:opacity-80',
'border-transparent bg-primary web:hover:opacity-80 active:opacity-80',
secondary:
'border-transparent bg-secondary active:opacity-80 web:hover:opacity-80',
'border-transparent bg-secondary web:hover:opacity-80 active:opacity-80',
destructive:
'border-transparent bg-destructive active:opacity-80 web:hover:opacity-80',
'border-transparent bg-destructive web:hover:opacity-80 active:opacity-80',
outline: 'text-foreground',
},
},
Expand Down
2 changes: 1 addition & 1 deletion apps/mobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
"tailwind-merge": "^2.3.0",
"tailwindcss-animate": "^1.0.7",
"victory-native": "^41.4.0",
"zod": "^3.23.8",
"zod": "3.23.8",
"zustand": "^4.5.4"
},
"devDependencies": {
Expand Down
6 changes: 4 additions & 2 deletions packages/utilities/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"license": "ISC",
"dependencies": {
"@6pm/validation": "workspace:^",
"@prisma/client": "^5.16.0",
"dayjs": "^1.11.11"
"dayjs": "1.11.13"
},
"peerDependencies": {
"@prisma/client": "5.19.1"
}
}
2 changes: 2 additions & 0 deletions packages/utilities/src/date/dayjs.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import dayjsExtended from 'dayjs'
import isoWeek from 'dayjs/plugin/isoWeek'
import quarterOfYear from 'dayjs/plugin/quarterOfYear'

dayjsExtended.extend(isoWeek)
dayjsExtended.extend(quarterOfYear)

export { dayjsExtended }
6 changes: 3 additions & 3 deletions packages/validation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@prisma/client": "^5.16.0",
"zod": "^3.23.8"
"peerDependencies": {
"@prisma/client": "5.19.1",
"zod": "3.23.8"
}
}
92 changes: 20 additions & 72 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading