Closed LinusU closed 3 years ago
Right, maybe it has something to do with the rules defined in eslint-config-standard-with-typescript. @LinusU
Does this error still occur if you name the params and start them with _
so
willResolveField (_param1: {}, _param2: {}, _param3: {}, { path, fieldName, parentType, returnType }: GraphQLResolveInfo): ReturnType<NonNullable<GraphQLExtension['willResolveField']>> {
// ...
}
I believe the rule wants to you give them proper arg names, just prefix them with _
to designate they are ignored. Feel free to open an issue in the rules project if you think it should be changed.
What version of this package are you using?
10.0.0
What operating system, Node.js, and npm version?
macOS 11.0.1, Node v12.18.2
What happened?
What did you expect to happen?
I expected no errors since I'm using the
_
,__
, and___
names to ignore the argumentsAre you willing to submit a pull request to fix this bug?
Yes