Skip to content

Commit c59d11a

Browse files
committed
lint: consistent type specifier
1 parent a6bce5c commit c59d11a

File tree

124 files changed

+354
-441
lines changed

Some content is hidden

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

124 files changed

+354
-441
lines changed

eslint.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ export default defineConfig([
106106
allowInterfaces: 'always'
107107
}
108108
],
109+
'import/consistent-type-specifier-style': ['error', 'prefer-top-level'],
110+
'import/no-useless-path-segments': 'error',
111+
'import/no-relative-packages': 'error',
109112
'unused-imports/no-unused-imports': 'error',
110113
'no-console': ['error', { allow: ['warn', 'error'] }],
111114
'vue/no-v-html': 'off',

src/components/common/FormItem.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ import InputNumber from 'primevue/inputnumber'
3434
import InputText from 'primevue/inputtext'
3535
import Select from 'primevue/select'
3636
import ToggleSwitch from 'primevue/toggleswitch'
37-
import { type Component, markRaw } from 'vue'
37+
import { markRaw } from 'vue'
38+
import type { Component } from 'vue'
3839
3940
import BackgroundImageUpload from '@/components/common/BackgroundImageUpload.vue'
4041
import CustomFormValue from '@/components/common/CustomFormValue.vue'

src/components/common/TreeExplorer.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,11 @@ import { useTreeFolderOperations } from '@/composables/tree/useTreeFolderOperati
4747
import { useErrorHandling } from '@/composables/useErrorHandling'
4848
import {
4949
InjectKeyExpandedKeys,
50-
InjectKeyHandleEditLabelFunction,
51-
type RenderedTreeExplorerNode,
52-
type TreeExplorerNode
50+
InjectKeyHandleEditLabelFunction
51+
} from '@/types/treeExplorerTypes'
52+
import type {
53+
RenderedTreeExplorerNode,
54+
TreeExplorerNode
5355
} from '@/types/treeExplorerTypes'
5456
import { combineTrees, findNodeByKey } from '@/utils/treeUtil'
5557

src/components/common/TreeExplorerTreeNode.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ import {
4545
usePragmaticDraggable,
4646
usePragmaticDroppable
4747
} from '@/composables/usePragmaticDragAndDrop'
48-
import {
49-
InjectKeyHandleEditLabelFunction,
50-
type RenderedTreeExplorerNode,
51-
type TreeExplorerDragAndDropData
48+
import { InjectKeyHandleEditLabelFunction } from '@/types/treeExplorerTypes'
49+
import type {
50+
RenderedTreeExplorerNode,
51+
TreeExplorerDragAndDropData
5252
} from '@/types/treeExplorerTypes'
5353
5454
const props = defineProps<{

src/components/common/VirtualGrid.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
<script setup lang="ts" generic="T">
1818
import { useElementSize, useScroll, whenever } from '@vueuse/core'
1919
import { clamp, debounce } from 'es-toolkit/compat'
20-
import { type CSSProperties, computed, onBeforeUnmount, ref, watch } from 'vue'
20+
import { computed, onBeforeUnmount, ref, watch } from 'vue'
21+
import type { CSSProperties } from 'vue'
2122
2223
type GridState = {
2324
start: number

src/components/dialog/content/ErrorDialogContent.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,8 @@ import { api } from '@/scripts/api'
6565
import { app } from '@/scripts/app'
6666
import { useCommandStore } from '@/stores/commandStore'
6767
import { useSystemStatsStore } from '@/stores/systemStatsStore'
68-
import {
69-
type ErrorReportData,
70-
generateErrorReport
71-
} from '@/utils/errorReportUtil'
68+
import { generateErrorReport } from '@/utils/errorReportUtil'
69+
import type { ErrorReportData } from '@/utils/errorReportUtil'
7270
7371
const { error } = defineProps<{
7472
error: Omit<ErrorReportData, 'workflow' | 'systemStats' | 'serverLogs'> & {

src/components/dialog/content/credit/CreditTopUpOption.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@
3333

3434
<script setup lang="ts">
3535
import Button from 'primevue/button'
36-
import InputNumber, {
37-
type InputNumberBlurEvent,
38-
type InputNumberInputEvent
36+
import InputNumber from 'primevue/inputnumber'
37+
import type {
38+
InputNumberBlurEvent,
39+
InputNumberInputEvent
3940
} from 'primevue/inputnumber'
4041
import ProgressSpinner from 'primevue/progressspinner'
4142
import Tag from 'primevue/tag'

src/components/dialog/content/signin/SignInForm.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ import { computed } from 'vue'
8383
import { useI18n } from 'vue-i18n'
8484
8585
import { useFirebaseAuthActions } from '@/composables/auth/useFirebaseAuthActions'
86-
import { type SignInData, signInSchema } from '@/schemas/signInSchema'
86+
import { signInSchema } from '@/schemas/signInSchema'
87+
import type { SignInData } from '@/schemas/signInSchema'
8788
import { useFirebaseAuthStore } from '@/stores/firebaseAuthStore'
8889
8990
const authStore = useFirebaseAuthStore()

src/components/dialog/content/signin/SignUpForm.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ import Checkbox from 'primevue/checkbox'
6767
import InputText from 'primevue/inputtext'
6868
import { useI18n } from 'vue-i18n'
6969
70-
import { type SignUpData, signUpSchema } from '@/schemas/signInSchema'
70+
import { signUpSchema } from '@/schemas/signInSchema'
71+
import type { SignUpData } from '@/schemas/signInSchema'
7172
7273
import PasswordFields from './PasswordFields.vue'
7374

src/components/graph/SelectionToolbox.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ import { useCanvasStore } from '@/renderer/core/canvas/canvasStore'
6767
import { useCanvasInteractions } from '@/renderer/core/canvas/useCanvasInteractions'
6868
import { useMinimap } from '@/renderer/extensions/minimap/composables/useMinimap'
6969
import { useExtensionService } from '@/services/extensionService'
70-
import { type ComfyCommandImpl, useCommandStore } from '@/stores/commandStore'
70+
import { useCommandStore } from '@/stores/commandStore'
71+
import type { ComfyCommandImpl } from '@/stores/commandStore'
7172
7273
import FrameNodes from './selectionToolbox/FrameNodes.vue'
7374
import NodeOptionsButton from './selectionToolbox/NodeOptionsButton.vue'

0 commit comments

Comments
 (0)