Closed
Description
Description
Similar advantages to allowedNames
on explicit-module-boundary-types
and ignoredMethodNames
on explicit-member-accessibility
Fail
{
"@typescript-eslint/explicit-function-return-type": [
"error",
{
"allowedNames": []
}
]
}
ngOnInit() {
this.initStuff();
}
initStuff(): void {
this.init = true;
}
Pass
{
"@typescript-eslint/explicit-function-return-type": [
"error",
{
"allowedNames": ["ngOnInit"]
}
]
}
ngOnInit() {
this.initStuff();
}
initStuff(): void {
this.init = true;
}