Skip to content

Commit e16db38

Browse files
committed
lint after new Prettier plugin and ES rules implementation
1 parent 7b69878 commit e16db38

File tree

302 files changed

+1569
-1573
lines changed

Some content is hidden

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

302 files changed

+1569
-1573
lines changed

storefront/components/Basic/Flag/Flag.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { ExtendedNextLink } from 'components/Basic/ExtendedNextLink/ExtendedNextLink';
12
import { twMergeCustom } from 'helpers/twMerge';
2-
import { ExtendedNextLink } from '../ExtendedNextLink/ExtendedNextLink';
33

44
const getDataTestId = (dataTestId?: string) => dataTestId ?? 'basic-flag';
55

@@ -14,10 +14,10 @@ export const Flag: FC<FlagProps> = ({ children, dataTestId, href, className }) =
1414
if (href) {
1515
return (
1616
<ExtendedNextLink
17-
type="blogCategory"
18-
href={href}
1917
className={flagTwClass}
2018
data-testid={getDataTestId(dataTestId)}
19+
href={href}
20+
type="blogCategory"
2121
>
2222
{children}
2323
</ExtendedNextLink>

storefront/components/Basic/Gallery/Gallery.tsx

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import 'lightgallery/css/lightgallery.css';
1+
import { twMergeCustom } from 'helpers/twMerge';
22
import 'lightgallery/css/lg-thumbnail.css';
33
import 'lightgallery/css/lg-video.css';
4+
import 'lightgallery/css/lightgallery.css';
45
import lgThumbnail from 'lightgallery/plugins/thumbnail';
56
import lgVideo from 'lightgallery/plugins/video';
6-
import getConfig from 'next/config';
77
import LightGallery from 'lightgallery/react';
8-
import { twMergeCustom } from 'helpers/twMerge';
8+
import getConfig from 'next/config';
99

1010
type GalleryProps = {
1111
selector: string;
@@ -20,13 +20,13 @@ export const Gallery: FC<GalleryProps> = ({ selector, children, className }) =>
2020

2121
return (
2222
<LightGallery
23-
mode="lg-fade"
2423
thumbnail
25-
plugins={[lgThumbnail, lgVideo]}
26-
selector={selector}
27-
licenseKey={lightgalleryLicenseKey}
2824
download={false}
2925
elementClassNames={TwClass}
26+
licenseKey={lightgalleryLicenseKey}
27+
mode="lg-fade"
28+
plugins={[lgThumbnail, lgVideo]}
29+
selector={selector}
3030
>
3131
{children}
3232
</LightGallery>

storefront/components/Basic/Head/BreadcrumbsMetadata.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ export const BreadcrumbsMetadata: FC<BreadcrumbsMetadataProps> = ({ breadcrumbs
1313
return (
1414
<Head>
1515
<script
16-
type="application/ld+json"
16+
key="breadcrumbs-metadata"
1717
id="breadcrumbs-metadata"
18+
type="application/ld+json"
1819
dangerouslySetInnerHTML={{
1920
__html: JSON.stringify({
2021
'@context': 'https://schema.org',
@@ -31,7 +32,6 @@ export const BreadcrumbsMetadata: FC<BreadcrumbsMetadataProps> = ({ breadcrumbs
3132
}),
3233
}),
3334
}}
34-
key="breadcrumbs-metadata"
3535
/>
3636
</Head>
3737
);

storefront/components/Basic/Head/LogoMetadata.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ export const LogoMetadata: FC = () => {
88
return (
99
<Head>
1010
<script
11-
type="application/ld+json"
11+
key="logo-metadata"
1212
id="logo-metadata"
13+
type="application/ld+json"
1314
dangerouslySetInnerHTML={{
1415
__html: JSON.stringify({
1516
'@context': 'https://schema.org',
@@ -18,7 +19,6 @@ export const LogoMetadata: FC = () => {
1819
logo: logoUrl,
1920
}),
2021
}}
21-
key="logo-metadata"
2222
/>
2323
</Head>
2424
);

storefront/components/Basic/Head/MetaRobots.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ type MetaRobotsType = {
1414

1515
export const MetaRobots: FC<MetaRobotsType> = ({ content }) => (
1616
<Head>
17-
<meta name="robots" content={content} />
17+
<meta content={content} name="robots" />
1818
</Head>
1919
);

storefront/components/Basic/Head/ProductMetadata.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ export const ProductMetadata: FC<ProductMetadataProps> = ({ product }) => {
1515
return (
1616
<Head>
1717
<script
18-
type="application/ld+json"
18+
key="product-metadata"
1919
id="product-metadata"
20+
type="application/ld+json"
2021
dangerouslySetInnerHTML={{
2122
__html: JSON.stringify({
2223
'@context': 'https://schema.org/',
@@ -43,7 +44,6 @@ export const ProductMetadata: FC<ProductMetadataProps> = ({ product }) => {
4344
},
4445
}),
4546
}}
46-
key="product-metadata"
4747
/>
4848
</Head>
4949
);

storefront/components/Basic/Head/SearchMetadata.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ export const SearchMetadata: FC = () => {
99
return (
1010
<Head>
1111
<script
12-
type="application/ld+json"
12+
key="search-metadata"
1313
id="search-metadata"
14+
type="application/ld+json"
1415
dangerouslySetInnerHTML={{
1516
__html: JSON.stringify({
1617
'@context': 'https://schema.org',
@@ -26,7 +27,6 @@ export const SearchMetadata: FC = () => {
2627
},
2728
}),
2829
}}
29-
key="search-metadata"
3030
/>
3131
</Head>
3232
);

storefront/components/Basic/Head/SeoMeta.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ export const SeoMeta: FC<SeoMetaProps> = ({ defaultTitle, defaultDescription, ca
4040
return (
4141
<Head>
4242
<title>{`${title} ${titleSuffix}`}</title>
43-
{description && <meta name="description" content={description} />}
44-
{ogTitle && <meta name="og:title" content={ogTitle} />}
45-
{ogDescription && <meta name="og:description" content={ogDescription} />}
46-
{ogImageUrl && <meta property="og:image" content={ogImageUrl} />}
47-
{canonicalUrl && canonicalUrl !== currentUrlWithDomain && <link rel="canonical" href={canonicalUrl} />}
43+
{description && <meta content={description} name="description" />}
44+
{ogTitle && <meta content={ogTitle} name="og:title" />}
45+
{ogDescription && <meta content={ogDescription} name="og:description" />}
46+
{ogImageUrl && <meta content={ogImageUrl} property="og:image" />}
47+
{canonicalUrl && canonicalUrl !== currentUrlWithDomain && <link href={canonicalUrl} rel="canonical" />}
4848
</Head>
4949
);
5050
};

storefront/components/Basic/Heading/Heading.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import { twMergeCustom } from 'helpers/twMerge';
12
import { HTMLAttributes } from 'react';
23
import { twJoin } from 'tailwind-merge';
34
import { ExtractNativePropsFromDefault } from 'types/ExtractNativePropsFromDefault';
4-
import { twMergeCustom } from 'helpers/twMerge';
55

66
type NativeProps = ExtractNativePropsFromDefault<HTMLAttributes<HTMLHeadingElement>, never, 'style' | 'onClick'>;
77
type HeadingType = 'h1' | 'h2' | 'h3' | 'h4';
@@ -14,6 +14,7 @@ const getDataTestId = (type: HeadingType) => 'basic-heading-' + type;
1414

1515
export const Heading: FC<HeadingProps> = ({ type, type: HeadingTag, className, ...props }) => (
1616
<HeadingTag
17+
data-testid={getDataTestId(type)}
1718
className={twMergeCustom(
1819
twJoin(
1920
'mb-3 break-words font-bold text-dark ',
@@ -24,7 +25,6 @@ export const Heading: FC<HeadingProps> = ({ type, type: HeadingTag, className, .
2425
),
2526
className,
2627
)}
27-
data-testid={getDataTestId(type)}
2828
{...props}
2929
/>
3030
);

storefront/components/Basic/Icon/IconImage.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ type IconImageProps = NativeProps & {
1313
export const IconImage: FC<IconImageProps> = ({ icon, height, width, ...props }) => {
1414
return (
1515
<img
16-
src={`/icons/${icon}.png`}
1716
height={height !== undefined ? height : '24'}
17+
src={`/icons/${icon}.png`}
1818
width={width !== undefined ? width : '24'}
1919
{...props}
2020
/>

0 commit comments

Comments
 (0)