Skip to content

Commit efd1d1a

Browse files
committed
Merge pull request #1592 from IFRCGo/fix/seasonal-risk-normalization
Fix the normalization logic in seasonal risk
2 parents 235935f + f43bedc commit efd1d1a

File tree

159 files changed

+297
-254
lines changed

Some content is hidden

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

159 files changed

+297
-254
lines changed

app/eslint.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,15 @@ const appConfigs = compat.config({
5959
'no-shadow': 0,
6060
'@typescript-eslint/no-shadow': ['error'],
6161

62+
'@typescript-eslint/consistent-type-imports': [
63+
'warn',
64+
{
65+
disallowTypeAnnotations: false,
66+
fixStyle: 'inline-type-imports',
67+
prefer: 'type-imports',
68+
},
69+
],
70+
6271
'import/no-extraneous-dependencies': [
6372
'error',
6473
{

app/src/App/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ import {
3131
} from '#config';
3232
import RouteContext from '#contexts/route';
3333
import UserContext, {
34-
UserAuth,
35-
UserContextProps,
34+
type UserAuth,
35+
type UserContextProps,
3636
} from '#contexts/user';
3737
import {
3838
KEY_LANGUAGE_STORAGE,

app/src/components/CatalogueInfoCard/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
} from '@ifrc-go/ui';
66
import { _cs } from '@togglecorp/fujs';
77

8-
import Link, { Props as LinkProps } from '#components/Link';
8+
import Link, { type Props as LinkProps } from '#components/Link';
99

1010
import styles from './styles.module.css';
1111

app/src/components/DropdownMenuItem/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import {
44
} from 'react';
55
import {
66
Button,
7-
ButtonProps,
7+
type ButtonProps,
88
ConfirmButton,
9-
ConfirmButtonProps,
9+
type ConfirmButtonProps,
1010
} from '@ifrc-go/ui';
1111
import { DropdownMenuContext } from '@ifrc-go/ui/contexts';
1212
import { isDefined } from '@togglecorp/fujs';
1313

14-
import Link, { Props as LinkProps } from '#components/Link';
14+
import Link, { type Props as LinkProps } from '#components/Link';
1515

1616
type CommonProp = {
1717
persist?: boolean;

app/src/components/Link/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
import {
66
generatePath,
77
Link as InternalLink,
8-
LinkProps as RouterLinkProps,
8+
type LinkProps as RouterLinkProps,
99
} from 'react-router-dom';
1010
import {
1111
ChevronRightLineIcon,

app/src/components/MapPopup/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { CloseLineIcon } from '@ifrc-go/icons';
33
import {
44
Button,
55
Container,
6-
ContainerProps,
6+
type ContainerProps,
77
} from '@ifrc-go/ui';
88
import { useTranslation } from '@ifrc-go/ui/hooks';
99
import { _cs } from '@togglecorp/fujs';

app/src/components/NonFieldError/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
} from '@togglecorp/fujs';
99
import {
1010
analyzeErrors,
11-
Error,
11+
type Error,
1212
getErrorObject,
1313
nonFieldError,
1414
} from '@togglecorp/toggle-form';

app/src/components/Page/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {
2-
ElementRef,
3-
RefObject,
2+
type ElementRef,
3+
type RefObject,
44
useEffect,
55
} from 'react';
66
import {
@@ -19,7 +19,7 @@ import {
1919
isNotDefined,
2020
} from '@togglecorp/fujs';
2121

22-
import { components } from '#generated/types';
22+
import { type components } from '#generated/types';
2323
import useCurrentLanguage from '#hooks/domain/useCurrentLanguage';
2424

2525
import i18n from './i18n.json';

app/src/components/RichTextArea/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import React from 'react';
22
import {
33
InputContainer,
4-
InputContainerProps,
4+
type InputContainerProps,
55
} from '@ifrc-go/ui';
66
import {
77
Editor,
8-
IAllProps,
8+
type IAllProps,
99
} from '@tinymce/tinymce-react';
1010
import { _cs } from '@togglecorp/fujs';
1111

app/src/components/domain/ActiveCountryBaseMapLayer/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { useMemo } from 'react';
22
import { MapLayer } from '@togglecorp/re-map';
33
import {
4-
FillLayer,
5-
LineLayer,
6-
SymbolLayer,
4+
type FillLayer,
5+
type LineLayer,
6+
type SymbolLayer,
77
} from 'mapbox-gl';
88

99
import {

0 commit comments

Comments
 (0)