Diskusi Misbahul Haq

Selesai
Misbahul Haq
Ditanyakan pada: Membuat Component Price

Compiled with problems:

C:\Users\asus\vue-cli\src\components\Price.vue 1:1 error Component name "Price" should always be multi-word vue/multi-word-component-names 1:11 error Delete `␍` prettier/prettier 2:11 error Delete `␍` prettier/prettier 3:72 error Delete `␍` prettier/prettier 4:12 error Delete `␍` prettier/prettier 5:12 error Delete `␍` prettier/prettier 6:1 error Delete `␍` prettier/prettier 7:9 error Delete `␍` prettier/prettier 8:17 error Delete `␍` prettier/prettier 9:11 error Delete `␍` prettier/prettier 10:19 error Delete `␍` prettier/prettier 11:14 error Delete `␍` prettier/prettier 12:22 error Delete `␍` prettier/prettier 13:22 error Delete `␍` prettier/prettier 14:7 error Delete `␍` prettier/prettier 15:17 error Delete `␍` prettier/prettier 16:22 error Delete `␍` prettier/prettier 17:18 error Delete `␍` prettier/prettier 18:7 error Delete `␍` prettier/prettier 19:5 error Delete `␍` prettier/prettier 20:3 error Delete `␍` prettier/prettier 21:10 error Delete `␍` prettier/prettier

1 Jawaban

Avatar
Muhammad Fakhry Burhanuddin

16 hari yang lalu

error itu karena menyalahi aturan penulisan dari prettier. Bisa disable opsi multi-word di prettier. Silahkan ikuti panduan berikut: [https://stackoverflow.com/questions/70570973/how-to-disable-vue-multi-word-component-names-eslint-rule-for-just-one-vue-file](https://stackoverflow.com/questions/70570973/how-to-disable-vue-multi-word-component-names-eslint-rule-for-just-one-vue-file) Atau tidak memakai prettier untuk formatting codenya. Pada saat inisialisasi project jangan pilih prettier