Skip to content

Commit b6a5206

Browse files
author
Sirius
committed
kaizen: replace eslint-disable with idiomatic _kind in PrimitiveDetail
Use the underscore-prefix convention (already configured in ESLint as varsIgnorePattern: '^_') to signal that is intentionally unused after destructuring. Removes the inline eslint-disable comment in favour of the project's established pattern. No behaviour change.
1 parent 45ec721 commit b6a5206

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/inspector/src/dashboard/react/components/PrimitiveDetail.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1307,8 +1307,7 @@ export function PrimitiveDetail({
13071307
const { icon, label } = getActionLabel(primitive.kind);
13081308

13091309
// Extract data without the kind field for JSON export
1310-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
1311-
const { kind, ...primitiveData } = primitive;
1310+
const { kind: _kind, ...primitiveData } = primitive;
13121311

13131312
const handleBack = useCallback(() => {
13141313
setMode("browse");

0 commit comments

Comments
 (0)