build: migrate workspace tooling to Oxc
Replace Turbo task orchestration with Bun workspace scripts and remove the Prettier configuration. Add Oxlint and Oxfmt project configuration, including Tailwind class sorting, generated-file exclusions, and unified check/fix commands. Apply the new formatter and resolve Hook dependency errors surfaced by Oxlint.
This commit is contained in:
@@ -10,7 +10,6 @@
|
||||
"workspace-i18n": "./src/cli/index.ts"
|
||||
},
|
||||
"scripts": {
|
||||
"format": "prettier --write \"**/*.{css,json,ts,tsx}\"",
|
||||
"test": "vitest run",
|
||||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
|
||||
@@ -2,10 +2,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta
|
||||
name="viewport"
|
||||
content="width=device-width, initial-scale=1.0"
|
||||
/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="color-scheme" content="light dark" />
|
||||
<title>Message Studio</title>
|
||||
</head>
|
||||
@@ -14,4 +11,3 @@
|
||||
<script type="module" src="/main.tsx"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
@@ -86,7 +86,8 @@ describe("MessagePanel", () => {
|
||||
|
||||
it("keeps the current content visible during a background refresh", async () => {
|
||||
let resolveRefresh:
|
||||
((messages: readonly DevtoolMessage[]) => void) | undefined
|
||||
| ((messages: readonly DevtoolMessage[]) => void)
|
||||
| undefined
|
||||
const repository: MessageRepository = {
|
||||
getMessages: vi
|
||||
.fn()
|
||||
|
||||
@@ -21,7 +21,8 @@ export type MessageCatalog = Record<string, unknown>
|
||||
export type MessageCatalogs = Record<string, MessageCatalog>
|
||||
|
||||
export type MissingTranslationHandler =
|
||||
string | ((locale: string, id: string) => string)
|
||||
| string
|
||||
| ((locale: string, id: string) => string)
|
||||
|
||||
export type LocaleDirection = "ltr" | "rtl"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user