Skip to content
Carsten Klein edited this page Dec 8, 2022 · 1 revision

FAQ

How do I get rid of the warnings regarding test classes (typescript-eslint/no-unused-vars)?

First, come up with a proper naming convention for your test classes, e.g. all classes must have the Suite suffix.

Add the following rule to your ESLint configuration:

[...]
    "rules": {
        "@typescript-eslint/no-unused-vars": [
            "error",
            {
                "varsIgnorePattern": "Suite"
            }
        ],
[...]