Skip to content

一般情况就这样

powershell
eslint .

稍微严格一些,指定扩展名为ts,tsx,报告未使用的 eslint-disable 指令,不允许出现警告。

powershell
eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0

https://juejin.cn/post/7402572475719827475

https://juejin.cn/post/7402922513888460852#heading-7