Eslint typescript导入的类型没有未使用的vars触发器

Eslint typescript导入的类型没有未使用的vars触发器,typescript,import,eslint,Typescript,Import,Eslint,我不明白为什么这样不行。我希望@typescript eslint/没有未使用的变量将该类型识别为用于此函数返回类型。我做错了什么?我不明白这是怎么回事吗 图像中的代码: .eslintrc.json { "env": { "browser": false, "node": true }, "extends": [ "airbnb-b

我不明白为什么这样不行。我希望@typescript eslint/没有未使用的变量将该类型识别为用于此函数返回类型。我做错了什么?我不明白这是怎么回事吗

图像中的代码:

.eslintrc.json

{
    "env": {
        "browser": false,
        "node": true
    },
    "extends": [
        "airbnb-base",
        "eslint:recommended",
        "plugin:@typescript-eslint/eslint-recommended"
    ],
    "parser": "@typescript-eslint/parser",
    "parserOptions": {
        "ecmaVersion": 2020,
        "sourceType": "module"
    },
    "plugins": [
        "typescript",
        "@typescript-eslint"
    ],
    "settings": {
        "import/resolver": {
            "typescript": {}
        }
    },
    "rules": {
        "no-unused-vars": "off",
        "@typescript-eslint/no-unused-vars": ["error"]
    }
}
Service.ts:

export declare interface FooConfig {}
Foo.ts:

import { FooConfig } from "library/types/Service";

export default function foo(): FooConfig {

    return {};

}
错误:

ESLint已定义但从未使用过“FooConfig”。(@typescript eslint/无未使用的变量)


看起来这是我正在使用的版本(4.0.0-alpha.1)的一个已知问题,有望很快得到解决


对于我正在使用的版本(4.0.0-alpha.1),这似乎是一个已知的问题,有望很快得到解决