Skip to content

Commit 1414491

Browse files
committed
fix lint errors
1 parent 5275369 commit 1414491

19 files changed

+31
-19
lines changed

dist/tools/atlas/atlasTool.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/tools/atlas/auth.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/tools/atlas/auth.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/tools/atlas/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/tools/atlas/listClusters.js

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/tools/atlas/listClusters.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/tools/atlas/listProjects.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/tools/mongodb/index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/tools/mongodb/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/tools/tool.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/tools/tool.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eslint.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { defineConfig } from "eslint/config";
1+
import { defineConfig, globalIgnores } from "eslint/config";
22
import js from "@eslint/js";
33
import globals from "globals";
44
import tseslint from "typescript-eslint";
@@ -9,4 +9,5 @@ export default defineConfig([
99
{ files: ["src/**/*.ts"], languageOptions: { globals: globals.node } },
1010
tseslint.configs.recommended,
1111
eslintConfigPrettier,
12+
globalIgnores(["node_modules", "dist"]),
1213
]);

src/tools/atlas/atlasTool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { ZodRawShape } from "zod";
22
import { ToolBase } from "../tool.js";
33
import { ApiClient } from "../../client.js";
44

5-
export abstract class AtlasToolBase<Args extends ZodRawShape> extends ToolBase<Args> {
5+
export abstract class AtlasToolBase<Args extends ZodRawShape = ZodRawShape> extends ToolBase<Args> {
66
constructor(protected apiClient: ApiClient) {
77
super();
88
}

src/tools/atlas/auth.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export async function isAuthenticated(state: State, apiClient: ApiClient): Promi
2222
}
2323
await apiClient.retrieveToken(state.auth.code.device_code);
2424
return !!state.auth.token;
25-
} catch (error) {
25+
} catch {
2626
return false;
2727
}
2828
case "issued":
@@ -35,7 +35,7 @@ export async function isAuthenticated(state: State, apiClient: ApiClient): Promi
3535
}
3636
}
3737

38-
export class AuthTool extends AtlasToolBase<{}> {
38+
export class AuthTool extends AtlasToolBase {
3939
protected name = "auth";
4040
protected description = "Authenticate to MongoDB Atlas";
4141
protected argsShape = {};

0 commit comments

Comments
 (0)