From 42a90c05ffae8a121ffb81b9a5403ba25babc9a1 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Mon, 27 May 2024 00:27:06 +0200 Subject: [PATCH] feat: use `antfu/curly` to replace `curly` --- src/configs/stylistic.ts | 2 +- src/factory.ts | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/configs/stylistic.ts b/src/configs/stylistic.ts index 85716ce0a6..b575682a18 100644 --- a/src/configs/stylistic.ts +++ b/src/configs/stylistic.ts @@ -56,9 +56,9 @@ export async function stylistic( curly: ['error', 'all'], } : { + 'antfu/curly': 'error', 'antfu/if-newline': 'error', 'antfu/top-level-function': 'error', - 'curly': ['error', 'multi-or-nest', 'consistent'], } ), diff --git a/src/factory.ts b/src/factory.ts index 8a2ca433b1..30398230e8 100644 --- a/src/factory.ts +++ b/src/factory.ts @@ -139,8 +139,9 @@ export function antfu( perfectionist(), ) - if (enableVue) + if (enableVue) { componentExts.push('vue') + } if (enableTypeScript) { configs.push(typescript({ @@ -158,8 +159,9 @@ export function antfu( })) } - if (enableRegexp) + if (enableRegexp) { configs.push(regexp(typeof enableRegexp === 'boolean' ? {} : enableRegexp)) + } if (options.test ?? true) { configs.push(test({