Skip to content

Commit

Permalink
feat: adjust eslint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
crnvl committed Nov 21, 2024
1 parent aa02269 commit 0339972
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
12 changes: 11 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
{
"extends": ["next/core-web-vitals", "next/typescript"]
"extends": ["next/core-web-vitals", "next/typescript"],
"rules": {
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
]
}
}
4 changes: 2 additions & 2 deletions app/api/openai/raw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { NextApiRequest, NextApiResponse } from "next";
import OpenAI from "openai";
const openai = new OpenAI();

const handler = async (req: NextApiRequest, res: NextApiResponse) => {
let body: OpenAiRawRequestParams = req.body;
const _handler = async (req: NextApiRequest, res: NextApiResponse) => {
const body: OpenAiRawRequestParams = req.body;

const completion = await openai.chat.completions.create({
model: "gpt-3.5-turbo",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
"exclude": ["node_modules"],
}

0 comments on commit 0339972

Please sign in to comment.