Skip to content

Commit c6aea7d

Browse files
Run npm run lint:prettier:fix
1 parent dc4a815 commit c6aea7d

95 files changed

Lines changed: 199 additions & 193 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.storybook/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { type StorybookConfig } from '@storybook/react-vite';
22
import preserveDirectives from 'rollup-preserve-directives';
3-
import { mergeConfig, type InlineConfig } from 'vite';
3+
import { type InlineConfig, mergeConfig } from 'vite';
44
import tsConfigPaths from 'vite-tsconfig-paths';
55

66
const config: StorybookConfig = {

.storybook/preview.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
import './storybook.scss';
21
import { type Preview } from '@storybook/react-vite';
32

43
import { Col, Container, Row } from '#components/layout/index.js';
54

5+
import './storybook.scss';
6+
67
const preview: Preview = {
78
decorators: (Story, { parameters }) =>
89
parameters.width === false ? (

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import { join } from 'node:path';
22

33
import { includeIgnoreFile } from '@eslint/compat';
44
import eslint from '@eslint/js';
5-
import { defineConfig, globalIgnores } from 'eslint/config';
65
import configPrettier from 'eslint-config-prettier/flat';
76
import pluginImport from 'eslint-plugin-import';
87
import pluginJsxA11y from 'eslint-plugin-jsx-a11y';
98
import pluginReact from 'eslint-plugin-react';
109
import pluginReactHooks from 'eslint-plugin-react-hooks';
10+
import { defineConfig, globalIgnores } from 'eslint/config';
1111
import globals from 'globals';
1212
import pluginTypeScript from 'typescript-eslint';
1313

src/components/content-presentation/details/Details.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import classNames from 'classnames';
2-
import { forwardRef, type ComponentPropsWithoutRef, type FC } from 'react';
2+
import { type ComponentPropsWithoutRef, type FC, forwardRef } from 'react';
33

44
export interface DetailsProps extends ComponentPropsWithoutRef<'details'> {
55
expander?: boolean;

src/components/content-presentation/details/__tests__/Details.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { render } from '@testing-library/react';
22
import { createRef } from 'react';
33

4-
import { Details } from '..';
5-
64
import { renderClient, renderServer } from '#util/components';
75

6+
import { Details } from '..';
7+
88
describe('Details', () => {
99
it('matches snapshot', async () => {
1010
const { container } = await renderClient(<Details />, {

src/components/content-presentation/do-and-dont-list/DoAndDontList.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
'use client';
22

33
import classNames from 'classnames';
4-
import { forwardRef, type ComponentPropsWithoutRef } from 'react';
4+
import { type ComponentPropsWithoutRef, forwardRef } from 'react';
5+
6+
import { Heading, type HeadingProps } from '#components/typography/Heading.js';
57

68
import { DoAndDontListContext, type DoAndDontListType } from './DoAndDontListContext.js';
79
import { DoAndDontListItem } from './components/index.js';
810

9-
import { Heading, type HeadingProps } from '#components/typography/Heading.js';
10-
1111
export interface DoAndDontListProps
1212
extends ComponentPropsWithoutRef<'div'>, Pick<HeadingProps, 'headingLevel'> {
1313
listType: DoAndDontListType;

src/components/content-presentation/do-and-dont-list/__tests__/DoAndDontList.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { render } from '@testing-library/react';
22
import { createRef } from 'react';
33

4-
import { DoAndDontList } from '..';
5-
64
import { renderClient, renderServer } from '#util/components';
75

6+
import { DoAndDontList } from '..';
7+
88
describe('DoAndDontList', () => {
99
describe('list type "do"', () => {
1010
it('matches snapshot', async () => {

src/components/content-presentation/do-and-dont-list/components/DoAndDontListItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client';
22

3-
import { useContext, type ComponentPropsWithoutRef, type FC, type ReactNode } from 'react';
3+
import { type ComponentPropsWithoutRef, type FC, type ReactNode, useContext } from 'react';
44

55
import { CrossIcon, TickIcon } from '../../icons/index.js';
66
import { DoAndDontListContext, type DoAndDontListType } from '../DoAndDontListContext.js';

src/components/content-presentation/hero/Hero.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import classNames from 'classnames';
2-
import { forwardRef, type ComponentPropsWithoutRef, type FC } from 'react';
2+
import { type ComponentPropsWithoutRef, type FC, forwardRef } from 'react';
33

44
import { Col, Container, Row } from '#components/layout/index.js';
55
import { Heading, type HeadingProps } from '#components/typography/Heading.js';

src/components/content-presentation/images/Images.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import classNames from 'classnames';
2-
import { forwardRef, type ComponentPropsWithoutRef } from 'react';
2+
import { type ComponentPropsWithoutRef, forwardRef } from 'react';
33

44
export interface ImagesProps extends ComponentPropsWithoutRef<'img'> {
55
caption?: string;

0 commit comments

Comments
 (0)