[TS] disable lint in index file#9675
Conversation
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.
cf8d270 to
dfce063
Compare
|
travis-ci failed by docker pull error so please rebuild (I can't rebuild perhaps owner and team member only) appveyor failed but master branch is failed too, so this PR is no problem |
|
I think we can merge this to 5.1.x or 6.0.x because it seems that the cause was just forgetting to add it, so it is close to a bug and many users can benefit quickly. |
You can just close and re-open the PR to trigger the CI again ;-) Will re-open the PR in a second.
@wing328 What do you think? |
We disable lint in typescript-fetch in this PR
#4110
But we doesn't disable index.ts files so we'll get error with no-cycle rule.
So we need disable all generated file.
PR checklist
This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
These must match the expectations made by your contribution.
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example
./bin/generate-samples.sh bin/configs/java*.For Windows users, please run the script in Git BASH.
master,5.1.x,6.0.x@TiFu (2017/07) @taxpon (2017/07) @sebastianhaas (2017/07) @kenisteward (2017/07) @Vrolijkx (2017/09) @macjohnny (2018/01) @topce (2018/10) @akehir (2019/07) @petejohansonxo (2019/11) @amakhrov (2020/02)