ESLint:TypeError: Cannot read properties of null (reading ‘name‘)解决方法

记录一下奇奇怪怪的ESLint报错 

问题示例: 

 

 原因:

解决方法: