Skip to content

Commit 36a5052

Browse files
ESLint: enable 'no-unnecessary-type-arguments' check (#2392)
1 parent 82ea9ca commit 36a5052

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

.eslintrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ overrides:
481481
'@typescript-eslint/no-type-alias': off # TODO consider
482482
'@typescript-eslint/no-unnecessary-condition': error
483483
'@typescript-eslint/no-unnecessary-qualifier': error
484-
'@typescript-eslint/no-unnecessary-type-arguments': off # TODO error
484+
'@typescript-eslint/no-unnecessary-type-arguments': error
485485
'@typescript-eslint/no-unnecessary-type-assertion': error
486486
'@typescript-eslint/no-unused-vars-experimental': off
487487
'@typescript-eslint/no-var-requires': error

src/utilities/getIntrospectionQuery.d.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,10 @@ export interface IntrospectionNonNullTypeRef<
112112
}
113113

114114
export type IntrospectionTypeRef =
115-
| IntrospectionNamedTypeRef<IntrospectionType>
115+
| IntrospectionNamedTypeRef
116116
| IntrospectionListTypeRef<any>
117117
| IntrospectionNonNullTypeRef<
118-
| IntrospectionNamedTypeRef<IntrospectionType>
119-
| IntrospectionListTypeRef<any>
118+
IntrospectionNamedTypeRef | IntrospectionListTypeRef<any>
120119
>;
121120

122121
export type IntrospectionOutputTypeRef =

src/utilities/getIntrospectionQuery.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,10 @@ export type IntrospectionNonNullTypeRef<
204204
|};
205205

206206
export type IntrospectionTypeRef =
207-
| IntrospectionNamedTypeRef<IntrospectionType>
208-
| IntrospectionListTypeRef<IntrospectionTypeRef>
207+
| IntrospectionNamedTypeRef<>
208+
| IntrospectionListTypeRef<>
209209
| IntrospectionNonNullTypeRef<
210-
| IntrospectionNamedTypeRef<IntrospectionType>
211-
| IntrospectionListTypeRef<IntrospectionTypeRef>,
210+
IntrospectionNamedTypeRef<> | IntrospectionListTypeRef<>,
212211
>;
213212

214213
export type IntrospectionOutputTypeRef =

0 commit comments

Comments
 (0)