Skip to content

Commit d2c0516

Browse files
committed
style(headless): fix linting
1 parent 04069d3 commit d2c0516

File tree

4 files changed

+27
-30
lines changed

4 files changed

+27
-30
lines changed

packages/kit-headless/src/components/autocomplete/autocomplete-option.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import {
2+
$,
23
Slot,
3-
useSignal,
4-
useContext,
54
component$,
6-
$,
7-
useVisibleTask$,
5+
useContext,
6+
useSignal,
87
type QwikIntrinsicElements,
98
type QwikKeyboardEvent
109
} from '@builder.io/qwik';
@@ -18,7 +17,6 @@ export type OptionProps = {
1817
export const AutocompleteOption = component$((props: OptionProps) => {
1918
const ref = useSignal<HTMLElement>();
2019
const contextService = useContext(AutocompleteContextId);
21-
const optionElement = ref.value;
2220

2321
contextService.options = [...contextService.options, ref];
2422

packages/kit-headless/src/components/autocomplete/autocomplete.stories.tsx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { Meta, StoryObj } from 'storybook-framework-qwik';
2-
import { within } from '@storybook/testing-library';
32
import './autocompleteTest.css';
43

54
/*
@@ -92,13 +91,13 @@ const fruits = [
9291
];
9392

9493
import {
95-
AutocompleteRoot,
96-
AutocompleteLabel,
97-
AutocompleteTrigger,
98-
AutocompleteInput,
9994
AutocompleteControl,
95+
AutocompleteInput,
96+
AutocompleteLabel,
10097
AutocompleteListbox,
10198
AutocompleteOption,
99+
AutocompleteRoot,
100+
AutocompleteTrigger,
102101
type AutocompleteRootProps
103102
} from './index';
104103

@@ -142,10 +141,10 @@ const RegularAutocomplete = () => (
142141
);
143142

144143
export const Primary: Story = {
145-
render: () => RegularAutocomplete(),
146-
play: ({ canvasElement }) => {
147-
const canvas = within(canvasElement);
148-
}
144+
render: () => RegularAutocomplete()
145+
// play: ({ canvasElement }) => {
146+
// const canvas = within(canvasElement);
147+
// }
149148
};
150149

151150
export default meta;

packages/kit-headless/src/components/pagination/pagination.stories.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { Meta, StoryObj } from 'storybook-framework-qwik';
22
import { Pagination, PaginationProps } from './pagination';
33

4-
import { userEvent, within } from '@storybook/testing-library';
54
import { expect } from '@storybook/jest';
5+
import { within } from '@storybook/testing-library';
66

77
const meta: Meta<PaginationProps> = {
8-
component: Pagination,
8+
component: Pagination
99
};
1010

1111
type Story = StoryObj<PaginationProps>;
@@ -15,7 +15,7 @@ export default meta;
1515
export const Default: Story = {
1616
args: {
1717
pages: 10,
18-
page: 5,
18+
page: 5
1919
},
2020
render: (args) => (
2121
<>
@@ -34,7 +34,7 @@ export const Default: Story = {
3434
/>
3535
</>
3636
),
37-
play: ({ canvasElement, args }) => {
37+
play: ({ canvasElement }) => {
3838
const canvas = within(canvasElement);
3939
const values = ['1', '4', '5', '6', '10'];
4040
values.forEach((value) => {
@@ -44,7 +44,7 @@ export const Default: Story = {
4444
expect(canvas.queryByText('last')).toBeNull();
4545
expect(canvas.getByText('prev')).toBeVisible();
4646
expect(canvas.getByText('next')).toBeVisible();
47-
},
47+
}
4848
};
4949

5050
export const AllButtons: Story = {
@@ -56,7 +56,7 @@ export const AllButtons: Story = {
5656
hideNextButton: false,
5757
hidePrevButton: false,
5858
siblingCount: 1,
59-
boundaryCount: 1,
59+
boundaryCount: 1
6060
},
6161
render: (args) => (
6262
<>
@@ -75,7 +75,7 @@ export const AllButtons: Story = {
7575
/>
7676
</>
7777
),
78-
play: ({ canvasElement, args }) => {
78+
play: ({ canvasElement }) => {
7979
const canvas = within(canvasElement);
8080
const values = ['1', '4', '5', '6', '10'];
8181
values.forEach((value) => {
@@ -85,7 +85,7 @@ export const AllButtons: Story = {
8585
expect(canvas.getByText('last')).toBeVisible();
8686
expect(canvas.getByText('prev')).toBeVisible();
8787
expect(canvas.getByText('next')).toBeVisible();
88-
},
88+
}
8989
};
9090

9191
export const HideButtons: Story = {
@@ -97,7 +97,7 @@ export const HideButtons: Story = {
9797
hideNextButton: true,
9898
hidePrevButton: true,
9999
siblingCount: 1,
100-
boundaryCount: 1,
100+
boundaryCount: 1
101101
},
102102
render: (args) => (
103103
<>
@@ -116,7 +116,7 @@ export const HideButtons: Story = {
116116
/>
117117
</>
118118
),
119-
play: ({ canvasElement, args }) => {
119+
play: ({ canvasElement }) => {
120120
const canvas = within(canvasElement);
121121
const values = ['1', '4', '5', '6', '10'];
122122
values.forEach((value) => {
@@ -126,5 +126,5 @@ export const HideButtons: Story = {
126126
expect(canvas.queryByText('last')).toBeNull();
127127
expect(canvas.queryByText('prev')).toBeNull();
128128
expect(canvas.queryByText('next')).toBeNull();
129-
},
129+
}
130130
};

packages/kit-headless/src/components/popover/popover.stories.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1+
import { expect } from '@storybook/jest';
2+
import { userEvent, within } from '@storybook/testing-library';
13
import { Meta, StoryObj } from 'storybook-framework-qwik';
24
import { Popover, PopoverProps } from './popover';
3-
import { PopoverTrigger } from './popover-trigger';
45
import { PopoverContent } from './popover-content';
5-
import { screen, userEvent, within } from '@storybook/testing-library';
6-
import { expect } from '@storybook/jest';
6+
import { PopoverTrigger } from './popover-trigger';
77

88
const meta: Meta<PopoverProps> = {
9-
component: Popover,
9+
component: Popover
1010
};
1111

1212
type Story = StoryObj<PopoverProps>;
@@ -30,5 +30,5 @@ export const Primary: Story = {
3030
const popover = await canvas.findByRole('dialog');
3131

3232
await expect(popover).toHaveTextContent('Oh hi mark!');
33-
},
33+
}
3434
};

0 commit comments

Comments
 (0)