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

@ -302,7 +302,7 @@ export function createSettings() {
defaultUnit: new Setting<BaseUnit>({
defaultValue: 'mm',
description: 'The default unit to use in modeling dimensions',
validate: (v) => baseUnitsUnion.includes(v as BaseUnit),
validate: (v) => baseUnitsUnion.includes(v),
commandConfig: {
inputType: 'options',
defaultValueFromContext: (context) =>
@ -332,7 +332,7 @@ export function createSettings() {
mouseControls: new Setting<CameraSystem>({
defaultValue: 'Zoo',
description: 'The controls for how to navigate the 3D view',
validate: (v) => cameraSystems.includes(v as CameraSystem),
validate: (v) => cameraSystems.includes(v),
hideOnLevel: 'project',
commandConfig: {
inputType: 'options',