Skip to content

Commit c5cad39

Browse files
Add mandatory ES module file extensions to sources
1 parent 7aecf20 commit c5cad39

File tree

121 files changed

+272
-269
lines changed

Some content is hidden

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

121 files changed

+272
-269
lines changed

.eslintrc.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ module.exports = {
2727
'plugin:react-hooks/recommended',
2828
],
2929
rules: {
30+
'import/no-unresolved': 'off',
3031
'react/prop-types': 0,
3132
'jsx-a11y/anchor-has-content': 0,
3233
'jsx-a11y/alt-text': 0,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from './Details';
1+
export * from './Details.js';

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import {
77
type FC,
88
type ReactNode,
99
} from 'react';
10-
import { CrossIcon, TickIcon } from '../icons';
11-
import { HeadingLevel, type HeadingLevelProps } from '#components/utils/HeadingLevel';
10+
import { CrossIcon, TickIcon } from '../icons/index.js';
11+
import { HeadingLevel, type HeadingLevelProps } from '#components/utils/HeadingLevel.js';
1212

1313
type ListType = 'do' | 'dont';
1414

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from './DoAndDontList';
1+
export * from './DoAndDontList.js';

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import classNames from 'classnames';
22
import { forwardRef, type ComponentPropsWithoutRef, type FC } from 'react';
3-
import { Col, Container, Row } from '#components/layout';
4-
import { HeadingLevel, type HeadingLevelProps } from '#components/utils/HeadingLevel';
3+
import { Col, Container, Row } from '#components/layout/index.js';
4+
import { HeadingLevel, type HeadingLevelProps } from '#components/utils/HeadingLevel.js';
55

66
export interface HeroContentProps extends ComponentPropsWithoutRef<'div'> {
77
hasImage: boolean;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from './Hero';
1+
export * from './Hero.js';
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export * from './individual';
2-
export * from './Icon';
1+
export * from './individual/index.js';
2+
export * from './Icon.js';

src/components/content-presentation/icons/individual/ArrowLeftIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { type FC } from 'react';
2-
import { Icon, type IconProps } from '../Icon';
2+
import { Icon, type IconProps } from '../Icon.js';
33

44
export const ArrowLeftIcon: FC<IconProps> = (props) => (
55
<Icon modifier="arrow-left" {...props}>

src/components/content-presentation/icons/individual/ArrowRightCircleIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { type FC } from 'react';
2-
import { Icon, type IconProps } from '../Icon';
2+
import { Icon, type IconProps } from '../Icon.js';
33

44
export const ArrowRightCircleIcon: FC<IconProps> = (props) => (
55
<Icon modifier="arrow-right-circle" {...props}>

src/components/content-presentation/icons/individual/ArrowRightIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { type FC } from 'react';
2-
import { Icon, type IconProps } from '../Icon';
2+
import { Icon, type IconProps } from '../Icon.js';
33

44
export const ArrowRightIcon: FC<IconProps> = (props) => (
55
<Icon modifier="arrow-right" {...props}>

0 commit comments

Comments
 (0)