eslint全局变量报错 xxx is not defined

Posted dk1024

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了eslint全局变量报错 xxx is not defined相关的知识,希望对你有一定的参考价值。

找到.eslintrc.js,添加

"globals": {
  "你的全局变量": true
},

如果globals已经存在在里边加入你要忽略检测的全局变量即可。

以上是关于eslint全局变量报错 xxx is not defined的主要内容,如果未能解决你的问题,请参考以下文章

解决:使用 Vue 3 Script Setup 时 ESLint 报错 ‘defineProps‘ is not defined

C语言malloc编译报错:initializer element is not constant(不能将全局变量初始化为一个无法在编译时期确定的值)

webstorm报错TypeError: this.cliEngine is not a constructor

vue项目中eslint 警告'xxx is defined but never used'解决方法

Unity报错之UnityException: Texture ‘XXX‘ is not readable

Unity报错之UnityException: Texture ‘XXX‘ is not readable