学习vue组件遇到bug: Component name "Life" should always be multi-word
详细:?
?ERROR ?Failed to compile with 1 error ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?21:29:48
[eslint] D:\vs-vue\vuelearnv7\todo-demo\src\components\Life.vue ? 1:1 ?error ?Component name "Life" should always be multi-word ?vue/multi-word-component-names
? 1 problem (1 error, 0 warnings)
You may use special comments to disable some warnings. Use // eslint-disable-next-line to ignore the next line. Use /* eslint-disable */ to ignore all warnings in a file. ERROR in [eslint] D:\vs-vue\vuelearnv7\todo-demo\src\components\Life.vue ? 1:1 ?error ?Component name "Life" should always be multi-word ?vue/multi-word-component-names
? 1 problem (1 error, 0 warnings)
是因为打开了eslint检测 , 解决: 添加配置,禁用eslint?
? lintOnSave: false, // 关闭eslint检测
|