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

[TS] disable lint in index file #9675

Merged
merged 3 commits into from
Aug 6, 2021

Commits on Jun 4, 2021

  1. [TS] disable lint in index file

    We disable lint in typescript-fetch in this PR
    OpenAPITools#4110
    
    But we doesn't disable index.ts files so we'll get error with [no-cycle](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-cycle.md) rule.
    
    - index.ts [import all classFiles](https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/typescript-fetch/models.index.mustache#L4) to exporting
    - When model use another models (i.e. article model have user model as author), model import another model [using index.ts](https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/typescript-fetch/modelGeneric.mustache#L10)
    
    So we need disable all generated file.
    ota42y committed Jun 4, 2021
    Configuration menu
    Copy the full SHA
    3dbefa1 View commit details
    Browse the repository at this point in the history
  2. generate files

    ota42y committed Jun 4, 2021
    Configuration menu
    Copy the full SHA
    dfce063 View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2021

  1. Configuration menu
    Copy the full SHA
    ab2c41f View commit details
    Browse the repository at this point in the history