-
Notifications
You must be signed in to change notification settings - Fork 13
/
tsconfig.json
34 lines (34 loc) · 1.17 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
{
"$schema": "https://json.schemastore.org/tsconfig",
/**
* Astro's 'strict' config adds `"strict": true`, which is a best practice.
* Additional strictness can be added by extending "astro/tsconfigs/strictest"
* - https://www.typescriptlang.org/tsconfig#strict
*/
"extends": "astro/tsconfigs/strictest",
"compilerOptions": {
"paths": {
"@/*": ["./src/*"]
},
"plugins": [{ "name": "@astrojs/ts-plugin" }],
"jsx": "react-jsx",
"jsxImportSource": "react",
// Allow JS files but check them for errors
"allowJs": true,
"checkJs": true,
// Nice in theory, but 3rd party types often don't get this right
"exactOptionalPropertyTypes": false,
// Linter should unused locals/parameters
"noUnusedLocals": false,
"noUnusedParameters": false,
/*
The defaults for 'target' and 'module' in astro's tsconfig are both ESNEXT.
ESNext *target* is inconsistent across TS versions. ESNext *module* may
add support for features not yet in the ECMAScript standard (stage 3)
See: https://www.typescriptlang.org/tsconfig#target
*/
"target": "ES2022",
"module": "ES2022"
},
"exclude": ["node_modules", "dist"]
}