Expected ‘this‘ to be used by class method “xxx“
如果你的vue3项目开发中出现ts报错Expected 'this' to be used by class method "xxx",只需要在ts文件的头部添加以下注释可以绕过eslint对this验证问题
/* eslint-disable class-methods-use-this */
如果你的vue3项目开发中出现ts报错Expected 'this' to be used by class method "xxx",只需要在ts文件的头部添加以下注释可以绕过eslint对this验证问题
/* eslint-disable class-methods-use-this */