Skip to content

Fix linting errors in TypeScript namespace generation #279

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

Merged
merged 1 commit into from
Aug 27, 2020

Conversation

zengin
Copy link
Contributor

@zengin zengin commented Aug 27, 2020

Summary

This is fixing the issues found by dtslint. (thanks @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

@zengin zengin self-assigned this Aug 27, 2020
Copy link
Contributor

@MIchaelMainer MIchaelMainer left a comment

Choose a reason for hiding this comment

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

LGTM

@zengin zengin merged commit 01701e3 into dev Aug 27, 2020
@zengin zengin deleted the zengin/lintingFixes branch February 1, 2021 18:39
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