• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mongodb-js / mongodb-mcp-server / 19928292758

04 Dec 2025 12:03PM UTC coverage: 80.172% (-0.4%) from 80.581%
19928292758

Pull #777

github

web-flow
Merge 305c35330 into 18ff7cc01
Pull Request #777: chore: adopt strict validation for all command line arguments MCP-298

1451 of 1892 branches covered (76.69%)

Branch coverage included in aggregate %.

82 of 121 new or added lines in 8 files covered. (67.77%)

18 existing lines in 2 files now uncovered.

6640 of 8200 relevant lines covered (80.98%)

79.9 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/eslint.config.js
1
import path from "path";
×
2
import { defineConfig, globalIgnores } from "eslint/config";
×
3
import js from "@eslint/js";
×
4
import globals from "globals";
×
5
import tseslint from "typescript-eslint";
×
6
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
×
7
import vitestPlugin from "@vitest/eslint-plugin";
×
8
import enforceZodV4 from "./eslint-rules/enforce-zod-v4.js";
×
9

10
const testFiles = ["tests/**/*.test.ts", "tests/**/*.ts"];
×
11

12
const files = [...testFiles, "src/**/*.ts", "scripts/**/*.ts"];
×
13

14
export default defineConfig([
×
15
    { files, plugins: { js }, extends: ["js/recommended"] },
×
16
    { files, languageOptions: { globals: globals.node } },
×
17
    {
×
18
        files: testFiles,
×
19
        plugins: {
×
20
            vitest: vitestPlugin,
×
21
        },
×
22
        languageOptions: {
×
23
            globals: {
×
24
                ...globals.node,
×
25
            },
×
26
        },
×
27
        rules: {
×
28
            ...vitestPlugin.configs.recommended.rules,
×
29
            "vitest/valid-title": "off",
×
30
            "vitest/expect-expect": [
×
31
                "error",
×
32
                {
×
33
                    assertFunctionNames: ["expect", "expectDefined", "verifyMockCalls"],
×
34
                },
×
35
            ],
×
36
        },
×
37
    },
×
38
    tseslint.configs.recommendedTypeChecked,
×
39
    {
×
40
        files,
×
41
        languageOptions: {
×
42
            parserOptions: {
×
43
                project: "./tsconfig.json",
×
44
                tsconfigRootDir: import.meta.dirname,
×
45
            },
×
46
        },
×
47
    },
×
48
    {
×
49
        files,
×
50
        rules: {
×
51
            "@typescript-eslint/switch-exhaustiveness-check": "error",
×
52
            "@typescript-eslint/no-non-null-assertion": "error",
×
53
            "@typescript-eslint/consistent-type-imports": ["error", { prefer: "type-imports" }],
×
54
            "@typescript-eslint/consistent-type-exports": [
×
55
                "error",
×
56
                {
×
57
                    fixMixedExportsWithInlineTypeSpecifier: false,
×
58
                },
×
59
            ],
×
60
            eqeqeq: "error",
×
61
            "no-self-compare": "error",
×
62
            "no-unassigned-vars": "error",
×
63
            "@typescript-eslint/await-thenable": "error",
×
64
            "@typescript-eslint/explicit-function-return-type": "error",
×
65
        },
×
66
    },
×
67
    {
×
68
        files: ["src/**/*.ts"],
×
69
        plugins: {
×
70
            "enforce-zod-v4": {
×
71
                rules: {
×
72
                    "enforce-zod-v4": enforceZodV4,
×
73
                },
×
74
            },
×
75
        },
×
76
        rules: {
×
77
            "enforce-zod-v4/enforce-zod-v4": "error",
×
78
        },
×
79
    },
×
80
    globalIgnores([
×
81
        "node_modules",
×
82
        "dist",
×
83
        "src/common/atlas/openapi.d.ts",
×
84
        "coverage",
×
85
        "global.d.ts",
×
86
        "eslint.config.js",
×
87
        "vitest.config.ts",
×
88
        "src/types/*.d.ts",
×
89
        "tests/integration/fixtures/",
×
90
        "eslint-rules",
×
NEW
91
        ".yalc",
×
92
    ]),
×
93
    eslintPluginPrettierRecommended,
×
94
]);
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc