Skip to content

Commit a472961

Browse files
committed
chore: fix lint
1 parent 638e2dc commit a472961

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

src/api.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
*/
66

77
export {
8-
scanFiles,
98
scanEnums,
10-
type ScanOptions,
11-
type EnumMember,
12-
type EnumDeclaration,
9+
scanFiles,
1310
type EnumData,
11+
type EnumDeclaration,
12+
type EnumMember,
13+
type ScanOptions,
1414
} from './core/enum'
1515

16-
export { type Options, resolveOptions } from './core/options'
16+
export { resolveOptions, type Options } from './core/options'

src/core/enum.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import path from 'node:path'
21
import assert from 'node:assert'
32
import { readFileSync } from 'node:fs'
4-
import { execaSync } from 'execa'
3+
import path from 'node:path'
54
import { babelParse, getLang, isTs } from 'ast-kit'
5+
import { execaSync } from 'execa'
66
import fg from 'fast-glob'
77
import picomatch from 'picomatch'
8-
import type { Expression, PrivateName } from '@babel/types'
98
import type { OptionsResolved } from './options'
9+
import type { Expression, PrivateName } from '@babel/types'
1010

1111
/**
1212
* Represents the scan options for the enum.

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
* @module
44
*/
55

6-
import { type UnpluginInstance, createUnplugin } from 'unplugin'
76
import { createFilter } from '@rollup/pluginutils'
87
import MagicString from 'magic-string'
8+
import { createUnplugin, type UnpluginInstance } from 'unplugin'
99
import ReplacePlugin from 'unplugin-replace'
10-
import { type Options, resolveOptions } from './core/options'
1110
import { scanEnums } from './core/enum'
11+
import { resolveOptions, type Options } from './core/options'
1212

1313
/**
1414
* The main unplugin instance.

tests/esbuild.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import path from 'node:path'
2-
import { expect, test } from 'vitest'
32
import { build } from 'esbuild'
3+
import { expect, test } from 'vitest'
44
import UnpluginInlineEnum from '../src/esbuild'
55

66
test('esbuild', async () => {

tests/rollup.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import path from 'node:path'
2+
import { rollupBuild, RollupEsbuildPlugin } from '@vue-macros/test-utils'
23
import { expect, test } from 'vitest'
3-
import { RollupEsbuildPlugin, rollupBuild } from '@vue-macros/test-utils'
44
import UnpluginInlineEnum from '../src/rollup'
55

66
test('rollup', async () => {

tests/scan-enums.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import path from 'node:path'
22
import { describe, expect, test } from 'vitest'
3-
import { type EnumData, scanEnums } from '../src/core/enum'
3+
import { scanEnums, type EnumData } from '../src/core/enum'
44
import type { OptionsResolved } from '../src/core/options'
55

66
describe('scanEnums', () => {

tests/vite.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import path from 'node:path'
2-
import { expect, test } from 'vitest'
32
import { build } from 'vite'
3+
import { expect, test } from 'vitest'
44
import UnpluginInlineEnum from '../src/vite'
55
import type { RollupOutput } from 'rollup'
66

0 commit comments

Comments
 (0)