Skip to content

ESLint 忽略@ts-ignore 错误提示

Published: at 11:55 AMSuggest Changes

rules 配置

"@typescript-eslint/ban-ts-comment": "off"

或者代码中

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore

Previous Post
Vite 动态引入图片
Next Post
JavaScript 数字格式化库 numeral.js