build(types): ENG-04 add strict projects and legacy compiler checks

This commit is contained in:
Harvey Zhao committed 2026-09-10 21:21:39 +08:00
1 parent 09902b8b8c
commit 771482426f
22 files changed
+346 -49

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
const element: HTMLDivElement = document.createElement('div')
const value: string | undefined = ['first'][1]
void [element, value]
// @ts-expect-error Node globals must not leak into browser packages.
globalThis.process.cwd() // eslint-disable-line node/prefer-global/process -- Check that browser projects cannot see ambient Node globals.
// @ts-expect-error Array indexing may return undefined in implementation checks.
const unchecked: string = ['first'][1]
void unchecked