relay-compiler-language-typescript
relay-compiler-language-typescript copied to clipboard
Use same indentation for types as Relay uses for JSON.
https://github.com/kastermester/relay-compiler-language-typescript/pull/18#issuecomment-359179048
Why not just run Prettier on the generated file? It also comes with EditorConfig support.
2 spaces?
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.
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.