Skip to content

Commit c1b1f3e

Browse files
committed
Lint
1 parent 3c7aa41 commit c1b1f3e

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

packages/sdk/ai/examples/bedrock/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
"type": "commonjs",
88
"scripts": {
99
"build": "tsc",
10-
"lint": "eslint . --ext .ts"
10+
"lint": "npx eslint . --ext .ts",
11+
"prettier": "prettier --write '**/*.@(js|ts|tsx|json|css)' --ignore-path ../../../.prettierignore",
12+
"lint:fix": "yarn run lint --fix",
13+
"check": "yarn prettier && yarn lint && yarn build && yarn test"
1114
},
1215
"keywords": [
1316
"launchdarkly",

packages/sdk/ai/examples/bedrock/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/* eslint-disable no-console */
22
import { BedrockRuntimeClient, ConverseCommand, Message } from '@aws-sdk/client-bedrock-runtime';
33

4-
import { initAi, LDAIConfig } from '@launchdarkly/node-server-sdk-ai';
54
import { init } from '@launchdarkly/node-server-sdk';
5+
import { initAi, LDAIConfig } from '@launchdarkly/node-server-sdk-ai';
66

77
const sdkKey = process.env.LAUNCHDARKLY_SDK_KEY;
88
const aiConfigKey = process.env.LAUNCHDARKLY_AI_CONFIG_KEY;

packages/sdk/ai/examples/openai/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
"types": "dist/index.d.ts",
77
"scripts": {
88
"build": "tsc",
9-
"lint": "eslint . --ext .ts"
9+
"lint": "npx eslint . --ext .ts",
10+
"prettier": "prettier --write '**/*.@(js|ts|tsx|json|css)' --ignore-path ../../../.prettierignore",
11+
"lint:fix": "yarn run lint --fix",
12+
"check": "yarn prettier && yarn lint && yarn build && yarn test"
1013
},
1114
"keywords": [
1215
"launchdarkly",

packages/sdk/ai/examples/openai/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/* eslint-disable no-console */
22
import { OpenAI } from 'openai';
33

4-
import { initAi } from '@launchdarkly/node-server-sdk-ai';
54
import { init, LDContext } from '@launchdarkly/node-server-sdk';
5+
import { initAi } from '@launchdarkly/node-server-sdk-ai';
66

77
// Environment variables
88
const sdkKey = process.env.LAUNCHDARKLY_SDK_KEY;

0 commit comments

Comments
 (0)