Skip to content

Commit 0e82cce

Browse files
chore(eslint): set import order for storybook utils import
1 parent a5dd229 commit 0e82cce

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

.eslintrc.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
["^@/data"],
3131
// From the `constants` directory.
3232
["^@/lib/constants"],
33+
// From the `.storybook/utils` file
34+
["^@/storybook-utils"],
3335
// Parent imports. Put `..` last.
3436
["^\\.\\.(?!/?$)", "^\\.\\./?$"],
3537
// Other relative imports. Put same-folder imports and `.` last.

src/components/Card/Card.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import { Meta, type StoryObj } from "@storybook/react"
33

44
import { Button } from "@/components/Buttons"
55

6-
import CardComponent, { CardProps } from "."
7-
86
import { getTranslation } from "@/storybook-utils"
97

8+
import CardComponent, { CardProps } from "."
9+
1010
const meta = {
1111
component: CardComponent,
1212
decorators: [

src/components/Hero/ContentHero/ContentHero.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { Meta, StoryObj } from "@storybook/react"
22

3+
import { getTranslation } from "@/storybook-utils"
4+
35
import { langViewportModes } from "../../../../.storybook/modes"
46

57
import ContentHeroComponent, { ContentHeroProps } from "."
68

7-
import { getTranslation } from "@/storybook-utils"
8-
99
const meta = {
1010
title: "Organisms / Layouts / Hero",
1111
component: ContentHeroComponent,

src/components/Hero/HubHero/HubHero.stories.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ import * as React from "react"
22
import { Box } from "@chakra-ui/react"
33
import { Meta, StoryObj } from "@storybook/react"
44

5+
import { getTranslation } from "@/storybook-utils"
6+
57
import { langViewportModes } from "../../../../.storybook/modes"
68

79
import HubHeroComponent, { type HubHeroProps } from "./"
810

911
import learnHubHeroImg from "@/public/heroes/learn-hub-hero.png"
10-
import { getTranslation } from "@/storybook-utils"
1112

1213
const meta = {
1314
title: "Organisms / Layouts / Hero",

0 commit comments

Comments
 (0)