grpc-js: linter disable no-unused-vars

Make prettier happy and move eslint-disable comment
This commit is contained in:
Patrick Remy 2020-04-11 16:11:13 +02:00
parent 873e6d411c
commit a4d3f290eb
No known key found for this signature in database
GPG Key ID: FE25C0B14C0500CD
2 changed files with 4 additions and 2 deletions

View File

@ -4,6 +4,7 @@
"rules": {
"node/no-unpublished-import": ["error", {
"tryExtensions": [".ts", ".js", ".json", ".node"]
}]
}],
"@typescript-eslint/no-unused-vars": "off"
}
}

View File

@ -50,12 +50,13 @@ export interface MethodDefinition<RequestType, ResponseType>
extends ClientMethodDefinition<RequestType, ResponseType>,
ServerMethodDefinition<RequestType, ResponseType> {}
/* eslint-disable @typescript-eslint/no-explicit-any */
export type ServiceDefinition<
ImplementationType = UntypedServiceImplementation
> = {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
readonly [index in keyof ImplementationType]: MethodDefinition<any, any>;
};
/* eslint-enable @typescript-eslint/no-explicit-any */
export interface ProtobufTypeDefinition {
format: string;