Skip to content

⬆️ Bump the eslint group across 1 directory with 4 updates #85

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 5, 2025
Merged
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
4 changes: 3 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
@@ -9,7 +9,6 @@ export default tseslint.config(
},
},

// eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access
eslint.configs.recommended,
...tseslint.configs.strictTypeChecked,
...tseslint.configs.stylisticTypeChecked,
@@ -54,6 +53,9 @@ export default tseslint.config(
"@typescript-eslint/sort-type-constituents": "error",
"@typescript-eslint/switch-exhaustiveness-check": "error",
"func-style": ["error", "declaration"],

// This package isn't updated for the newest `js-tiktoken` version.
"@typescript-eslint/no-deprecated": "warn",
},
},
{
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@
"devDependencies": {
"@eslint/js": "^9.9.1",
"eslint": "^9.9.1",
"eslint-config-prettier": "^9.1.0",
"eslint-config-prettier": "^10.0.1",
"openai": "^4.56.0",
"prettier": "^3.3.3",
"typedoc": "^0.26.6",
470 changes: 207 additions & 263 deletions pnpm-lock.yaml

Unchanged files with check annotations Beta

import type OpenAI from "openai"
type OpenAIFunction = OpenAI.Chat.ChatCompletionCreateParams.Function

Check warning on line 3 in src/functions.ts

GitHub Actions / test

`Function` is deprecated
/** Types representing the OpenAI function definitions. While the OpenAI client
* library does have types for function definitions, the properties are just
import { formatFunctionDefinitions } from "./functions.ts"
type Message = OpenAI.Chat.ChatCompletionMessageParam
type OpenAIFunction = OpenAI.Chat.ChatCompletionCreateParams.Function

Check warning on line 8 in src/token-counts.ts

GitHub Actions / test

`Function` is deprecated
type FunctionCall = OpenAI.Chat.ChatCompletionFunctionCallOption
let encoder: Tiktoken | undefined