Skip to content

Commit 5b03d3f

Browse files
authored
Minor/Lint: Fix two warnings (#7045)
## Summary Unnecessary import of a compiler macro and importing the default instead of the named export. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7045-Minor-Lint-Fix-two-warnings-2bb6d73d365081758369d14bafcd7aa0) by [Unito](https://www.unito.io)
1 parent 1caf3fd commit 5b03d3f

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

.oxlintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"typescript/no-redundant-type-constituents": "off",
3939
"typescript/restrict-template-expressions": "off",
4040
"typescript/unbound-method": "off",
41-
"typescript/no-floating-promises": "error"
41+
"typescript/no-floating-promises": "error",
42+
"vue/no-import-compiler-macros": "error"
4243
}
4344
}

src/components/queue/QueueProgressOverlay.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
</template>
6161

6262
<script setup lang="ts">
63-
import { computed, nextTick, ref, withDefaults } from 'vue'
63+
import { computed, nextTick, ref } from 'vue'
6464
import { useI18n } from 'vue-i18n'
6565
6666
import QueueOverlayActive from '@/components/queue/QueueOverlayActive.vue'

src/composables/maskeditor/gpu/brushShaders.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import tgpu from 'typegpu'
1+
import { tgpu } from 'typegpu'
22
import * as d from 'typegpu/data'
33
import { BrushUniforms } from './gpuSchema'
44

src/composables/maskeditor/useBrushDrawing.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import type { Brush, Point } from '@/extensions/core/maskeditor/types'
1212
import { useMaskEditorStore } from '@/stores/maskEditorStore'
1313
import { useCoordinateTransform } from './useCoordinateTransform'
1414
import { resampleSegment } from './splineUtils'
15-
import TGPU from 'typegpu'
15+
import { tgpu } from 'typegpu'
1616
import { GPUBrushRenderer } from './gpu/GPUBrushRenderer'
1717
import { StrokeProcessor } from './StrokeProcessor'
1818
import { getEffectiveBrushSize, getEffectiveHardness } from './brushUtils'
@@ -276,7 +276,7 @@ export function useBrushDrawing(initialSettings?: {
276276
}
277277

278278
try {
279-
const root = await TGPU.init()
279+
const root = await tgpu.init()
280280
store.tgpuRoot = root
281281
device = root.device
282282
console.warn('✅ TypeGPU initialized! Root:', root)

0 commit comments

Comments
 (0)