ESLint配置特定变量名不检查

方法一:忽略 no-undef 检查

在需要忽略的文档头部加注释

/* eslint-disable no-undef */
...

方法二:配置 ESLint配置文件

配置 .eslintrc.js

module.exports = {
  ...
  globals: {
    "TCPlayer": true
  }
};
posted @   Better-HTQ  阅读(386)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示