Skip to content

Commit 318da7d

Browse files
committed
Linting.
1 parent dddd5e7 commit 318da7d

File tree

7 files changed

+102
-117
lines changed

7 files changed

+102
-117
lines changed
Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,49 @@
11
{
2-
"name": "@launchdarkly/hello-ai-bedrock",
3-
"version": "0.1.0",
4-
"description": "LaunchDarkly AI SDK for Node.js",
5-
"main": "dist/index.js",
6-
"types": "dist/index.d.ts",
7-
"type": "commonjs",
8-
"scripts": {
9-
"build": "tsc",
10-
"lint": "eslint . --ext .ts"
11-
},
12-
"keywords": [
13-
"launchdarkly",
14-
"ai",
15-
"llm"
16-
],
17-
"author": "LaunchDarkly",
18-
"license": "Apache-2.0",
19-
"dependencies": {
20-
"@aws-sdk/client-bedrock-runtime": "^3.679.0",
21-
"@launchdarkly/ai": "0.1.0",
22-
"@launchdarkly/node-server-sdk": "9.7.0"
23-
},
24-
"devDependencies": {
25-
"@trivago/prettier-plugin-sort-imports": "^4.1.1",
26-
"@tsconfig/node20": "20.1.4",
27-
"@typescript-eslint/eslint-plugin": "^6.20.0",
28-
"@typescript-eslint/parser": "^6.20.0",
29-
"eslint": "^8.45.0",
30-
"eslint-config-airbnb-base": "^15.0.0",
31-
"eslint-config-airbnb-typescript": "^17.1.0",
32-
"eslint-config-prettier": "^8.8.0",
33-
"eslint-plugin-import": "^2.27.5",
34-
"eslint-plugin-jest": "^27.6.3",
35-
"eslint-plugin-prettier": "^5.0.0",
36-
"jest": "^29.7.0",
37-
"prettier": "^3.0.0",
38-
"rimraf": "^5.0.5",
39-
"typedoc": "0.25.0",
40-
"typescript": "^5.5.3"
41-
},
42-
"directories": {
43-
"example": "example"
44-
},
45-
"repository": {
46-
"type": "git",
47-
"url": "github.com/launchdarkly/js-core"
48-
}
2+
"name": "@launchdarkly/hello-ai-bedrock",
3+
"version": "0.1.0",
4+
"description": "LaunchDarkly AI SDK for Node.js",
5+
"main": "dist/index.js",
6+
"types": "dist/index.d.ts",
7+
"type": "commonjs",
8+
"scripts": {
9+
"build": "tsc",
10+
"lint": "eslint . --ext .ts"
11+
},
12+
"keywords": [
13+
"launchdarkly",
14+
"ai",
15+
"llm"
16+
],
17+
"author": "LaunchDarkly",
18+
"license": "Apache-2.0",
19+
"dependencies": {
20+
"@aws-sdk/client-bedrock-runtime": "^3.679.0",
21+
"@launchdarkly/ai": "0.1.0",
22+
"@launchdarkly/node-server-sdk": "9.7.0"
23+
},
24+
"devDependencies": {
25+
"@trivago/prettier-plugin-sort-imports": "^4.1.1",
26+
"@tsconfig/node20": "20.1.4",
27+
"@typescript-eslint/eslint-plugin": "^6.20.0",
28+
"@typescript-eslint/parser": "^6.20.0",
29+
"eslint": "^8.45.0",
30+
"eslint-config-airbnb-base": "^15.0.0",
31+
"eslint-config-airbnb-typescript": "^17.1.0",
32+
"eslint-config-prettier": "^8.8.0",
33+
"eslint-plugin-import": "^2.27.5",
34+
"eslint-plugin-jest": "^27.6.3",
35+
"eslint-plugin-prettier": "^5.0.0",
36+
"jest": "^29.7.0",
37+
"prettier": "^3.0.0",
38+
"rimraf": "^5.0.5",
39+
"typedoc": "0.25.0",
40+
"typescript": "^5.5.3"
41+
},
42+
"directories": {
43+
"example": "example"
44+
},
45+
"repository": {
46+
"type": "git",
47+
"url": "github.com/launchdarkly/js-core"
48+
}
4949
}
Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
11
{
2-
"name": "@launchdarkly/hello-ai",
3-
"version": "0.1.0",
4-
"description": "LaunchDarkly AI SDK for Node.js",
5-
"main": "dist/index.js",
6-
"types": "dist/index.d.ts",
7-
"scripts": {
8-
"build": "tsc",
9-
"lint": "eslint . --ext .ts"
10-
},
11-
"keywords": [
12-
"launchdarkly",
13-
"ai",
14-
"llm"
15-
],
16-
"author": "LaunchDarkly",
17-
"license": "Apache-2.0",
18-
"dependencies": {
19-
"@launchdarkly/ai": "0.1.0",
20-
"@launchdarkly/node-server-sdk": "9.7.0",
21-
"openai": "^4.58.1"
22-
},
23-
"devDependencies": {
24-
"@trivago/prettier-plugin-sort-imports": "^4.1.1",
25-
"@tsconfig/node20": "20.1.4",
26-
"@typescript-eslint/eslint-plugin": "^6.20.0",
27-
"@typescript-eslint/parser": "^6.20.0",
28-
"eslint": "^8.45.0",
29-
"eslint-config-airbnb-base": "^15.0.0",
30-
"eslint-config-airbnb-typescript": "^17.1.0",
31-
"eslint-config-prettier": "^8.8.0",
32-
"eslint-plugin-import": "^2.27.5",
33-
"eslint-plugin-jest": "^27.6.3",
34-
"eslint-plugin-prettier": "^5.0.0",
35-
"jest": "^29.7.0",
36-
"prettier": "^3.0.0",
37-
"rimraf": "^5.0.5",
38-
"typedoc": "0.25.0",
39-
"typescript": "^5.5.3"
40-
},
41-
"directories": {
42-
"example": "example"
43-
},
44-
"repository": {
45-
"type": "git",
46-
"url": "github.com/launchdarkly/js-core"
47-
}
2+
"name": "@launchdarkly/hello-ai",
3+
"version": "0.1.0",
4+
"description": "LaunchDarkly AI SDK for Node.js",
5+
"main": "dist/index.js",
6+
"types": "dist/index.d.ts",
7+
"scripts": {
8+
"build": "tsc",
9+
"lint": "eslint . --ext .ts"
10+
},
11+
"keywords": [
12+
"launchdarkly",
13+
"ai",
14+
"llm"
15+
],
16+
"author": "LaunchDarkly",
17+
"license": "Apache-2.0",
18+
"dependencies": {
19+
"@launchdarkly/ai": "0.1.0",
20+
"@launchdarkly/node-server-sdk": "9.7.0",
21+
"openai": "^4.58.1"
22+
},
23+
"devDependencies": {
24+
"@trivago/prettier-plugin-sort-imports": "^4.1.1",
25+
"@tsconfig/node20": "20.1.4",
26+
"@typescript-eslint/eslint-plugin": "^6.20.0",
27+
"@typescript-eslint/parser": "^6.20.0",
28+
"eslint": "^8.45.0",
29+
"eslint-config-airbnb-base": "^15.0.0",
30+
"eslint-config-airbnb-typescript": "^17.1.0",
31+
"eslint-config-prettier": "^8.8.0",
32+
"eslint-plugin-import": "^2.27.5",
33+
"eslint-plugin-jest": "^27.6.3",
34+
"eslint-plugin-prettier": "^5.0.0",
35+
"jest": "^29.7.0",
36+
"prettier": "^3.0.0",
37+
"rimraf": "^5.0.5",
38+
"typedoc": "0.25.0",
39+
"typescript": "^5.5.3"
40+
},
41+
"directories": {
42+
"example": "example"
43+
},
44+
"repository": {
45+
"type": "git",
46+
"url": "github.com/launchdarkly/js-core"
47+
}
4848
}

