rescript-compiler icon indicating copy to clipboard operation
rescript-compiler copied to clipboard

Output indentation too aggressive

Open chenglou opened this issue 6 years ago • 1 comments

let a = React.useState (fun () -> 1)

Output:

var a = React.useState((function () {
          return 1;
        }));

chenglou avatar Sep 24 '19 01:09 chenglou

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 13 '21 02:09 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 16 '23 22:09 stale[bot]

How about to fix it in 11.1?

DZakh avatar Sep 19 '23 06:09 DZakh

Having a look at the indentation overall would be great, if someone's interested in doing that.

zth avatar Sep 19 '23 06:09 zth

Let's reopen it

DZakh avatar Oct 15 '23 06:10 DZakh

Let's reopen it

DZakh avatar Oct 15 '23 06:10 DZakh