Skip to content

Commit b33f697

Browse files
committed
chore: fix types, eslint
1 parent b2dd137 commit b33f697

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

eslint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ export default defineConfig([
8888
"src/types/*.d.ts",
8989
"tests/integration/fixtures/",
9090
"eslint-rules",
91+
".yalc",
9192
]),
9293
eslintPluginPrettierRecommended,
9394
]);

scripts/apply.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ async function main(): Promise<void> {
3333
process.exit(1);
3434
}
3535

36-
const specFile = await fs.readFile(spec as string, "utf8");
36+
const specFile = await fs.readFile(spec, "utf8");
3737

3838
const operations: {
3939
path: string;
@@ -115,7 +115,7 @@ async ${methodName}(options${requiredParams ? "" : "?"}: FetchOptions<operations
115115
})
116116
.join("\n");
117117

118-
const templateFile = await fs.readFile(file as string, "utf8");
118+
const templateFile = await fs.readFile(file, "utf8");
119119
const templateLines = templateFile.split("\n");
120120
const outputLines: string[] = [];
121121
let addLines = true;
@@ -134,7 +134,7 @@ async ${methodName}(options${requiredParams ? "" : "?"}: FetchOptions<operations
134134
}
135135
const output = outputLines.join("\n");
136136

137-
await fs.writeFile(file as string, output, "utf8");
137+
await fs.writeFile(file, output, "utf8");
138138
}
139139

140140
main().catch((error) => {

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ async function main(): Promise<void> {
5757
args: process.argv.slice(2),
5858
});
5959

60-
if (config == null || (error && error.length)) {
60+
if (!config || (error && error.length)) {
6161
console.error(`
6262
${error}
6363
- Refer to https://www.mongodb.com/docs/mcp-server/get-started/ for setting up the MCP Server.

0 commit comments

Comments
 (0)