Skip to content

Commit

Permalink
feat: Update astro configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
LucJosin committed Sep 16, 2023
1 parent e4702cb commit bb951a9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ pnpm-debug.log*

# macOS-specific files
.DS_Store

# astro
.astro
2 changes: 2 additions & 0 deletions src/env.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
/* eslint-disable @typescript-eslint/triple-slash-reference */
/// <reference path="../.astro/types.d.ts" />
/// <reference types="astro/client" />
3 changes: 3 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"extends": "astro/tsconfigs/base",
"compilerOptions": {
// Enable top-level await, and other modern ESM features.
"target": "ESNext",
Expand All @@ -15,6 +16,8 @@
"strict": true,
// Define the base url and paths.
"baseUrl": "./src",
// When type checking, take into account null and undefined.
"strictNullChecks": true,
"paths": {
"@components/*": ["components/*"],
"@constants/*": ["constants/*"],
Expand Down

0 comments on commit bb951a9

Please sign in to comment.