-
에러4(Component name should always be multi-word)JS/vue.js 2022. 3. 14. 11:31
Component name "component" should always be multi-word.
Eslint 에러.
vue에서는 컴포넌트 이름을 multi-word로 단어와 단어의 조합으로 네이밍하는걸 추천한다.
따라서 에러를 꺼버리고 싶을 때
package.json 파일에서
"eslintConfig": { "rules": { "vue/multi-word-component-names": 0 } }
이렇게
"vue/multi-word-component-names": 0
추가해주면 된다.
'JS > vue.js' 카테고리의 다른 글
vue9(props,emit) (0) 2022.03.14 vue8(router navigation guard 네비게이션 가드) (0) 2022.03.14 vue7(DevExtreme-DataGrid이용하기) (0) 2022.03.11 에러3(error: Mixed spaces and tabs (no-mixed-spaces-and-tabs)) (0) 2022.03.11 vue6(vue-router) (0) 2022.03.11