diff --git a/biome.json b/biome.json index 921a7a5..029c240 100644 --- a/biome.json +++ b/biome.json @@ -27,7 +27,6 @@ "formatter": { "quoteStyle": "double", "indentStyle": "tab", - "lineEnding": "lf", "jsxQuoteStyle": "double", "semicolons": "always" } diff --git a/src/components/container/index.tsx b/src/components/container/index.tsx index f6455df..c803359 100644 --- a/src/components/container/index.tsx +++ b/src/components/container/index.tsx @@ -6,7 +6,7 @@ export default () => {

- +
diff --git a/src/components/sidebar/index.tsx b/src/components/sidebar/index.tsx index a31145e..a5d9190 100644 --- a/src/components/sidebar/index.tsx +++ b/src/components/sidebar/index.tsx @@ -1,4 +1,4 @@ -const dataset = document.getElementById("html")!.dataset; +const dataset = document.getElementById("html")?.dataset!; export default () => { return ( @@ -7,16 +7,16 @@ export default () => {
- + . - + - +
- +
Name
{ e.preventDefault(); const form = document.forms.namedItem("name"); @@ -25,13 +25,13 @@ export default () => { } }}> - +
- +
Search Engine
{ e.preventDefault(); const form = document.forms.namedItem("searchEngine"); @@ -41,15 +41,15 @@ export default () => { } }}> - +
- +
- +
Weather Location
{ e.preventDefault(); const form = document.forms.namedItem("weatherLocation"); @@ -58,45 +58,45 @@ export default () => { } }}> - +
- +
Color Scheme
- +
Theme
- + - +
About

halfPage is a minimalistic startpage, built on only open-source software.

halfmoon wttr.in diff --git a/src/main.tsx b/src/main.tsx index b1cc976..b30ffd1 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -5,7 +5,7 @@ import 'halfmoon/css/cores/halfmoon.modern.css'; import 'halfmoon/css/cores/halfmoon.elegant.css'; import App from './components/app.tsx' -const dataset = document.getElementById("html")!.dataset; +const dataset = document.getElementById("html")?.dataset!; const colorScheme = localStorage.getItem("colorScheme") || (window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light") || "auto"; if (colorScheme === "auto") { diff --git a/tsconfig.app.json b/tsconfig.app.json index d5cbc23..b0fe4f6 100644 --- a/tsconfig.app.json +++ b/tsconfig.app.json @@ -10,8 +10,6 @@ "react": ["./node_modules/preact/compat/"], "react-dom": ["./node_modules/preact/compat/"] }, - - /* Bundler mode */ "moduleResolution": "bundler", "allowImportingTsExtensions": true, "isolatedModules": true, @@ -19,8 +17,7 @@ "noEmit": true, "jsx": "react-jsx", "jsxImportSource": "preact", - - /* Linting */ + "strict": true, "noUnusedLocals": true, "noUnusedParameters": true, diff --git a/tsconfig.node.json b/tsconfig.node.json index db0becc..c921d97 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -6,14 +6,12 @@ "module": "ESNext", "skipLibCheck": true, - /* Bundler mode */ "moduleResolution": "bundler", "allowImportingTsExtensions": true, "isolatedModules": true, "moduleDetection": "force", "noEmit": true, - /* Linting */ "strict": true, "noUnusedLocals": true, "noUnusedParameters": true,