packages/sdk/ai/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
"scripts": {
99
"build": "npx tsc",
1010
"lint": "npx eslint . --ext .ts",
11-
"lint:fix": "yarn run lint --fix"
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",
14+
"test": "echo No tests added yet."
1215
},
1316
"keywords": [
1417
"launchdarkly",
@@ -28,6 +31,7 @@
2831
"@typescript-eslint/parser": "^6.20.0",
2932
"eslint": "^8.45.0",
3033
"jest": "^29.6.1",
34+
"prettier": "^3.0.0",
3135
"ts-jest": "^29.1.1",
3236
"typescript": "5.1.6"
3337
},

packages/sdk/ai/src/api/AIClient.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { LDContext } from '@launchdarkly/node-server-sdk';
2+
23
import { LDAIConfig, LDGenerationConfig } from './config/LDAIConfig';
34

45
/**

packages/sdk/ai/src/api/metrics/OpenAITokenUsage.ts

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
export * from './BedrockTokenUsage';
22
export * from './LDFeedbackKind';
3-
export * from './OpenAITokenUsage';
43
export * from './LDTokenUsage';
54
export * from './UnderScoreTokenUsage';
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "./tsconfig.json",
3-
"include": ["/**/*.ts"],
4-
"exclude": ["node_modules"]
2+
"extends": "./tsconfig.json",
3+
"include": ["/**/*.ts"],
4+
"exclude": ["node_modules"]
55
}

0 commit comments

Comments
 (0)