class Foo {
private someField?: { bar(): void };
}
with tslint.json configuration:
"completed-docs": [
true,
{
"classes": true,
"enums": true,
"functions": {
"visibilities": [
"exported"
]
},
"methods": {
"privacies": [
"public"
]
},
"interfaces": true,
"namespaces": true
}
],
Documentation must exist for methods.
on the bar function.
The type is not an interface but a type. I don't expect tslint to complain about it.
@buu700 mentioned in #4398:
Edit: Adding
"locations": "all"to"methods"and"properties"fixed this. Is this expected?
I don't think so?
TSLint is deprecated and no longer accepting pull requests other than security fixes. See #4534. โ ๏ธ
We recommend you instead use typescript-eslint to lint your TypeScript code with ESLint. โ
๐ It was a pleasure open sourcing with you!
๐ค Beep boop! ๐ TSLint is deprecated ๐ _(#4534)_ and you should switch to typescript-eslint! ๐ค
๐ This issue is being locked to prevent further unnecessary discussions. Thank you! ๐
Most helpful comment
@buu700 mentioned in #4398:
I don't think so?