style: enable import-x/no-duplicates (#6279)

This commit is contained in:
EYHN committed 2024-03-25 03:55:33 +00:00
1 parent 7ce2bfbf0b
commit f2adbdaba4
342 files changed
+881 -1033

No files matched your search

+1 -1
View File
@@ -1,8 +1,8 @@
import type { i18n, Resource } from 'i18next';
import i18next from 'i18next';
import type { I18nextProviderProps } from 'react-i18next';
import {
I18nextProvider,
type I18nextProviderProps,
initReactI18next,
Trans,
useTranslation as useRootTranslation,
@@ -5,7 +5,8 @@ import * as path from 'node:path';
import { format } from 'prettier';
import { getAllProjectLanguages, getRemoteTranslations } from './api.js';
import { flattenTranslation, type TranslationRes } from './utils.js';
import type { TranslationRes } from './utils.js';
import { flattenTranslation } from './utils.js';
const INDENT = 2;
const RES_DIR = path.resolve(process.cwd(), 'src', 'resources');