【发布时间】:2020-09-17 13:45:53
【问题描述】:
我刚刚尝试更新到 create-react-app 4,并且有大量 typescript eslint 警告,尤其是 函数 @typescript-eslint/explicit-module-boundary-types 缺少返回类型
有没有办法在运行时覆盖 .eslintrc.json 文件中的这些? 当我显式执行时,我目前已经为我的项目提供了覆盖
npm run lint
但是当我使用 npm run start 时,我会收到大量我似乎无法控制的 lint 警告。
有什么办法吗?
【问题讨论】:
标签: create-react-app