WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

@blitz/lines-around-comment conflicts with prettier/prettier #28

@AriPerkkio

Description

@AriPerkkio

Reproduction

https://stackblitz.com/~/edit/stackblitz-starters-afmjq7?file=types.d.ts&file=types-with-line-break.d.ts

1 | declare namespace something {
2 |   /** JSDoc describing this */
      ^ 2:3  error  Expected line before comment  @blitz/lines-around-comment
3 |   export const entry: 1;
4 | }
1 | declare namespace something2 {
2 |
    ^  2:1  error  Delete `⏎`  prettier/prettier
3 |   /** JSDoc describing this */
4 |   export const entry2: 1;
5 | }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions