Skip to content

Commit f51334c

Browse files
committed
style: fix storybook lint warnings
1 parent 5afcd13 commit f51334c

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

src/hx711-element.stories.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ export default {
99
const Template = ({ width, height, type = '50kg' }) =>
1010
html`<wokwi-hx711 .type=${type} .width=${width} .height=${height}></wokwi-hx711>`;
1111

12-
export const loadCell50kg = Template.bind({});
13-
loadCell50kg.args = { type: '50kg', width: 580, height: 430 };
12+
export const LoadCell50kg = Template.bind({});
13+
LoadCell50kg.args = { type: '50kg', width: 580, height: 430 };
1414

15-
export const loadCell5kg = Template.bind({});
16-
loadCell5kg.args = { type: '5kg', width: 507, height: 269 };
15+
export const LoadCell5kg = Template.bind({});
16+
LoadCell5kg.args = { type: '5kg', width: 507, height: 269 };
1717

18-
export const gaugePressure = Template.bind({});
19-
gaugePressure.args = { type: 'gauge', width: 509, height: 200 };
18+
export const GaugePressure = Template.bind({});
19+
GaugePressure.args = { type: 'gauge', width: 509, height: 200 };

src/lcd2004-element.stories.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ export default {
77
component: 'wokwi-lcd2004',
88
};
99

10-
export const lcd2004 = () => html`<wokwi-lcd2004 text="Hello World! LCD2004"></wokwi-lcd2004>`;
11-
lcd2004.storyName = 'Hello World';
10+
export const Lcd2004 = () => html`<wokwi-lcd2004 text="Hello World! LCD2004"></wokwi-lcd2004>`;
11+
Lcd2004.storyName = 'Hello World';
1212

13-
export const blueBackground = () =>
13+
export const BlueBackground = () =>
1414
html`<wokwi-lcd2004
1515
background="blue"
1616
color="white"
1717
text="Line 1 Line 2 Line 3 Line 4"
1818
></wokwi-lcd2004>`;
1919

20-
export const i2cPins = () => html`<wokwi-lcd2004
20+
export const I2cPins = () => html`<wokwi-lcd2004
2121
pins="i2c"
2222
text="I²C Pins"
2323
.font=${fontA02}
2424
></wokwi-lcd2004>`;
25-
i2cPins.storyName = 'I2C Pins';
25+
I2cPins.storyName = 'I2C Pins';

src/pushbutton-element.stories.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
component: 'wokwi-pushbutton',
88
};
99

10-
export const red = () =>
10+
export const Red = () =>
1111
html`
1212
<wokwi-pushbutton
1313
color="red"
@@ -16,7 +16,7 @@ export const red = () =>
1616
></wokwi-pushbutton>
1717
`;
1818

19-
export const green = () =>
19+
export const Green = () =>
2020
html`
2121
<wokwi-pushbutton
2222
color="green"
@@ -25,7 +25,7 @@ export const green = () =>
2525
></wokwi-pushbutton>
2626
`;
2727

28-
export const redWithLabel = () =>
28+
export const RedWithLabel = () =>
2929
html`
3030
<wokwi-pushbutton
3131
color="red"
@@ -35,7 +35,7 @@ export const redWithLabel = () =>
3535
></wokwi-pushbutton>
3636
`;
3737

38-
export const redWithLongLabel = () =>
38+
export const RedWithLongLabel = () =>
3939
html`
4040
<wokwi-pushbutton
4141
color="red"
@@ -45,7 +45,7 @@ export const redWithLongLabel = () =>
4545
></wokwi-pushbutton>
4646
`;
4747

48-
export const fourButtons = () =>
48+
export const FourButtons = () =>
4949
html`
5050
<wokwi-pushbutton
5151
color="red"

src/slide-switch-element.stories.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ export default {
77
component: 'wokwi-slide-switch',
88
};
99

10-
export const slideSwitch = () =>
10+
export const SlideSwitch = () =>
1111
html`<wokwi-slide-switch @input=${action('input')}></wokwi-slide-switch>`;

0 commit comments

Comments
 (0)