Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

Interface formatting conventions #276

Open
reuveniy opened this issue Nov 9, 2018 · 1 comment
Open

Interface formatting conventions #276

reuveniy opened this issue Nov 9, 2018 · 1 comment

Comments

@reuveniy
Copy link
Contributor

reuveniy commented Nov 9, 2018

Support tslint interface rule

Description

Some projects have adopted https://palantir.github.io/tslint/rules/interface-name/ tslint interface rule making all interfaces starting with a captial I. graphqlgen does not comply with that and this proposal is to make it configurable so code generation will emit tslint friendly output.

Additional context

Implementation wide it should be pretty strait forward to add this configuraiton to the graphqlgen.yml file, read it and delegate it to the code gen template functions.

@jasonkuhrt
Copy link
Member

@reuveniy what do you think if aside from there being a config it defaulted to whatever tslint had configured. Ideally the developer shouldn't have to manually configure this. They already did so once with tslint, after all.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants