See how a minor change to your commit message style can make you a better programmer.
Format: <type>: <subject>
feat: add hat wobble
Items move from the left most columns towards the right: To-Do → Doing → In Review → Completed
| import js from '@eslint/js' | |
| import globals from 'globals' | |
| import reactHooks from 'eslint-plugin-react-hooks' | |
| import reactRefresh from 'eslint-plugin-react-refresh' | |
| import tseslint from 'typescript-eslint' | |
| export default tseslint.config( | |
| { ignores: ['dist'] }, | |
| { | |
| extends: [js.configs.recommended, ...tseslint.configs.recommended], |
| // lib/prisma.ts | |
| import { PrismaClient } from "@prisma/client"; | |
| const globalForPrisma = global as unknown as { prisma: PrismaClient }; | |
| export const prisma = | |
| globalForPrisma.prisma || new PrismaClient(); | |
| if (process.env.NODE_ENV !== "production") globalForPrisma.prisma = prisma; |