Feature/use alias for imports (#352)

* Use alias "@" for imports

* Use alias "@" for imports - Fix imports

* Use alias "@" for imports - Prevent faulty "import/extensions" linting issue

For some reason the rule throws an error for alias imports

* Use alias "@" for imports - Update "no-relative-imports" eslint rule
This commit is contained in:
schroda
2023-06-05 01:42:39 +02:00
committed by GitHub
parent 1ec6d77598
commit 4b83ccc889
88 changed files with 337 additions and 331 deletions

View File

@@ -6,17 +6,17 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import en from 'i18n/locale/en.json';
import en from '@/i18n/locale/en.json';
import ar from 'i18n/locale/ar.json';
import de from 'i18n/locale/de.json';
import es from 'i18n/locale/es.json';
import fr from 'i18n/locale/fr.json';
import ja from 'i18n/locale/ja.json';
import pt from 'i18n/locale/pt.json';
import uk from 'i18n/locale/uk.json';
import zh_Hans from 'i18n/locale/zh_Hans.json';
import zh_Hant from 'i18n/locale/zh_Hant.json';
import ar from '@/i18n/locale/ar.json';
import de from '@/i18n/locale/de.json';
import es from '@/i18n/locale/es.json';
import fr from '@/i18n/locale/fr.json';
import ja from '@/i18n/locale/ja.json';
import pt from '@/i18n/locale/pt.json';
import uk from '@/i18n/locale/uk.json';
import zh_Hans from '@/i18n/locale/zh_Hans.json';
import zh_Hant from '@/i18n/locale/zh_Hant.json';
const translationHelper = <T>(lng: T) => ({
translation: lng,