relay-compiler-language-typescript icon indicating copy to clipboard operation
relay-compiler-language-typescript copied to clipboard

Use same indentation for types as Relay uses for JSON.

Open alloy opened this issue 6 years ago • 4 comments

https://github.com/kastermester/relay-compiler-language-typescript/pull/18#issuecomment-359179048

alloy avatar Jan 20 '18 15:01 alloy

Why not just run Prettier on the generated file? It also comes with EditorConfig support.

jednano avatar May 24 '19 21:05 jednano

2 spaces?

sibelius avatar May 24 '19 21:05 sibelius

I'm saying that the user might have an .editorconfig file at project root, which expresses their desired indentation. This should be honored and is easy to do with the editorconfig package or with Prettier directly.

jednano avatar May 24 '19 21:05 jednano

That’s not something I think this lib should do, people can do that on their own. This is just a nice to have to be consistent in the same file.

alloy avatar May 24 '19 23:05 alloy