forked from blefnk/relivator-nextjs-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
85 lines (85 loc) · 2.46 KB
/
tsconfig.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{
"compilerOptions": {
/**
* In this file you can set the options for the TypeScript compiler.
* You can hover over on each option to get more information about.
* Hint: You can also press Shift+Space to get auto-completion.
* Lean more by checking the official TypeScript documentation:
* @see https://typescriptlang.org/docs/handbook/tsconfig-json
* @see https://totaltypescript.com/tsconfig-cheat-sheet
*/
"lib": ["dom", "dom.iterable", "esnext"],
"moduleResolution": "bundler",
"module": "esnext",
"target": "esnext",
"jsx": "preserve",
"baseUrl": ".",
"paths": {
"~/*": ["./src/*"],
"@/*": ["./public/*"]
},
"plugins": [
{
/**
* Next.js has built-in support for TypeScript, using plugin below.
* But while you use `pnpm build`, it stops on the first type errors.
* So you can use `pnpm typecheck` to check all type warns/errors at once.
*/
"name": "next"
},
{
/**
* Atomic CSS in the style attribute. Type-safe static styles with
* theming, responsive variant support, and no bundler integration.
* @see https://github.com/tokenami/tokenami#readme
*/
"name": "@tokenami/ts-plugin"
}
],
"noEmit": true,
"allowJs": true,
"checkJs": true,
"sourceMap": true,
"incremental": true,
"skipLibCheck": true,
"removeComments": true,
"esModuleInterop": true,
"isolatedModules": true,
"resolveJsonModule": true,
"downlevelIteration": true,
"strictFunctionTypes": true,
"noUncheckedIndexedAccess": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
/**
* These options below can be dangerously set to false,
* while you're incrementally move to full type-safety.
*/
"strictPropertyInitialization": true,
"verbatimModuleSyntax": true,
"strictNullChecks": true,
"noImplicitAny": false,
"alwaysStrict": true,
"strict": true
},
"include": [
"eslint.config.ts",
".eslintrc.cjs",
"next-env.d.ts",
"**/*.cjs",
"**/*.cjs",
"**/*.mjs",
"**/*.mjs",
"**/*.ts",
"**/*.tsx",
"**/*.d.ts",
"**/*.test.ts",
"jest.config.js",
".storybook/**/*.ts",
".next/types/**/*.ts",
".tokenami/tokenami.env.d.ts",
".tokenami/tokenami.env.ci.d.ts",
"src/tests/ava/swc/tests/ava/**/*.js"
],
"exclude": ["node_modules"]
}