Typescript ESLint无法在monorepo中获取子项目的类型

Typescript ESLint无法在monorepo中获取子项目的类型,typescript,eslint,monorepo,typescript-eslint,Typescript,Eslint,Monorepo,Typescript Eslint,我有一个Typescript monorepo设置,其中包含Thread工作区,我使用tsconfig->path进行开发 当我运行eslint时,来自同一monorepo中其他包的类型似乎具有类型any,结果linter抛出误报 误报类型: 模板文字表达式@typescript eslint/restrict的类型“any”无效 此断言是不必要的,因为它不会更改表达式@typescript eslint的类型/没有不必要的类型断言 “+”运算的操作数必须同时为字符串或数字@typescrip

我有一个Typescript monorepo设置,其中包含Thread工作区,我使用tsconfig->path进行开发

当我运行
eslint
时,来自同一monorepo中其他包的类型似乎具有类型
any
,结果linter抛出误报

误报类型:

  • 模板文字表达式@typescript eslint/restrict的类型“any”无效
  • 此断言是不必要的,因为它不会更改表达式@typescript eslint的类型/没有不必要的类型断言
  • “+”运算的操作数必须同时为字符串或数字@typescript eslint/restrict plus操作数
我想补充一点,修复这些问题将导致
tsc
抛出构建错误

有没有想过如何避免这种情况