Skip to content

Commit

Permalink
feat: use antfu/curly to replace curly
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed May 26, 2024
1 parent 56cde3f commit 42a90c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/configs/stylistic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
}
),

Expand Down
6 changes: 4 additions & 2 deletions src/factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,9 @@ export function antfu(
perfectionist(),
)

if (enableVue)
if (enableVue) {
componentExts.push('vue')
}

if (enableTypeScript) {
configs.push(typescript({
Expand All @@ -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({
Expand Down

0 comments on commit 42a90c0

Please sign in to comment.