From 9f82e199579e07b9c8c87ea7d4ff45e2ea005590 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sat, 11 May 2024 23:14:07 +0100 Subject: [PATCH] Sets aliases for astro imports --- tsconfig.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index dffb624..2643f16 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -25,8 +25,14 @@ "isolatedModules": true, "noEmit": true, "jsx": "react-jsx", + "jsxImportSource": "react", "baseUrl": "src", - "jsxImportSource": "react" + "paths": { + "@/*": ["*"], + "@components/*": ["components/*"], + "@layouts/*": ["layouts/*"], + "@pages/*": ["pages/*"], + } }, "include": [ "src"