Skip to content
Closed
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: 6 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,9 @@ jobs:

- name: Run tests
run: pnpm test:run

- name: Run Build
run: npx -y prisma generate --schema="./apps/agent/prisma/schema.prisma" \
&& cp ./apps/admin/.env.example ./apps/admin/.env.local \
&& npx -y prisma generate --schema="./apps/admin/prisma/schema.prisma" \
&& pnpm build
6 changes: 3 additions & 3 deletions apps/admin/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { nextJsConfig } from "@packages/eslint-config/next-js";
import { nextJsConfig } from '@packages/eslint-config/next-js'

/** @type {import("eslint").Linter.Config} */
export default nextJsConfig;
/** @type {import("eslint").Linter.Config[]} */
export default nextJsConfig
8 changes: 4 additions & 4 deletions apps/admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
"lucide-react": "^0.488.0",
"next": "^15.2.3",
"next-themes": "^0.4.6",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"react-hook-form": "^7.55.0",
"server-only": "^0.0.1",
"sonner": "^2.0.3",
Expand All @@ -55,8 +55,8 @@
"@eslint/eslintrc": "^3.3.1",
"@tailwindcss/postcss": "^4.0.15",
"@types/node": "^20.14.10",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"@types/react": "^19.1.3",
"@types/react-dom": "^19.1.3",
"eslint": "^9.23.0",
"postcss": "^8.5.3",
"prisma": "^6.5.0",
Expand Down
2 changes: 1 addition & 1 deletion apps/admin/src/components/ui/sonner.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client'

import { useTheme } from 'next-themes'
import { Toaster as Sonner, ToasterProps } from 'sonner'
import { Toaster as Sonner, type ToasterProps } from 'sonner'

const Toaster = ({ ...props }: ToasterProps) => {
const { theme = 'system' } = useTheme()
Expand Down
2 changes: 2 additions & 0 deletions packages/eslint-config/base.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import js from '@eslint/js'
// @ts-ignore
import eslintConfigPrettier from 'eslint-config-prettier'
import turboPlugin from 'eslint-plugin-turbo'
import tseslint from 'typescript-eslint'
// @ts-ignore
import onlyWarn from 'eslint-plugin-only-warn'

/**
Expand Down
4 changes: 3 additions & 1 deletion packages/eslint-config/next.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import js from '@eslint/js'
// @ts-ignore
import eslintConfigPrettier from 'eslint-config-prettier'
import tseslint from 'typescript-eslint'
import pluginReactHooks from 'eslint-plugin-react-hooks'
import pluginReact from 'eslint-plugin-react'
import globals from 'globals'
// @ts-ignore
import pluginNext from '@next/eslint-plugin-next'
import { config as baseConfig } from './base.js'

Expand All @@ -20,7 +22,7 @@ export const nextJsConfig = [
{
...pluginReact.configs.flat.recommended,
languageOptions: {
...pluginReact.configs.flat.recommended.languageOptions,
...(pluginReact.configs.flat.recommended?.languageOptions ?? {}),
globals: {
...globals.serviceworker,
},
Expand Down
Loading