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

mongodb-js / mongodb-mcp-server / 16804813849

07 Aug 2025 12:43PM UTC coverage: 81.062% (-0.2%) from 81.276%
16804813849

Pull #428

github

web-flow
Merge ad8e8223d into 42837a410
Pull Request #428: chore: enable typescript-eslint/explicit-function-return-type

655 of 849 branches covered (77.15%)

Branch coverage included in aggregate %.

24 of 27 new or added lines in 13 files covered. (88.89%)

8 existing lines in 1 file now uncovered.

3514 of 4294 relevant lines covered (81.84%)

57.75 hits per line

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

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

8
const testFiles = ["tests/**/*.test.ts", "tests/**/*.ts"];
×
9

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

12
export default defineConfig([
×
13
    { files, plugins: { js }, extends: ["js/recommended"] },
×
14
    { files, languageOptions: { globals: globals.node } },
×
15
    {
×
16
        files: testFiles,
×
17
        plugins: {
×
18
            vitest: vitestPlugin,
×
19
        },
×
20
        languageOptions: {
×
21
            globals: {
×
22
                ...globals.node,
×
23
            },
×
24
        },
×
25
        rules: {
×
26
            ...vitestPlugin.configs.recommended.rules,
×
27
            "vitest/valid-title": "off",
×
28
            "vitest/expect-expect": [
×
29
                "error",
×
30
                {
×
31
                    assertFunctionNames: ["expect", "expectDefined", "verifyMockCalls"],
×
32
                },
×
33
            ],
×
34
        },
×
35
    },
×
36
    tseslint.configs.recommendedTypeChecked,
×
37
    {
×
38
        files,
×
39
        languageOptions: {
×
40
            parserOptions: {
×
41
                project: "./tsconfig.json",
×
42
                tsconfigRootDir: import.meta.dirname,
×
43
            },
×
44
        },
×
45
    },
×
46
    {
×
47
        files,
×
48
        rules: {
×
49
            "@typescript-eslint/switch-exhaustiveness-check": "error",
×
50
            "@typescript-eslint/no-non-null-assertion": "error",
×
51
            eqeqeq: "error",
×
52
            "no-self-compare": "error",
×
53
            "no-unassigned-vars": "error",
×
54
            "@typescript-eslint/await-thenable": "error",
×
NEW
55
            "@typescript-eslint/explicit-function-return-type": "error",
×
56
        },
×
57
    },
×
58
    globalIgnores([
×
59
        "node_modules",
×
60
        "dist",
×
61
        "src/common/atlas/openapi.d.ts",
×
62
        "coverage",
×
63
        "global.d.ts",
×
64
        "eslint.config.js",
×
65
        "vitest.config.ts",
×
66
        "src/types/*.d.ts",
×
67
    ]),
×
68
    eslintPluginPrettierRecommended,
×
69
]);
×
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