Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
feat: error on warnings biome (#702)
gbirman37a2487dd5f6
diff --git a/.github/workflows/code-check-infra.yml b/.github/workflows/code-check-infra.ymlindex 267132429b..b3ffdf9709 100644--- a/.github/workflows/code-check-infra.yml+++ b/.github/workflows/code-check-infra.yml@@ -38,7 +38,7 @@ jobs:version: 2.2.6- name: Run Biomeworking-directory: infra- run: biome ci --changed --no-errors-on-unmatched+ run: biome ci --changed --no-errors-on-unmatched --error-on-warningscheck:needs: path-checkdiff --git a/.github/workflows/web-app-check-main.yml b/.github/workflows/web-app-check-main.ymlindex e9adda7cf1..fdbff72957 100644--- a/.github/workflows/web-app-check-main.yml+++ b/.github/workflows/web-app-check-main.yml@@ -63,7 +63,7 @@ jobs:version: 2.2.6- name: Run Biomeworking-directory: js/app- run: biome ci --changed --no-errors-on-unmatched+ run: biome ci --changed --no-errors-on-unmatched --error-on-warningstailwind:needs: path-checkdiff --git a/js/app/packages/app/component/SoupContext.tsx b/js/app/packages/app/component/SoupContext.tsxindex 617cd98f31..4f1087df16 100644--- a/js/app/packages/app/component/SoupContext.tsx+++ b/js/app/packages/app/component/SoupContext.tsx@@ -229,7 +229,6 @@ export function createNavigationEntityListShortcut({virtualizerHandleSignal: [virtualizerHandle],selectedView,setSelectedView,- // selectedEntitySignal: [selectedEntity, setSelectedEntity],entitiesSignal: [entities],actionRegistry,} = unifiedListContext;@@ -705,15 +704,6 @@ export function createNavigationEntityListShortcut({return viewData()?.highlightedId;};- const [jumpedToEnd, setJumpedToEnd] = createSignal(false);-- const getSelectedEntityEl = () => {- const entity = selectedEntity();- if (!entity) return;-- return entityListRef()?.querySelector(`[data-entity-id="${entity.id}"]`);- };-const getEntityElAtIndex = (index: number) => {const entity = entities()?.at(index);if (!entity) return;@@ -854,7 +844,6 @@ export function createNavigationEntityListShortcut({axis,mode,});- setJumpedToEnd(false);setViewDataStore(selectedView(), 'hasUserInteractedEntity', true);@@ -871,8 +860,6 @@ export function createNavigationEntityListShortcut({});if (mode === 'jump') {- setJumpedToEnd(true);-await new Promise<true>((resolve) =>requestAnimationFrame(() => {requestAnimationFrame(() => {@@ -949,39 +936,6 @@ export function createNavigationEntityListShortcut({unifiedListContext._setNavigateThroughList(navigateThroughList);- const scrollToEntityFromId = async () => {- const index = getHighlightedEntity()?.index;- if (!index) return;-- virtualizerHandle()?.scrollToIndex(index, {- align: 'nearest',- });-- await new Promise<true>((resolve) =>- requestAnimationFrame(() => {- requestAnimationFrame(() => {- resolve(true);- });- })- );- };-- const addScrollEventToList = () => {- const listScrollEl = entityListRef();-- const onListScroll = () => {- if (listScrollEl) {- setViewDataStore(- selectedView(),- 'scrollOffset',- listScrollEl.scrollTop- );- }- };-- listScrollEl?.addEventListener('scroll', onListScroll);- };-const isEntitySelected = (entityID: string) => {return (viewData()?.selectedEntities.find((e) => e.id === entityID) !== undefineddiff --git a/js/app/packages/service-clients/service-gql/client.ts b/js/app/packages/service-clients/service-gql/client.tsindex 060d6ed8e9..0572a2f6ec 100644--- a/js/app/packages/service-clients/service-gql/client.ts+++ b/js/app/packages/service-clients/service-gql/client.ts@@ -111,7 +111,7 @@ export const gqlServiceClient = {organizationId: String(result.organizationId),organizationName: result.organizationName,};- } catch (error) {+ } catch (_error) {return {organizationId: undefined,organizationName: undefined,