Tambah singequote

Tambah setingan singe quote
This commit is contained in:
mbahsomo 2026-01-28 04:24:20 +00:00
parent 09b3cf75d6
commit 2922710762
1 changed files with 23 additions and 1 deletions

View File

@ -1,4 +1,3 @@
Jika Ingin saat di save tidak usah di format bisa di tambahkan baris pada file .prettierc
```
"vueIndentScriptAndStyle": true
@ -8,7 +7,30 @@ Contoh seperti ini
{
"useTabs": true,
"tabWidth": 4,
"singleQuote": true,
"vueIndentScriptAndStyle": true
"trailingComma": "none",
"printWidth": 100,
"plugins": ["prettier-plugin-svelte"],
"overrides": [
{
"files": "*.svelte",
"options": {
"parser": "svelte"
}
}
]
}
```
Sedangkan untuk membuat defaul quote menjadi petik ' bisa menggunakan
```
"singleQuote": true,
```
Contoh settingan :
```
{
"useTabs": true,
"singleQuote": true,
"tabWidth": 4,
"vueIndentScriptAndStyle": true
"trailingComma": "none",
"printWidth": 100,