Skip to content

Commit a5d9c70

Browse files
committed
lint changes: apply review suggestions (import ordering, type-only import, const)
1 parent 16d4a8a commit a5d9c70

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

packages/start-server-core/tests/createStartHandler.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { describe, it, expect, beforeEach } from 'vitest'
1+
import { beforeEach, describe, expect, it } from 'vitest'
22
import { createStartHandler } from '../src'
33
import { currentHandlers } from './mocks/router-entry'
44

packages/start-server-core/tests/mocks/router-entry.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { AnyRouter } from '@tanstack/router-core'
1+
import type { AnyRouter } from '@tanstack/router-core'
22

3-
export let currentHandlers: Record<string, any> = {}
3+
export const currentHandlers: Record<string, any> = {}
44

55
function makeFakeRouter(): AnyRouter {
66
return {

packages/start-server-core/vite.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
import path from 'node:path'
12
import { defineConfig, mergeConfig } from 'vitest/config'
23
import { tanstackViteConfig } from '@tanstack/config/vite'
34
import packageJson from './package.json'
45
// this needs to be imported from the actual file instead of from 'index.tsx'
56
// so we don't trigger the import of a `?script-string` import before the minifyScriptPlugin is setup
67
import { VIRTUAL_MODULES } from './src/virtual-modules'
7-
import path from 'path'
8+
89
const config = defineConfig({
910
test: {
1011
include: ['**/*.{test-d,test,spec}.?(c|m)[jt]s?(x)'],

0 commit comments

Comments
 (0)