Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make generated code compliant to static analyzers (tslint) #2

Closed
cyrilgandon opened this issue Apr 8, 2016 · 0 comments
Closed

Make generated code compliant to static analyzers (tslint) #2

cyrilgandon opened this issue Apr 8, 2016 · 0 comments

Comments

@cyrilgandon
Copy link
Contributor

Running tslint against generated typescript is going to yield erros:

  • replace var with let

no-var-keyword disallows usage of the var keyword, use let or const instead.

  • remove trailing , in controller's config call to api

trailing-comma enforces or disallows trailing comma within array and object literals, destructuring assignment

  • stop using modules for internal modules, use namespace instead as explains here

no-internal-module disallows internal module (use namespace instead).

@cyrilgandon cyrilgandon changed the title Make generated code compliant to statyc analyzers Make generated code compliant to static analyzers (tslint) Apr 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant