lite: run prettier on js + json files

This commit is contained in:
alex 2023-05-02 16:12:34 +01:00
parent 4242f6ee3d
commit bb1c84e101
23 changed files with 23 additions and 23 deletions

View file

@ -330,4 +330,4 @@
"vscode.file-open.dont-show-again": "لا تسأل مرةً أخرى",
"vscode.file-open.desc": "تم إنشاء هذا الملف باستخدام إصدار سابق من tldraw. هل ترغب في تحديث الملف للعمل مع الإصدار الجديد؟",
"context.pages.new-page": "صفحة جديدة"
}
}

View file

@ -330,4 +330,4 @@
"vscode.file-open.dont-show-again": "No preguntar-ho més",
"vscode.file-open.desc": "Aquest fitxer es va crear amb una versió anterior de tldraw. Vols actualitzar-lo perquè funcioni amb la nova versió?",
"context.pages.new-page": "Nova pàgina"
}
}

View file

@ -191,4 +191,4 @@
"vscode.file-open.dont-show-again": "Spørg ikke igen",
"vscode.file-open.desc": "Denne fil blev oprettet med en tidligere version af tldraw. Vil du opdatere filen så den virker med den nye version?",
"context.pages.new-page": "Ny side"
}
}

View file

@ -326,4 +326,4 @@
"toast.error.copy-fail.title": "Kopieren fehlgeschlagen",
"toast.error.copy-fail.desc": "Bild kann nicht kopiert werden",
"file-system.shared-document-file-open-error.title": "Konnte die Datei nicht öffnen"
}
}

View file

@ -330,4 +330,4 @@
"vscode.file-open.dont-show-again": "No volver a preguntar",
"vscode.file-open.desc": "Este archivo se creó con una versión anterior de tldraw. ¿Desea actualizarlo para que funcione con la nueva versión?",
"context.pages.new-page": "Nueva página"
}
}

View file

@ -347,4 +347,4 @@
"action.stop-following": "Lopeta seuraaminen",
"people-menu.follow": "Seuraa",
"style-panel.position": "Sijainti"
}
}

View file

@ -330,4 +330,4 @@
"vscode.file-open.dont-show-again": "Ne plus demander",
"vscode.file-open.desc": "Ce fichier a été créé avec une version antérieure de tldraw. Souhaitez-vous le mettre à jour pour quil fonctionne avec la nouvelle version ?",
"context.pages.new-page": "Nouvelle page"
}
}

View file

@ -337,4 +337,4 @@
"vscode.file-open.backup-saved": "Copia de seguridade gardada",
"vscode.file-open.backup-failed": "Fallou a copia de seguridade: este non é un arquivo .tldr.",
"style-panel.position": "Posición"
}
}

View file

@ -325,4 +325,4 @@
"toast.error.export-fail.desc": "इमेज एक्सपोर्ट करने में विफल",
"toast.error.copy-fail.title": "विफल कॉपी",
"toast.error.copy-fail.desc": "इमेज कॉपी करने में विफल"
}
}

View file

@ -330,4 +330,4 @@
"vscode.file-open.dont-show-again": "Non chiedere di nuovo",
"vscode.file-open.desc": "Questo file è stato creato con una versione precedente di tldraw. Desideri aggiornarlo per farlo funzionare con la nuova versione?",
"context.pages.new-page": "Nuova Pagina"
}
}

View file

@ -336,4 +336,4 @@
"vscode.file-open.backup": "백업",
"vscode.file-open.backup-saved": "백업 저장완료",
"vscode.file-open.backup-failed": "백업에 실패했습니다: .tldr 파일이 아닙니다."
}
}

View file

@ -313,4 +313,4 @@
"vscode.file-open.backup-saved": "Backup saved",
"vscode.file-open.backup-failed": "Backup failed: this is not a .tldr file.",
"vscode.file-open.dont-show-again": "Don't ask again"
}
}

View file

@ -330,4 +330,4 @@
"vscode.file-open.dont-show-again": "फेरि नसोध्नुहोस्",
"vscode.file-open.desc": "यो फाइल tldraw को पुरानो संस्करणबाट सिर्जना गरिएको थियो। के तपाइँ नयाँ संस्करण संग काम गर्न यसलाई upgrade गर्न चाहनुहुन्छ?",
"context.pages.new-page": "नयाँ पृष्ठ"
}
}

View file

@ -330,4 +330,4 @@
"vscode.file-open.dont-show-again": "Nu mai întreba",
"vscode.file-open.desc": "Acest fișier a fost creat cu o versiune anterioară de tldraw. Vrei să îl actualizezi pentru a funcționa cu noua versiune?",
"context.pages.new-page": "Pagină nouă"
}
}

View file

@ -347,4 +347,4 @@
"action.stop-following": "Перестать следовать",
"people-menu.follow": "Следовать",
"style-panel.position": "Позиция"
}
}

View file

@ -330,4 +330,4 @@
"vscode.file-open.dont-show-again": "ไม่ต้องถามอีก",
"vscode.file-open.desc": "ไฟล์นี้ถูกสร้างขึ้นด้วย tldraw รุ่นก่อนหน้า คุณต้องการอัปเดตเพื่อทํางานกับรุ่นใหม่หรือไม่",
"context.pages.new-page": "หน้าใหม่"
}
}

View file

@ -329,4 +329,4 @@
"vscode.file-open.dont-show-again": "Bir daha sorma",
"vscode.file-open.desc": "Bu dosya daha önceki bir tldraw versiyonu ile oluşturulmuştur. Yeni versiyonla çalışmak için güncellemek ister misiniz?",
"context.pages.new-page": "Yeni sayfa"
}
}

View file

@ -347,4 +347,4 @@
"action.stop-following": "Припинити стежити",
"people-menu.follow": "Стежити",
"style-panel.position": "Позиція"
}
}

View file

@ -330,4 +330,4 @@
"vscode.file-open.dont-show-again": "Đừng hỏi lại",
"vscode.file-open.desc": "Tệp này được tạo bằng phiên bản cũ hơn của tldraw. Bạn có muốn cập nhật nó để hoạt động với phiên bản mới không?",
"context.pages.new-page": "Trang mới"
}
}

View file

@ -325,4 +325,4 @@
"toast.error.export-fail.desc": "无法导出图像",
"toast.error.copy-fail.title": "复制失败",
"toast.error.copy-fail.desc": "无法复制图像"
}
}

View file

@ -347,4 +347,4 @@
"action.stop-following": "取消追蹤",
"people-menu.follow": "追蹤",
"style-panel.position": "位置"
}
}

View file

@ -44,7 +44,7 @@
"build-api": "lazy build-api",
"build-package": "lazy build-package",
"lint": "lazy lint",
"format": "prettier --write \"**/*.{ts,tsx}\"",
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,json}\"",
"typecheck": "yarn refresh-assets && tsx scripts/typecheck.ts",
"check-scripts": "tsx scripts/check-scripts.ts",
"api-check": "lazy api-check",

View file

@ -15,7 +15,7 @@ async function main() {
'prettier',
shouldFix ? '--write' : '--check',
// we have to run prettier from root so it picks up the ignore file
join(relative(REPO_ROOT, process.cwd()), '**', '*.{ts,tsx}'),
join(relative(REPO_ROOT, process.cwd()), '**', '*.{ts,tsx,js,jsx,json}'),
],
{ pwd: REPO_ROOT }
)