Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kinyoklion committed Nov 4, 2024
1 parent 3c7aa41 commit c1b1f3e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
5 changes: 4 additions & 1 deletion packages/sdk/ai/examples/bedrock/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
"type": "commonjs",
"scripts": {
"build": "tsc",
"lint": "eslint . --ext .ts"
"lint": "npx eslint . --ext .ts",
"prettier": "prettier --write '**/*.@(js|ts|tsx|json|css)' --ignore-path ../../../.prettierignore",
"lint:fix": "yarn run lint --fix",
"check": "yarn prettier && yarn lint && yarn build && yarn test"
},
"keywords": [
"launchdarkly",
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/ai/examples/bedrock/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-disable no-console */
import { BedrockRuntimeClient, ConverseCommand, Message } from '@aws-sdk/client-bedrock-runtime';

import { initAi, LDAIConfig } from '@launchdarkly/node-server-sdk-ai';
import { init } from '@launchdarkly/node-server-sdk';
import { initAi, LDAIConfig } from '@launchdarkly/node-server-sdk-ai';

const sdkKey = process.env.LAUNCHDARKLY_SDK_KEY;
const aiConfigKey = process.env.LAUNCHDARKLY_AI_CONFIG_KEY;
Expand Down
5 changes: 4 additions & 1 deletion packages/sdk/ai/examples/openai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc",
"lint": "eslint . --ext .ts"
"lint": "npx eslint . --ext .ts",
"prettier": "prettier --write '**/*.@(js|ts|tsx|json|css)' --ignore-path ../../../.prettierignore",
"lint:fix": "yarn run lint --fix",
"check": "yarn prettier && yarn lint && yarn build && yarn test"
},
"keywords": [
"launchdarkly",
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/ai/examples/openai/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-disable no-console */
import { OpenAI } from 'openai';

import { initAi } from '@launchdarkly/node-server-sdk-ai';
import { init, LDContext } from '@launchdarkly/node-server-sdk';
import { initAi } from '@launchdarkly/node-server-sdk-ai';

// Environment variables
const sdkKey = process.env.LAUNCHDARKLY_SDK_KEY;
Expand Down

0 comments on commit c1b1f3e

Please sign in to comment.