From bc60b3a8ba0524bbf7149087758398f581e18f93 Mon Sep 17 00:00:00 2001 From: array-in-a-matrix Date: Thu, 11 Jan 2024 19:43:23 -0500 Subject: [PATCH] enable IntelliSense and type checking --- README.md | 2 +- tsconfig.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 87357b8..f9f2abf 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ Inside of your Astro project, you'll see the following folders and files: └── tsconfig.json ``` -Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name. +Astro looks for `.astro`, `.md` and `.mdx` files in the `src/pages/` directory. Each page is exposed as a route based on its file name. There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components. diff --git a/tsconfig.json b/tsconfig.json index e8a9e55..7472ab1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,7 @@ { "extends": "astro/tsconfigs/base", "compilerOptions": { - "strictNullChecks": true + "strictNullChecks": true, + "allowJs": true } } \ No newline at end of file