Skip to content
This repository was archived by the owner on Mar 25, 2026. It is now read-only.

Commit e341aff

Browse files
authored
Updated biomeJS formatter and linter and fix lint issues (#269)
1 parent 1e533f5 commit e341aff

63 files changed

Lines changed: 8961 additions & 7127 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
2-
"extends": ["next/core-web-vitals", "next/typescript"],
3-
"rules": {
4-
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }]
5-
}
2+
"extends": ["next/core-web-vitals", "next/typescript"],
3+
"rules": {
4+
"@typescript-eslint/no-unused-vars": [
5+
"error",
6+
{ "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }
7+
]
8+
}
69
}

agent-docs/biome.json

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,7 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.5.3/schema.json",
3-
"organizeImports": {
4-
"enabled": true
5-
},
6-
"linter": {
7-
"enabled": true,
8-
"rules": {
9-
"recommended": true
10-
}
11-
},
12-
"formatter": {
13-
"enabled": true,
14-
"indentStyle": "space",
15-
"indentWidth": 2
16-
},
17-
"javascript": {
18-
"formatter": {
19-
"quoteStyle": "single",
20-
"trailingCommas": "es5",
21-
"semicolons": "always"
22-
}
23-
},
24-
"files": {
25-
"ignore": [".agentuity/**"]
26-
}
2+
"extends": "//",
3+
"root": false,
4+
"files": {
5+
"includes": ["**", "!**/.agentuity/**", "!**/.next/**"]
6+
}
277
}

agent-docs/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
export const VECTOR_STORE_NAME = process.env.VECTOR_STORE_NAME || 'docs';
2-
export const vectorSearchNumber = 10;
2+
export const vectorSearchNumber = 10;

agent-docs/index.ts

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,52 @@
11
import { runner } from '@agentuity/sdk';
22

33
declare global {
4-
namespace NodeJS {
5-
interface Process {
6-
isBun: boolean;
7-
}
8-
}
4+
namespace NodeJS {
5+
interface Process {
6+
isBun: boolean;
7+
}
8+
}
99
}
1010

1111
if (!process.env.AGENTUITY_API_KEY && !process.env.AGENTUITY_SDK_KEY) {
12-
console.error(
13-
'\x1b[31m[ERROR] AGENTUITY_API_KEY or AGENTUITY_SDK_KEY is not set. This should have been set automatically by the Agentuity CLI or picked up from the .env file.\x1b[0m'
14-
);
12+
console.error(
13+
'\x1b[31m[ERROR] AGENTUITY_API_KEY or AGENTUITY_SDK_KEY is not set. This should have been set automatically by the Agentuity CLI or picked up from the .env file.\x1b[0m'
14+
);
1515

16-
const cmd = process.env._ || '';
16+
const cmd = process.env._ || '';
1717

18-
if (cmd.endsWith('node')) {
19-
console.error(
20-
'\x1b[31m[ERROR] Re-run the command with `node --env-file .env index.ts`\x1b[0m'
21-
);
22-
}
18+
if (cmd.endsWith('node')) {
19+
console.error(
20+
'\x1b[31m[ERROR] Re-run the command with `node --env-file .env index.ts`\x1b[0m'
21+
);
22+
}
2323

24-
process.exit(1);
24+
process.exit(1);
2525
}
2626

2727
if (!process.env.AGENTUITY_URL) {
28-
console.warn(
29-
'\x1b[31m[WARN] You are running this agent outside of the Agentuity environment. Any automatic Agentuity features will be disabled.\x1b[0m'
30-
);
31-
32-
if (process.isBun) {
33-
console.warn(
34-
'\x1b[31m[WARN] Recommend running `agentuity dev` to run your project locally instead of `bun run start`.\x1b[0m'
35-
);
36-
} else {
37-
console.warn(
38-
'\x1b[31m[WARN] Recommend running `agentuity dev` to run your project locally instead of `npm start`.\x1b[0m'
39-
);
40-
}
28+
console.warn(
29+
'\x1b[31m[WARN] You are running this agent outside of the Agentuity environment. Any automatic Agentuity features will be disabled.\x1b[0m'
30+
);
31+
32+
if (process.isBun) {
33+
console.warn(
34+
'\x1b[31m[WARN] Recommend running `agentuity dev` to run your project locally instead of `bun run start`.\x1b[0m'
35+
);
36+
} else {
37+
console.warn(
38+
'\x1b[31m[WARN] Recommend running `agentuity dev` to run your project locally instead of `npm start`.\x1b[0m'
39+
);
40+
}
4141
}
4242

4343
runner(true, import.meta.dirname).catch((err) => {
44-
if (err instanceof Error) {
45-
console.error(err.message);
46-
console.error(err.stack);
47-
} else {
48-
console.error(err);
49-
}
50-
51-
process.exit(1);
44+
if (err instanceof Error) {
45+
console.error(err.message);
46+
console.error(err.stack);
47+
} else {
48+
console.error(err);
49+
}
50+
51+
process.exit(1);
5252
});

0 commit comments

Comments
 (0)