forked from ReolinkCameraAPI/reolinkapipy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
51 lines (51 loc) · 1.68 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
{
"compileOnSave": true,
"compilerOptions": {
// do not compile anything, this file is just to configure type checking
// the compilation is configured in tsconfig.build.json
"noEmit": true,
// check JS files, but do not compile them => tsconfig.build.json
"allowJs": true,
"checkJs": true,
"skipLibCheck": true, // Don't report errors in 3rd party definitions
"noEmitOnError": true,
"outDir": "./build/",
"removeComments": false,
"module": "esnext",
"moduleResolution": "bundler",
// this is necessary for the automatic typing of the adapter config
"resolveJsonModule": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
// Support React
"jsx": "react",
// Set this to false if you want to disable the very strict rules (not recommended)
"strict": true,
"noUncheckedIndexedAccess": true /* Add 'undefined' to a type when accessed using an index. */,
// Or enable some of those features for more fine-grained control
// "strictNullChecks": true,
// "strictPropertyInitialization": true,
// "strictBindCallApply": true,
// "noImplicitAny": true,
// "noUnusedLocals": true,
// "noUnusedParameters": true,
"target": "ES2022",
"lib": ["ES2023"],
"sourceMap": true,
"inlineSourceMap": false,
"types": ["vitest/globals"],
"paths": {
"@mixins/*": ["./src/mixins/*"],
"@handlers/*": ["./src/handlers/*"],
"@interfaces/*": ["./src/interfaces/*"],
"@utils/*": ["./src/utils/*"]
}
},
"include": [
"src/**/*.ts",
"tests/**/*.ts",
"eslint.config.mjs",
"vitest.config.mjs"
],
"exclude": ["build/**", "node_modules/**"]
}