mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-20 04:01:20 -08:00
build(types): ENG-04 add strict projects and legacy compiler checks
This commit is contained in:
1 parent
09902b8b8c
commit
771482426f
22 files changed
+346
-49
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user