Skip to content

Commit 3dbefa1

Browse files
committed
[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.
1 parent c5fefa9 commit 3dbefa1

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

modules/openapi-generator/src/main/resources/typescript-fetch/apis.index.mustache

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
13
{{#apiInfo}}
24
{{#apis}}
35
{{#operations}}

modules/openapi-generator/src/main/resources/typescript-fetch/index.mustache

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
13
export * from './runtime';
24
{{#apiInfo}}
35
{{#apis.0}}

modules/openapi-generator/src/main/resources/typescript-fetch/models.index.mustache

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
13
{{#models}}
24
{{#model}}
35
{{^withoutRuntimeChecks}}

0 commit comments

Comments
 (0)