From 8ba8e8cb19eb0785a3ab5c5d40be34676c23cc54 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Mon, 16 Sep 2024 00:04:34 +0200 Subject: [PATCH] fix: glob for disables --- src/configs/disables.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/configs/disables.ts b/src/configs/disables.ts index 74b0d7f8b1..b82bc7b97f 100644 --- a/src/configs/disables.ts +++ b/src/configs/disables.ts @@ -5,7 +5,7 @@ import { GLOB_SRC, GLOB_SRC_EXT } from '../globs' export async function disables(): Promise { return [ { - files: [`scripts/${GLOB_SRC}`], + files: [`**/scripts/${GLOB_SRC}`], name: 'antfu/disables/scripts', rules: { 'no-console': 'off', @@ -13,7 +13,7 @@ export async function disables(): Promise { }, }, { - files: [`cli/${GLOB_SRC}`, `cli.${GLOB_SRC_EXT}`], + files: [`**/cli/${GLOB_SRC}`, `**/cli.${GLOB_SRC_EXT}`], name: 'antfu/disables/cli', rules: { 'no-console': 'off',