diff --git a/package.json b/package.json index fce545129..5964d2d2c 100644 --- a/package.json +++ b/package.json @@ -72,12 +72,12 @@ "@datadog/datadog-ci/ws": "^7.5.10", "@microsoft/api-extractor/semver": "^7.5.4", "@rushstack/node-core-library/semver": "^7.5.4", - "@typescript-eslint/eslint-plugin": "^7.12.0", - "@typescript-eslint/parser": "^7.12.0", + "@typescript-eslint/eslint-plugin": "^8.20.0", + "@typescript-eslint/parser": "^8.20.0", "@types/react": "file:./packages/frontend-2/type-augmentations/stubs/types__react", "core-js": "3.22.4", "core-js-compat/semver": "^7.5.4", - "eslint": "^9.4.0", + "eslint": "^9.20.1", "eslint-config-prettier": "^9.1.0", "levelup/bl": ">=1.2.3", "levelup/semver": ">=5.7.2", @@ -88,9 +88,10 @@ "rollup-plugin-terser/serialize-javascript": ">=6.0.2", "simple-update-notifier/semver": "^7.5.4", "tslib": "^2.3.1", - "typescript": "^5.2.2", - "typescript-eslint": "^7.12.0", - "wait-on": ">=7.2.0" + "typescript": "^5.7.3", + "typescript-eslint": "^8.20.0", + "wait-on": ">=7.2.0", + "vue-tsc@npm:2.2.2/@vue/language-core": "2.2.0" }, "config": { "commitizen": { diff --git a/packages/dui3/eslint.config.mjs b/packages/dui3/eslint.config.mjs index 859b12062..efa50520e 100644 --- a/packages/dui3/eslint.config.mjs +++ b/packages/dui3/eslint.config.mjs @@ -57,7 +57,7 @@ const configs = await withNuxt([ '@typescript-eslint/no-for-in-array': ['error'], '@typescript-eslint/restrict-plus-operands': ['error'], '@typescript-eslint/await-thenable': ['warn'], - '@typescript-eslint/ban-types': ['warn'], + '@typescript-eslint/no-restricted-types': ['warn'], 'require-await': 'off', '@typescript-eslint/require-await': 'error', 'no-undef': 'off', @@ -105,7 +105,7 @@ const configs = await withNuxt([ rules: { 'no-var': 'off', '@typescript-eslint/no-explicit-any': 'off', - '@typescript-eslint/ban-types': 'off' + '@typescript-eslint/no-restricted-types': 'off' } } ]).prepend([ diff --git a/packages/dui3/lib/accounts/composables/setup.ts b/packages/dui3/lib/accounts/composables/setup.ts index b40ec3670..06da215de 100644 --- a/packages/dui3/lib/accounts/composables/setup.ts +++ b/packages/dui3/lib/accounts/composables/setup.ts @@ -52,7 +52,7 @@ export function useAccountsSetup(): DUIAccountsState { try { await acc.client.query({ query: accountTestQuery }) acc.isValid = true - } catch (error) { + } catch { // TODO: properly dispose and kill this client. It's unclear how to do it. acc.isValid = false // NOTE: we do not want to delete the client, as we might want to "refresh" in diff --git a/packages/dui3/lib/bridge/generic.ts b/packages/dui3/lib/bridge/generic.ts index 72a18cc57..7b441868c 100644 --- a/packages/dui3/lib/bridge/generic.ts +++ b/packages/dui3/lib/bridge/generic.ts @@ -17,7 +17,7 @@ export class GenericBridge extends BaseBridge { try { availableMethodNames = await this.bridge.GetBindingsMethodNames() - } catch (e) { + } catch { console.warn(`Failed to get method names.`) return false } diff --git a/packages/dui3/package.json b/packages/dui3/package.json index 40206e0c3..6c2bf9a0e 100644 --- a/packages/dui3/package.json +++ b/packages/dui3/package.json @@ -73,7 +73,7 @@ "tailwindcss": "^3.3.2", "type-fest": "^3.5.1", "typescript": "^4.8.3", - "vue-tsc": "1.3.4" + "vue-tsc": "^2.2.2" }, "installConfig": { "hoistingLimits": "workspaces" diff --git a/packages/dui3/pages/test.vue b/packages/dui3/pages/test.vue index 9eb0837b8..5f01daa83 100644 --- a/packages/dui3/pages/test.vue +++ b/packages/dui3/pages/test.vue @@ -66,7 +66,7 @@ const tests = ref([ } ).sayHi('Speckle', 0) // note, invalid on purpose, it looks long because ts needs to be happy return 'not ok' - } catch (e) { + } catch { return 'ok' } }, diff --git a/packages/frontend-2/components/automate/automation/CreateDialog.vue b/packages/frontend-2/components/automate/automation/CreateDialog.vue index 20f969b7b..5082ebdf7 100644 --- a/packages/frontend-2/components/automate/automation/CreateDialog.vue +++ b/packages/frontend-2/components/automate/automation/CreateDialog.vue @@ -420,7 +420,7 @@ const onDetailsSubmit = handleDetailsSubmit(async () => { parameters: encryptedParams } ], - triggerDefinitions: { + triggerDefinitions: { version: Automate.AutomateTypes.TRIGGER_DEFINITIONS_SCHEMA_VERSION, definitions: [ { @@ -428,7 +428,7 @@ const onDetailsSubmit = handleDetailsSubmit(async () => { modelId: model.id } ] - } + } satisfies Automate.AutomateTypes.TriggerDefinitionsSchema } }, { hideSuccessToast: true } diff --git a/packages/frontend-2/components/automate/automation/create-dialog/SelectFunctionStep.vue b/packages/frontend-2/components/automate/automation/create-dialog/SelectFunctionStep.vue index 46c327ae7..b94d3210c 100644 --- a/packages/frontend-2/components/automate/automation/create-dialog/SelectFunctionStep.vue +++ b/packages/frontend-2/components/automate/automation/create-dialog/SelectFunctionStep.vue @@ -39,7 +39,7 @@ import { useDebouncedTextInput } from '@speckle/ui-components' import { useQueryLoading } from '@vue/apollo-composable' import { graphql } from '~/lib/common/generated/gql' import type { CreateAutomationSelectableFunction } from '~/lib/automate/helpers/automations' -import type { Optional } from '@speckle/shared' +import type { Nullable, Optional } from '@speckle/shared' import { usePaginatedQuery } from '~/lib/common/composables/graphql' const searchQuery = graphql(` @@ -91,7 +91,8 @@ const { query: searchQuery, baseVariables: computed(() => ({ workspaceId: props.workspaceId ?? '', - search: search.value?.length ? search.value : '' + search: search.value?.length ? search.value : '', + cursor: null as Nullable })), resolveKey: (vars) => [vars.search || ''], resolveCurrentResult: (res) => res?.workspace?.automateFunctions, diff --git a/packages/frontend-2/components/automate/viewer/Panel.vue b/packages/frontend-2/components/automate/viewer/Panel.vue index 8bc685842..1bb55c061 100644 --- a/packages/frontend-2/components/automate/viewer/Panel.vue +++ b/packages/frontend-2/components/automate/viewer/Panel.vue @@ -26,7 +26,7 @@ diff --git a/packages/ui-components/src/components/form/Switch.stories.ts b/packages/ui-components/src/components/form/Switch.stories.ts index 4b3d0f2cc..b616116ac 100644 --- a/packages/ui-components/src/components/form/Switch.stories.ts +++ b/packages/ui-components/src/components/form/Switch.stories.ts @@ -41,7 +41,7 @@ export const Default: SwitchStoryType = { `, methods: { onModelUpdate(value: boolean) { - args['update:modelValue'] && args['update:modelValue'](value) + if (args['update:modelValue']) args['update:modelValue'](value) ctx.updateArgs({ ...args, modelValue: value }) } } diff --git a/packages/ui-components/src/components/layout/Dialog.vue b/packages/ui-components/src/components/layout/Dialog.vue index bde6bcf07..64a39ec8c 100644 --- a/packages/ui-components/src/components/layout/Dialog.vue +++ b/packages/ui-components/src/components/layout/Dialog.vue @@ -1,6 +1,6 @@