Add more TS lints and fix types (#6037)

* Add as const lint

* Add lint for no implied eval

* Fix incorrect type and add lints

* Add more type lints

* Remove redundant type assertions and add lint

* Fix to turn off incorrect base rules

* Fix yarn lint workflow to wait for build:wasm

* Change so that we don't build:wasm more than once in the workflow
This commit is contained in:
Jonathan Tran
2025-03-28 00:24:24 -04:00
committed by GitHub
parent d1f811f91d
commit cc2efd316c
20 changed files with 163 additions and 65 deletions

View File

@ -98,9 +98,7 @@ function CommandBarHeader({ children }: React.PropsWithChildren<object>) {
.map(([argName, arg], i) => {
const argValue =
(typeof argumentsToSubmit[argName] === 'function'
? (argumentsToSubmit[argName] as Function)(
commandBarState.context
)
? argumentsToSubmit[argName](commandBarState.context)
: argumentsToSubmit[argName]) || ''
return (