Skip to content

Commit

Permalink
Fix import/no-cycle
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalLytek committed Aug 9, 2023
1 parent 420bf1b commit 7e546d9
Show file tree
Hide file tree
Showing 16 changed files with 3 additions and 22 deletions.
8 changes: 2 additions & 6 deletions examples/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
"rules": {
"no-console": "off",
"class-methods-use-this": "off",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
]
"import/no-cycle": "off",
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }]
}
}
2 changes: 1 addition & 1 deletion examples/apollo-federation/reviews/product/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from "./product";
// eslint-disable-next-line import/no-cycle

export * from "./resolver";
1 change: 0 additions & 1 deletion examples/apollo-federation/reviews/product/resolver.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { FieldResolver, Resolver, Root } from "type-graphql";
import { Product } from "./product";
// eslint-disable-next-line import/no-cycle
import { Review, reviews } from "../review";

@Resolver(_of => Product)
Expand Down
1 change: 0 additions & 1 deletion examples/apollo-federation/reviews/review/data.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// eslint-disable-next-line import/no-cycle
import { Review } from "./review";
import { Product } from "../product";
import { User } from "../user";
Expand Down
1 change: 0 additions & 1 deletion examples/apollo-federation/reviews/review/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// eslint-disable-next-line import/no-cycle
export * from "./data";
export * from "./resolver";
export * from "./review";
1 change: 0 additions & 1 deletion examples/apollo-federation/reviews/review/resolver.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { FieldResolver, Resolver } from "type-graphql";
// eslint-disable-next-line import/no-cycle
import { reviews } from "./data";
import { Review } from "./review";

Expand Down
1 change: 0 additions & 1 deletion examples/apollo-federation/reviews/review/review.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Directive, Field, ID, ObjectType } from "type-graphql";
// eslint-disable-next-line import/no-cycle
import { Product } from "../product";
import { User } from "../user";

Expand Down
1 change: 0 additions & 1 deletion examples/apollo-federation/reviews/user/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
// eslint-disable-next-line import/no-cycle
export * from "./resolver";
export * from "./user";
1 change: 0 additions & 1 deletion examples/apollo-federation/reviews/user/resolver.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { FieldResolver, Resolver, Root } from "type-graphql";
import { User } from "./user";
// eslint-disable-next-line import/no-cycle
import { Review, reviews } from "../review";

@Resolver(_of => User)
Expand Down
1 change: 0 additions & 1 deletion examples/mikro-orm/entities/rating.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Entity, ManyToOne, OptionalProps, PrimaryKey, Property } from "@mikro-orm/core";
import { Field, Int, ObjectType } from "type-graphql";
// eslint-disable-next-line import/no-cycle
import { Recipe } from "./recipe";
import { User } from "./user";

Expand Down
1 change: 0 additions & 1 deletion examples/mikro-orm/entities/recipe.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Collection, Entity, ManyToOne, OneToMany, PrimaryKey, Property } from "@mikro-orm/core";
import { Field, ID, ObjectType } from "type-graphql";
// eslint-disable-next-line import/no-cycle
import { Rating } from "./rating";
import { User } from "./user";

Expand Down
1 change: 0 additions & 1 deletion examples/typeorm-basic-usage/entities/rating.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
PrimaryGeneratedColumn,
RelationId,
} from "typeorm";
// eslint-disable-next-line import/no-cycle
import { Recipe } from "./recipe";
import { User } from "./user";

Expand Down
1 change: 0 additions & 1 deletion examples/typeorm-basic-usage/entities/recipe.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Field, ID, ObjectType } from "type-graphql";
import { Column, Entity, ManyToOne, OneToMany, PrimaryGeneratedColumn, RelationId } from "typeorm";
// eslint-disable-next-line import/no-cycle
import { Rating } from "./rating";
import { User } from "./user";

Expand Down
1 change: 0 additions & 1 deletion examples/typeorm-lazy-relations/entities/rating.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Field, Int, ObjectType } from "type-graphql";
import { Column, CreateDateColumn, Entity, ManyToOne, PrimaryGeneratedColumn } from "typeorm";
// eslint-disable-next-line import/no-cycle
import { Recipe } from "./recipe";
import { User } from "./user";

Expand Down
2 changes: 0 additions & 2 deletions examples/typeorm-lazy-relations/entities/recipe.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { Field, ID, ObjectType } from "type-graphql";
import { Column, Entity, ManyToOne, OneToMany, PrimaryGeneratedColumn } from "typeorm";
// eslint-disable-next-line import/no-cycle
import { Rating } from "./rating";
// eslint-disable-next-line import/no-cycle
import { User } from "./user";

@Entity()
Expand Down
1 change: 0 additions & 1 deletion examples/typeorm-lazy-relations/entities/user.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Field, ID, ObjectType } from "type-graphql";
import { Column, Entity, OneToMany, PrimaryGeneratedColumn } from "typeorm";
// eslint-disable-next-line import/no-cycle
import { Recipe } from "./recipe";

@ObjectType()
Expand Down

0 comments on commit 7e546d9

Please sign in to comment.