Skip to content

Commit

Permalink
[TS] disable lint in index file
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ota42y committed Jun 4, 2021
1 parent c5fefa9 commit 3dbefa1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* tslint:disable */
/* eslint-disable */
{{#apiInfo}}
{{#apis}}
{{#operations}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* tslint:disable */
/* eslint-disable */
export * from './runtime';
{{#apiInfo}}
{{#apis.0}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* tslint:disable */
/* eslint-disable */
{{#models}}
{{#model}}
{{^withoutRuntimeChecks}}
Expand Down

0 comments on commit 3dbefa1

Please sign in to comment.