Skip to content

Commit 4ebf117

Browse files
committed
chore(eslint): organize imports by separating type imports from regular imports
1 parent cb9dc25 commit 4ebf117

File tree

7 files changed

+14
-15
lines changed

7 files changed

+14
-15
lines changed

playground/components/elements/ScrollItem.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99

1010
<script setup lang="ts">
1111
import type { FontFamily, FontStyle, FontWeight } from '#build/types/booster';
12-
import { useBoosterFonts, type PropType } from '#imports';
12+
import { useBoosterFonts } from '#imports';
13+
import type { PropType } from '#imports';
1314
1415
const { $getFont } = useBoosterFonts();
1516

src/runtime/components/BoosterImage/Base.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ import {
3030
useHead,
3131
useAttrs
3232
} from '#imports';
33-
import { ref, computed, markRaw, type Raw } from 'vue';
33+
import { ref, computed, markRaw } from 'vue';
34+
import type { Raw } from 'vue';
3435
import props from './props';
3536
import type { CrossOrigin } from '../../../module';
3637

src/runtime/components/BoosterPicture/Base.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@ import { useBoosterCritical, useImage, useHead, useNuxtApp } from '#imports';
2424
import { ref, computed } from 'vue';
2525
2626
import BaseImage from '#booster/components/BoosterImage/Base.vue';
27-
import SourceList, {
28-
type ClassNames
29-
} from '#booster/components/BoosterPicture/classes/SourceList';
27+
import SourceList from '#booster/components/BoosterPicture/classes/SourceList';
28+
import type { ClassNames } from '#booster/components/BoosterPicture/classes/SourceList';
3029
import PictureSource from '#booster/components/BoosterPicture/Source.vue';
3130
import props from './props';
3231
import type Source from '../BoosterImage/classes/Source';

src/runtime/components/BoosterVimeo/Base.vue

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,8 @@ import { ref, computed, markRaw, watch, onMounted, onUnmounted } from 'vue';
3333
import type { Script } from '@unhead/vue';
3434
3535
import DefaultButton from '../Button.vue';
36-
import {
37-
load,
38-
ready as apiReady,
39-
VimeoApiPlayerState,
40-
type VimeoApiPlayer,
41-
type VimeoApiResponse
42-
} from './utils/loader';
36+
import { load, ready as apiReady, VimeoApiPlayerState } from './utils/loader';
37+
import type { VimeoApiPlayer, VimeoApiResponse } from './utils/loader';
4338
import Vimeo from './classes/Vimeo';
4439
import { isTouchSupported } from '#booster/utils/browser';
4540
import BoosterPicture from '#booster/components/BoosterPicture.vue';

src/runtime/components/BoosterVimeo/classes/Vimeo.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { ready, type VimeoApi, type VimeoApiPlayer } from '../utils/loader';
1+
import { ready } from '../utils/loader';
2+
import type { VimeoApi, VimeoApiPlayer } from '../utils/loader';
23

34
export default class Vimeo {
45
api?: VimeoApi;

test/nuxt.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// import type { ModuleOptions } from '../src/types/module';
2-
import { defineNuxtConfig, type NuxtConfig } from 'nuxt/config';
2+
import { defineNuxtConfig } from 'nuxt/config';
3+
import type { NuxtConfig } from 'nuxt/config';
34
import { createResolver } from '@nuxt/kit';
45

56
import { join, resolve } from 'pathe';

test/tests/browser.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { chromium, type Page } from 'playwright';
1+
import { chromium } from 'playwright';
2+
import type { Page } from 'playwright';
23
import { afterAll, describe, it, expect } from 'vitest';
34
import { joinURL } from 'ufo';
45
import type { TestRuntime } from '../types';

0 commit comments

Comments
 (0)