I have recently upgraded my angular application to use eslint instead of tslint.
I'm now struggling to enable call-signature typedef.
So, before, I had this:
"typedef": [
true,
...,
"call-signature"
]
But in Eslint, I can't find the equivalent. When looking through their git page, I see this:
type Options = {
arrayDestructuring?: boolean;
arrowParameter?: boolean;
memberVariableDeclaration?: boolean;
objectDestructuring?: boolean;
parameter?: boolean;
propertyDeclaration?: boolean;
variableDeclaration?: boolean;
variableDeclarationIgnoreFunction?: boolean;
};
How can I enable call-signature ?
Doing this is not triggering any warning, despite setting everything to true:
public someMethod() {}
Here is my tslint config:
"@typescript-eslint/typedef": [
"warn",
{
"arrayDestructuring": true,
"arrowParameter": true,
"memberVariableDeclaration": true,
"objectDestructuring": true,
"parameter": true,
"propertyDeclaration": true,
"variableDeclaration": true,
"variableDeclarationIgnoreFunction": true
}
]
I tried to add call-signature but it didn't help.