Skip to content

Commit c5256da

Browse files
committed
Make tsconfig as strict as possible
This also makes it explicit which exceptions from full strictness that we rely on: - noImplicitThis: Mostly in backbone patch - strictPropertyInitialization: a bunch of properties initialized during backbone init calls is not covered correctly for this strict check - strictFunctionTypes: The ISerializer interface makes all the arguments optional to allow simpler definitions (`deserializer: (value: any): unknown => { ... }`). However, this does cause `unpack_models` to be typed
1 parent c9c9453 commit c5256da

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tsconfigbase.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@
1515
"noUnusedLocals": true,
1616
"preserveWatchOutput": true,
1717
"resolveJsonModule": true,
18-
"strictNullChecks": true,
18+
"strict": true,
19+
"noImplicitThis": false,
20+
"strictPropertyInitialization": false,
21+
"strictFunctionTypes": false,
1922
"target": "es2017"
2023
}
2124
}

0 commit comments

Comments
 (0)