Skip to content

Commit dab56b8

Browse files
committed
fix: resolve typescript linting errors and update dependencies
- Replace @ts-ignore with @ts-expect-error for better type safety - Update @tailwindcss/vite from 4.0.14 to 4.1.17 for improved compatibility - Refactor PostDetails.astro to use official Astro destructuring pattern - Remove unnecessary @ts-expect-error comment in PostDetails.astro This eliminates all ESLint and TypeScript check errors while following TypeScript best practices.
1 parent f350f3e commit dab56b8

File tree

4 files changed

+216
-172
lines changed

4 files changed

+216
-172
lines changed

astro.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default defineConfig({
3737
},
3838
},
3939
vite: {
40-
// @ts-ignore - Tailwind CSS Vite plugin type compatibility
40+
// @ts-expect-error - Tailwind CSS Vite plugin type compatibility issue
4141
plugins: [tailwindcss()],
4242
optimizeDeps: {
4343
exclude: ["@resvg/resvg-js"],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"@sanity/astro": "^3.2.10",
2424
"@sanity/client": "^7.12.1",
2525
"@sanity/types": "^4.15.0",
26-
"@tailwindcss/vite": "^4.0.14",
26+
"@tailwindcss/vite": "^4.1.17",
2727
"@types/react": "^19.2.5",
2828
"@types/react-dom": "^19.2.3",
2929
"astro": "^5.5.2",

0 commit comments

Comments
 (0)