From 400bbc1e95289fbd3f4b4edf6a3985cd4fcb2c90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E5=8F=AA=E5=89=8D=E7=AB=AF=E6=B1=AA?= <985313519@qq.com> Date: Mon, 16 Mar 2026 17:03:46 +0800 Subject: [PATCH] chore: add linting and formatting ignores in context and snapshot files --- src/core/ctx.ts | 2 ++ test/__snapshots__/dts.test.ts.snap | 2 ++ test/tmp/dts.increase.d.ts | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/core/ctx.ts b/src/core/ctx.ts index 0ce5f176..ef8c8e9c 100644 --- a/src/core/ctx.ts +++ b/src/core/ctx.ts @@ -66,6 +66,8 @@ export function createContext(options: Options = {}, root = process.cwd()) { return `${` /* eslint-disable */ /* prettier-ignore */ +/* oxlint-disable */ +/* oxfmt-ignore */ // @ts-nocheck // noinspection JSUnusedGlobalSymbols // Generated by unplugin-auto-import diff --git a/test/__snapshots__/dts.test.ts.snap b/test/__snapshots__/dts.test.ts.snap index 187ec0a5..7a7644e8 100644 --- a/test/__snapshots__/dts.test.ts.snap +++ b/test/__snapshots__/dts.test.ts.snap @@ -3,6 +3,8 @@ exports[`dts > normal 1`] = ` "/* eslint-disable */ /* prettier-ignore */ +/* oxlint-disable */ +/* oxfmt-ignore */ // @ts-nocheck // noinspection JSUnusedGlobalSymbols // Generated by unplugin-auto-import diff --git a/test/tmp/dts.increase.d.ts b/test/tmp/dts.increase.d.ts index d5d9f5dc..cc6234e4 100644 --- a/test/tmp/dts.increase.d.ts +++ b/test/tmp/dts.increase.d.ts @@ -1,5 +1,7 @@ /* eslint-disable */ /* prettier-ignore */ +/* oxlint-disable */ +/* oxfmt-ignore */ // @ts-nocheck // noinspection JSUnusedGlobalSymbols // Generated by unplugin-auto-import