我新建了一个React Native项目,然后IDE报错如下。以前新建的项目是不会有任何报错信息的。
报错信息
Definition for rule ‘@typescript-eslint/no-shadow’ was not found.
解决办法
安装了@typescript-eslint/eslint-plugin
后问题解决了,什么原因没有深究。
yarn add @typescript-eslint/eslint-plugin --dev
参考文档
https://github.com/typescript-eslint/typescript-eslint/issues/2466
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)