vscode-eslint-disable-keypress
github.com
A VS Code plugin that helps developers quickly disable ESLint rules for specific lines or code snippets using shortcuts, eliminating the need to manually copy and paste rule names.
Visit website一个 vscode 插件,解决你日常开发中遇到的 eslint 问题,开发中很有场景下会有一些特殊案例,比如一些很复杂的 reg 等,没办法通过 eslint,全部 ignore 又不是预期的,你只能局部 disable,你可以不用再粘贴 lint 报错后的 rule 再到指定的位置,这个插件可以快捷键自动开一个进程去抓去错误,然后指定到当前激活行,根据你是选中代码片段,还是点击某一行来决策使用禁用的代码片段https://github.com/Simon-He95/vscode-eslint-disable-keypress