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({