Repository navigation
chore(dashboard): enable useConsistentTypeDefinitions - #5447
Merged
Merged
Conversation
Contributor
Vercel Deployment Info - dashboard
|
robertkasza
force-pushed
the
chore/dashboard-consistent-type-definitions
branch
from
November 25, 2026 08:03
532ea7e to
e65def2
Compare
albertomolinafelipe
approved these changes
Nov 25, 2026
The JS design rules ask for interface for object shapes and type for unions, but nothing enforced it. Enable Biome's useConsistentTypeDefinitions (default style: interface) and apply its fix, which converts 78 object type aliases in 60 files. Unions and intersections are untouched. Interfaces have no implicit index signature, so the DataGrid test's MockDataDetails no longer fit UnknownDataGridRow; it now extends that type. Checks: biome check, tsc --noEmit, and Vitest on DataGrid.test.tsx. The other changes are type-only.
robertkasza
force-pushed
the
chore/dashboard-consistent-type-definitions
branch
from
November 25, 2026 13:18
e65def2 to
fca9f80
Compare
robertkasza
enabled auto-merge (squash)
November 25, 2026 13:18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist
biome check,tsc --noEmit, Vitest onDataGrid.test.tsx; full suite left to CI)Goal
The dashboard's JS design rules call for
interfaceon object shapes andtypeon unions and other composite types, but no lint rule enforced it, so both styles coexisted. This branch makes Biome enforce the rule for the wholedashboard/workspace and brings existing code into line. Nothing should change at runtime: the branch only touches types, lint config and one test type.Type: Refactoring
Changes
dashboard/biome.jsonturns onstyle/useConsistentTypeDefinitionsaterrorlevel with its defaultinterfacestyle.biome checknow rejects any newtype X = { ... }object alias. Union, intersection and function aliases are still allowed.interface X { ... }declarations. Members, optional markers, JSDoc and exports are unchanged. Intersections that sit next to them, such asMetadataRemoteRelationship = RemoteRelationshipItem & {...}, staytypealiases. All touched files are ES modules, so the new interfaces can't merge with global declarations.MockDataDetailsinDataGrid.test.tsx, which must satisfyTColumnData extends UnknownDataGridRow(Record<string, unknown>). It now declaresextends UnknownDataGridRow.tsc --noEmitreports no other assignability breaks.Key files
dashboard/biome.json(+1/-0): enables the rule.dashboard/src/features/orgs/projects/storage/dataGrid/components/DataGrid/DataGrid.test.tsx(+3/-2): the only hand-written change, the index-signature fix.dashboard/src/**, 59 files (+161/-151 total): mechanical alias-to-interface autofix, including 4 test files.