Eslint使用装饰器出现xx is defined but never used/xx is not defined问题 问题描述: 使用装饰器时会导致装饰器内部的变量出现xx is defined but never used/xx is not defined 问题原因: 主要是因为@typescript-eslint/eslint-plugin的版本过低导致 解决办法: 可以直接安装新版本@typescript-eslint/eslint-plugin@5.35.1必须高于5.35.1 注意注意: 安装完成之后必须要重启编辑器 GitHub上面的issues的专项解决