Skip to content

fix(consistent-list-newline): when multiline nodes only have one item, line break should have same behavior#40

Merged
antfu merged 2 commits intoantfu:mainfrom
zzxming:fix-consistent-list-newline
Mar 7, 2025
Merged

fix(consistent-list-newline): when multiline nodes only have one item, line break should have same behavior#40
antfu merged 2 commits intoantfu:mainfrom
zzxming:fix-consistent-list-newline

Conversation

@zzxming
Copy link
Contributor

@zzxming zzxming commented Mar 7, 2025

…, line break should have same behavior

Description

before

const foo = {a:1
}

function foo(a
){}

interface foo {a:1
}

type foo = [
1]

after fix

const foo = {a:1}

function foo(a){}

interface foo {a:1}

type foo = [
1
]

Linked Issues

Should be able to solve #32

Additional context

@antfu
Copy link
Owner

antfu commented Mar 7, 2025

Thank you!

@antfu antfu merged commit 34f8027 into antfu:main Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants