Skip to content
Open
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
8 changes: 0 additions & 8 deletions .eslintrc.json

This file was deleted.

38 changes: 28 additions & 10 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,16 +1,34 @@
import { dirname } from "path";
import { fileURLToPath } from "url";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);

const compat = new FlatCompat({
baseDirectory: __dirname,
});
import nextPlugin from "@next/eslint-plugin-next";
import reactPlugin from "eslint-plugin-react";
import reactHooksPlugin from "eslint-plugin-react-hooks";
import typescriptPlugin from "@typescript-eslint/eslint-plugin";
import typescriptParser from "@typescript-eslint/parser";

const eslintConfig = [
...compat.extends("next/core-web-vitals", "next/typescript"),
{
files: ["**/*.ts", "**/*.tsx"],
languageOptions: {
parser: typescriptParser,
globals: {
React: "readonly",
},
},
plugins: {
"@next/next": nextPlugin,
react: reactPlugin,
"react-hooks": reactHooksPlugin,
"@typescript-eslint": typescriptPlugin,
},
rules: {
...nextPlugin.configs.recommended.rules,
...reactPlugin.configs.recommended.rules,
...reactHooksPlugin.configs.recommended.rules,
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
"@typescript-eslint/no-unused-vars": "warn",
},
},
{
ignores: [
"node_modules/**",
Expand Down
10 changes: 1 addition & 9 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@ const nextConfig = {
eslint: {
ignoreDuringBuilds: false,
},
// Skip linting during build to speed up deployment
eslint: {
ignoreDuringBuilds: true,
},
// Skip type checking during build
typescript: {
ignoreBuildErrors: true,
},
}

module.exports = nextConfig
module.exports = nextConfig
111 changes: 111 additions & 0 deletions package-lock.json

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

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"dev": "next dev",
"build": "prisma generate && next build",
"start": "next start",
"lint": "next lint",
"lint": "eslint .",
"db:push": "prisma db push",
"db:studio": "prisma studio",
"db:generate": "prisma generate"
Expand Down Expand Up @@ -40,7 +40,8 @@
"recharts": "^2.8.0",
"sonner": "^1.0.0",
"tailwind-merge": "^2.0.0",
"zod": "^3.22.0"
"zod": "^3.22.0",
"@ai-sdk/openai": "^0.0.33"
},
"devDependencies": {
"@tailwindcss/postcss": "^4.1.14",
Expand Down
Loading