[英]React js error WARNING in [eslint] src\App.js Line 2:8: 'person' is defined but never used
[.[I am facing this issue help me to solve this: it always gives me an error Line 2:8. [.[我面临这个问题帮我解决这个问题:它总是给我一个错误 Line 2:8。 'person' is defined but never used no-unused-vars.][1]][1]
'person' 已定义但从未使用 no-unused-vars。][1]][1]
You can go to the editor settings and search eslint
and disable the checkbox of Controls whether eslint is enableed or not.
您可以 go 到编辑器设置并搜索
eslint
并禁用Controls whether eslint is enableed or not.
But that's not appritiated cause eslint gives you international code standard in some cases by applying eslint rule.但这并不是因为 eslint 在某些情况下通过应用 eslint 规则为您提供了国际代码标准。 If you want to know more please read eslint rules .
如果您想了解更多信息,请阅读eslint 规则。
In line 2 at the position 8, in the file App.js you declared a variable with the name "person" that you are not using in your code.在 position 8 的第 2 行中,在文件 App.js 中,您声明了一个名称为“person”的变量,您没有在代码中使用该变量。 Its a hint not an error,, by eslint.
eslint 给出的提示不是错误。 Go to this position and delete the declaration.
Go 到这个 position 并删除声明。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.