Skip to content

Instantly share code, notes, and snippets.

View melodyclue's full-sized avatar
🏠
Working from home

melodyclue melodyclue

🏠
Working from home
View GitHub Profile

CLAUDE.mdをプロジェクトルートに作成し以下を追加する

## 🔨 最重要ルール - 新しいルールの追加プロセス

ユーザーから今回限りではなく常に対応が必要だと思われる指示を受けた場合:

1. 「これを標準のルールにしますか?」と質問する
2. YESの回答を得た場合、CLAUDE.mdに追加ルールとして記載する
3. 以降は標準ルールとして常に適用する
@chimame
chimame / context.ts
Created March 17, 2024 11:53
Automatic rollback of vitest using drizzle
import { Client } from "pg";
import { drizzle } from "drizzle-orm/node-postgres";
import * as schema from "../drizzle/schema";
import { Logger } from "drizzle-orm/logger";
export async function createContext() {
const client = new Client({
connectionString: "your database connection string",
});
await client.connect();
'use client';
import { Controller, useFieldArray, useForm } from 'react-hook-form';
export default function Job() {
const { control } = useForm({
defaultValues: {
emails: [
{
value: '',