Closed dhanweb closed 7 months ago
你这个配置也太暴力了吧,我后面看下。
方便截个图吗?我看看你怎么用的
图一是我的配置项,图二是加上去之后还是能够正确检测未使用的类型或者变量 原贴链接:https://stackoverflow.com/questions/57802057/eslint-configuring-no-unused-vars-for-typescript
type test = {}
这个代码是在什么文件里面的?
要不你加群吧,在群里说比较方便
type test = {}
这个代码是在什么文件里面的?
在.vue文件和.ts文件都会报这个错误的,加上我说的才能通过eslint校验
type test = {}
这个代码是在什么文件里面的?在.vue文件和.ts文件都会报这个错误的,加上我说的才能通过eslint校验
因为你没使用啊。
代码已经推了
fixed
解决方案之一是在
.eslintrc.cjs
中的rules
字段添加'no-unused-vars': 'off',
暂时未发现会影响其他功能