-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtsconfig.json
71 lines (70 loc) · 2.48 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
{
"compilerOptions": {
"removeComments": true,
"outDir": "dist",
"lib": [
"ES2022"
],
"target": "ES2022",
"module": "ES2022",
"strict": true,
"noImplicitAny": false,
"strictNullChecks": true,
"noImplicitThis": true,
"alwaysStrict": true,
"strictPropertyInitialization": false,
"allowSyntheticDefaultImports": true,
// "baseUrl": "./src/",
// "moduleResolution": "Node",
"experimentalDecorators": true,
// strictest begin
"allowUnusedLabels": false,
"allowUnreachableCode": false,
"exactOptionalPropertyTypes": true,
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"noPropertyAccessFromIndexSignature": false,
"noUncheckedIndexedAccess": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"isolatedModules": true,
"checkJs": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
// strictest end
"paths": {
// Generated by ts-for-gir; we don't generate a tsconfig.alias.json,
// because we'd like to have unversioned aliases as GNOME shell enforces
// a specific version anyway, and we can't merge paths declarations, so
// we couldn't add our own.
"gi://GObject": ["./@types/gir-generated/gobject-2.0.d.ts"],
"gi://GLib": ["./@types/gir-generated/glib-2.0.d.ts"],
"gi://Gio": ["./@types/gir-generated/gio-2.0.d.ts"],
"gi://Gtk": ["./@types/gir-generated/gtk-4.0.d.ts"],
"gi://Adw": ["./@types/gir-generated/adw-1.d.ts"],
"gi://St": ["./@types/gir-generated/st-13.d.ts"],
"gi://Clutter": ["./@types/gir-generated/clutter-13.d.ts"],
"gi://GnomeDesktop": ["./@types/gir-generated/gnomedesktop-4.0.d.ts"],
"@girs/st-12": ["./@types/gir-generated/st-13.d.ts"],
// Our own types. First as they are seen in GNOME shell extensions,
// and then how they're seen by prefs.js.
"resource:///org/gnome/shell/*": ["./@types/gnome-shell/*"],
"resource:///org/gnome/shell/extensions/extension.js": ["./@types/gnome-shell/extensions/extension.d.ts"],
"resource:///org/gnome/Shell/Extensions/js/*": ["./@types/gnome-shell/*"]
}
},
"include": [
"./src/**/*.ts",
// Include GJS global environment types
"@types/gir-generated/ambient.d.ts",
"@types/gir-generated/gjs.d.ts",
"@types/gir-generated/dom.d.ts"
],
"exclude": [
".ts-for-girrc.js",
".eslintrc.cjs",
"./dist"
]
}