我新建了一个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