diff --git a/.prettierrc.json b/.prettierrc.json index f3c0e3054..8d8787172 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -15,7 +15,7 @@ "tabWidth": 2, "trailingComma": "es5", "useTabs": false, - "importOrder": ["^((api-mocks|components|data|formio|hooks|map|routes|story-utils|types)/(.*)|(api|api-mocks|cache|Context|errors|headers|i18n|routes|sdk|sentry|types|utils))$", "^[./]"], + "importOrder": ["^((api-mocks|components|data|formio|hooks|map|routes|story-utils|types)/(.*)|(api|api-mocks|cache|Context|errors|headers|i18n|routes|sdk|sentry|types|utils))$", "^@/.*", "^[./]"], "importOrderSeparation": true, "importOrderSortSpecifiers": true } diff --git a/src/components/Loader.tsx b/src/components/Loader.tsx index 8122f7327..c07e53b33 100644 --- a/src/components/Loader.tsx +++ b/src/components/Loader.tsx @@ -1,6 +1,6 @@ import {FormattedMessage} from 'react-intl'; -import {getBEMClassName} from 'utils'; +import {getBEMClassName} from '@/utils'; export const MODIFIERS = ['centered', 'only-child', 'small', 'gray'] as const; diff --git a/src/components/Price.tsx b/src/components/Price.tsx index 9c01a6b2a..a66aefc80 100644 --- a/src/components/Price.tsx +++ b/src/components/Price.tsx @@ -1,6 +1,6 @@ import {FormattedMessage, FormattedNumber} from 'react-intl'; -import {getBEMClassName} from 'utils'; +import {getBEMClassName} from '@/utils'; export interface PriceProps { price?: string | number; // the API serializes decimals to strings to not lose precision