Skip to content

hyoban-repro/prettier-plugin-curly-collision

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prettier-plugin-curly-collision

Reproduction for JoshuaKGoldberg/prettier-plugin-curly#386.

Input:

import { Agent } from "node:http";
import { access } from "node:fs";

function test() {
  const a = true;

  if (a) return;
}

Expected output:

function test() {
  const a = true;

  if (a) {
    return;
  }
}

With prettier-plugin-organize-imports and prettier-plugin-curly (The order of the plugins matters)

import { Agent } from "node:http";
import { access } from "node:fs";

function test() {
  const a = true;

  if (a) {
    return;
  }
}

With prettier-plugin-curly and prettier-plugin-organize-imports

function test() {
  const a = true;

  if (a) return;
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published