Skip to content

Commit f78b6ee

Browse files
committed
Add and use knipIgnoreUnusedButUsedByStorybook
1 parent d8e57c6 commit f78b6ee

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

knip.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ const config: KnipConfig = {
6666
},
6767
tags: [
6868
'-knipIgnoreUnusedButUsedByCustomNodes',
69-
'-knipIgnoreUnusedButUsedByVueNodesBranch'
69+
'-knipIgnoreUnusedButUsedByVueNodesBranch',
70+
'-knipIgnoreUnusedButUsedByStorybook'
7071
]
7172
}
7273

src/storybook/mocks/useJobActions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export function setMockJobActions(actions: Record<string, JobAction[]>) {
99
actionsByJobId.value = actions
1010
}
1111

12+
/** @knipIgnoreUnusedButUsedByStorybook */
1213
export function useJobActions() {
1314
function getJobActions(job: JobListItem) {
1415
return actionsByJobId.value[job.id] ?? []

src/storybook/mocks/useJobList.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export function setMockJobItems(items: JobListItem[]) {
4343
jobItems.value = items
4444
}
4545

46+
/** @knipIgnoreUnusedButUsedByStorybook */
4647
export function useJobList() {
4748
return {
4849
selectedJobTab,

0 commit comments

Comments
 (0)