From d612dd10c2224480e92681178f6682355c5d5267 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Fri, 27 Dec 2024 13:30:32 +0800 Subject: [PATCH] chore: fix lint --- README.md | 2 +- src/core/options.ts | 2 +- src/index.ts | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 4965a2d..fc4174b 100644 --- a/README.md +++ b/README.md @@ -68,9 +68,9 @@ module.exports = { ## Usage ```ts -import text from './ts.ts?raw' import text2 from './js.js?raw' import text3 from './jsx.jsx?raw' +import text from './ts.ts?raw' ``` ## Sponsors diff --git a/src/core/options.ts b/src/core/options.ts index bee263f..f0e120c 100644 --- a/src/core/options.ts +++ b/src/core/options.ts @@ -1,5 +1,5 @@ -import type { TransformOptions } from 'esbuild' import type { FilterPattern } from '@rollup/pluginutils' +import type { TransformOptions } from 'esbuild' export interface Options { /** @default 'pre' */ diff --git a/src/index.ts b/src/index.ts index 91a6634..ad9482e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,10 +1,10 @@ import { readFile } from 'node:fs/promises' import path from 'node:path' -import { type UnpluginInstance, createUnplugin } from 'unplugin' import { createFilter } from '@rollup/pluginutils' -import { type Options, resolveOptions } from './core/options' -import type { PluginContext } from 'rollup' +import { createUnplugin, type UnpluginInstance } from 'unplugin' +import { resolveOptions, type Options } from './core/options' import type { Loader } from 'esbuild' +import type { PluginContext } from 'rollup' const unplugin: UnpluginInstance = createUnplugin( (rawOptions = {}, meta) => {