先安装 yarn add @typescript-eslint/parser -D
然后在.eslintrc配置文件中加入
parserOptions: { parser: '@typescript-eslint/parser', },