Skip to content

Fix linting errors in TypeScript namespace generation - #279

Merged
Mustafa Zengin (zengin) merged 1 commit into
devfrom
zengin/lintingFixes
Aug 27, 2020
Merged

Mustafa Zengin (zengin) merged 1 commit into
devfrom
zengin/lintingFixes

Conversation

@zengin

@zengin Mustafa Zengin (zengin) commented Aug 27, 2020 •

Copy link
Copy Markdown
Contributor

Summary

This is fixing the issues found by dtslint. (thanks Nikitha Chettiar (@nikithauc)).

  1. Double empty lines are removed.
  2. export in subnamespace types are removed as they are not needed.

Generated code differences

Code diff can be seen in the test changes.

Command line arguments to run these changes

.\Typewriter.exe -v Info -m 'https://raw.githubusercontent.com/microsoftgraph/msgraph-metadata/master/clean_v10_metadata/cleanMetadataWithDescriptionsv1.0.xml' -o .\TypeScriptLintFixesV1\ -g Files -l TypeScript

.\Typewriter.exe -v Info -m 'https://raw.githubusercontent.com/microsoftgraph/msgraph-metadata/master/clean_beta_metadata/cleanMetadataWithDescriptionsbeta.xml' -o .\TypeScriptLintFixesBeta\ -g Files -l TypeScript

Links to issues or work items this PR addresses

AB#5029

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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

Successfully merging this pull request may close these issues.

2 participants