vue项目中eslint 警告'functionName is defined but never used'

Vue项目中我们通常会在main.js中引用一些公用的文件,比如一些公用的样式文件: 这样eslint会提示:reset/config is defind but never used。想要关闭这个提示需要在.eslintrc.js文件中修改配置: "no-unused-vars": 'off' 去掉此项警告。
相关文章
相关标签/搜索