diff --git a/.vscode/settings.json b/.vscode/settings.json index 51b6e92..5e64bb7 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,13 +1,19 @@ { "typescript.tsdk": "./node_modules/typescript/lib", "typescript.enablePromptUseWorkspaceTsdk": true, - "cSpell.enableFiletypes": ["mdx"], - "cSpell.words": ["netcanvas", "Tipbox"], + "cSpell.words": [ + "netcanvas", + "Tipbox" + ], "editor.defaultFormatter": "biomejs.biome", "[typescriptreact]": { "editor.defaultFormatter": "biomejs.biome" }, "[typescript]": { "editor.defaultFormatter": "biomejs.biome" - } -} + }, + "editor.codeActionsOnSave": { + "source.organizeImports": "always", + "source.fixAll": "always", + }, +} \ No newline at end of file diff --git a/apps/documentation/app/page.tsx b/apps/documentation/app/page.tsx index 16799b6..351d9ec 100644 --- a/apps/documentation/app/page.tsx +++ b/apps/documentation/app/page.tsx @@ -1,8 +1,8 @@ -import { redirect } from "next/navigation"; +import { permanentRedirect } from "next/navigation"; export default function RootPage() { // Redirect to en for now. This is a limitation of static site generation // that we need to work around by creating a client component to read the // navigator.language and redirect to the appropriate locale. - redirect("/en", { permanent: true }); + permanentRedirect("/en"); } diff --git a/biome.json b/biome.json index b28bd04..65b6e4e 100644 --- a/biome.json +++ b/biome.json @@ -4,11 +4,16 @@ "enabled": false }, "linter": { + "enabled": true, "rules": { - "recommended": true + "recommended": true, + "correctness": { + "noUnusedImports":"error" + } } }, "formatter": { + "enabled": true, "indentStyle": "tab", "lineWidth": 120 }, @@ -16,5 +21,6 @@ "enabled": true, "clientKind": "git", "useIgnoreFile": true - } + }, + "javascript": { "formatter": { "quoteStyle": "double" } } }