-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update tsconfig and add type="module" (#1151)
* chore: update tsconfig and add type="module" * chore: run prettier * chore: update file extension
- Loading branch information
1 parent
50a3d15
commit 95a42d0
Showing
3 changed files
with
23 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,8 @@ | |
"description": "A TypeScript starter for Next.js that includes all you need to build amazing projects", | ||
"version": "1.0.0", | ||
"private": true, | ||
"author": "João Pedro Schmitz <[email protected]> (@jpedroschmitz)", | ||
"type": "module", | ||
"author": "João Pedro Schmitz (@jpedroschmitz)", | ||
"license": "MIT", | ||
"keywords": [ | ||
"nextjs", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,35 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "es5", | ||
"lib": ["dom", "dom.iterable", "esnext"], | ||
"allowJs": true, | ||
"skipLibCheck": true, | ||
"strict": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"noEmit": true, | ||
/* Base Options: */ | ||
"esModuleInterop": true, | ||
"module": "esnext", | ||
"moduleResolution": "node", | ||
"skipLibCheck": true, | ||
"target": "es2022", | ||
"allowJs": true, | ||
"resolveJsonModule": true, | ||
"moduleDetection": "force", | ||
"isolatedModules": true, | ||
|
||
/* Strictness */ | ||
"strict": true, | ||
"noUncheckedIndexedAccess": true, | ||
"checkJs": true, | ||
|
||
/* Bundled projects */ | ||
"lib": ["dom", "dom.iterable", "es2022"], | ||
"noEmit": true, | ||
"module": "ESNext", | ||
"moduleResolution": "Bundler", | ||
"jsx": "preserve", | ||
"plugins": [{ "name": "next" }], | ||
"incremental": true, | ||
|
||
/* Path Aliases */ | ||
"baseUrl": ".", | ||
"paths": { | ||
"@/*": ["./src/*"], | ||
"@/public/*": ["./public/*"] | ||
}, | ||
"plugins": [ | ||
{ | ||
"name": "next" | ||
} | ||
] | ||
} | ||
}, | ||
"exclude": ["node_modules"], | ||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"] | ||
"include": [".eslintrc.mjs", "next-env.d.ts", "**/*.ts", "**/*.tsx", "**/*.cjs", "**/*.js", ".next/types/**/*.ts"] | ||
} |