Skip to content
This repository was archived by the owner on Sep 17, 2022. It is now read-only.

Commit c8b1711

Browse files
committed
Fix eslint
1 parent e3ade63 commit c8b1711

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

__tests__/external.spec.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,15 @@ import vue3base from '@vitejs/plugin-vue'
77
import compiler from '@vue/compiler-sfc'
88
import { createVuePlugin as vue2 } from 'vite-plugin-vue2'
99

10-
import { testBundle } from './util/helpers'
11-
1210
import fluentPlugin from '../src'
11+
import { testBundle } from './util/helpers'
1312

1413
const vue3 = () => vue3base({
1514
compiler,
1615
})
1716

1817
const baseDir = dirname(fileURLToPath(import.meta.url))
1918

20-
2119
describe.each(['development', 'production'])('external ftl file support mode:%s', (mode) => {
2220
it('works with vue 3', async() => {
2321
// Arrange

__tests__/test.spec.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ import compiler from '@vue/compiler-sfc'
55
import rollupVue3 from 'rollup-plugin-vue'
66
import { createVuePlugin as vue2 } from 'vite-plugin-vue2'
77

8-
import { testBundle } from './util/helpers'
9-
108
import fluentPlugin from '../src'
9+
import { testBundle } from './util/helpers'
1110

1211
const vue3 = () => vue3base({
1312
compiler,

__tests__/util/helpers.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import { build, InlineConfig } from 'vite'
21
import { dirname, resolve } from 'path'
32
import { fileURLToPath } from 'url'
3+
import type { InlineConfig } from 'vite'
4+
import { build } from 'vite'
45

56
const baseDir = dirname(fileURLToPath(import.meta.url))
67

@@ -33,7 +34,7 @@ export const testBundle = async(options: InlineConfig, file: string): Promise<st
3334
})
3435

3536
const output = (out as any).output
36-
37+
3738
return output
3839
?.map((o: { code: string }) => `\n\n${o.code}`)
3940
.join('\n')

0 commit comments

Comments
 (0)