vue项目中eslint 警告'functionName is defined but never used'
2018-03-27 17:32
459 查看
Vue项目中我们通常会在main.js中引用一些公用的文件,比如一些公用的样式文件:
这样eslint会提示:reset/config is defind but never used。想要关闭这个提示需要在.eslintrc.js文件中修改配置:
"no-unused-vars": 'off' 去掉此项警告。
这样eslint会提示:reset/config is defind but never used。想要关闭这个提示需要在.eslintrc.js文件中修改配置:
"no-unused-vars": 'off' 去掉此项警告。
相关文章推荐
- [eslint-plugin-vue] [vue/no-unused-vars] 'scope' is defined but never used.
- Vue报错笔记(1)vue.js:515 [Vue warn]: Property or method "name" is not defined on the instance but refere
- Eclipse下项目警告"Target runtime Apache Tomcat 7.0 is not defined"
- warning:'ispExpInfoRotate180' declared 'static' but never defined [-Wunused-function]
- mysql -- error code [1442]; Can't update table 'table_name' in stored function/trigger because it is already used by statement w
- 警告:'serialAttr' is used uninitialized in this function
- Assignment to name ignored, since the identifier is never used
- Hint:Parameter 'in' is declared but never used in 'query_student'
- 内联函数声明但未定义 “warning: inline function `*` declared but never defined”
- 利用vue-cli脚手架搭建项目时,在我入门时开启了eslint 一直报黄色的警告 有时候非常的烦恼 所以我要去掉它
- g++编译警告原因分析..is used uninitialized in this function
- 实用程序软件包(关于使用静态函数报错问题“Static function declared but not defined in C+++ "eh.h is only for C++!"报错问题)
- IAR编译器一个警告信息-Warning[Pe550]: variable "变量" was set but never used
- 内联函数声明但未定义 “warning: inline function `*` declared but never defined”
- vue项目使用手机浏览器访问时报错:Uncaught TypeError: Object.assign is not a function
- Eclipse下项目警告"Target runtime Apache Tomcat 7.0 is not defined"
- 解决cs321n 的 python教程中 name 'imread' ‘imsave’ 'imresize' is not defined 的问题
- warning 'XXX' declared 'static' but never defined解决方法
- 创建Vue项目时出现“expected indentation of 2 spaces but found 1 tab”等类似错误