eslint with @stencil/eslint-plugin throw "Cannot read 属性 'typeAnnotation' of undefined

eslint with @stencil/eslint-plugin throw "Cannot read property 'typeAnnotation' of undefined

@stencil/plugin-eslint 添加到我的 eslint 配置 extends 部分后,eslint 开始抛出以下错误:

Oops! Something went wrong! :(

ESLint: 7.11.0

TypeError: Cannot read property 'typeAnnotation' of undefined

向我的 属性 添加类型注释解决了这个问题:

@Component({
    tag: 'my-component',
    shadow: true,
})
export class MyComponent implements ComponentWillLoad {

    // @Element() host; // before
    @Element() host: HTMLMyComponentElement;  // after

此外,将此添加到我的 tsconfig.json -> compilerOptions 导致此情况较早时被引发为错误:

"noImplicitAny": true,