ESLint配置特定变量名不检查
方法一:忽略 no-undef 检查
在需要忽略的文档头部加注释
/* eslint-disable no-undef */
...
方法二:配置 ESLint配置文件
配置 .eslintrc.js
module.exports = {
...
globals: {
"TCPlayer": true
}
};
在需要忽略的文档头部加注释
/* eslint-disable no-undef */
...
配置 .eslintrc.js
module.exports = {
...
globals: {
"TCPlayer": true
}
};