enable IntelliSense and type checking

This commit is contained in:
array-in-a-matrix 2024-01-11 19:43:23 -05:00
parent 9ec321cb6c
commit bc60b3a8ba
2 changed files with 3 additions and 2 deletions

View file

@ -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.

View file

@ -1,6 +1,7 @@
{
"extends": "astro/tsconfigs/base",
"compilerOptions": {
"strictNullChecks": true
"strictNullChecks": true,
"allowJs": true
}
}