[@typescript-eslint/ban-types] Function is not banned by default #1896
Labels
duplicate
This issue or pull request already exists
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
Expected Result
The tslint:recommended ruleset for ban-types includes Function
https://github.com/palantir/tslint/blob/master/src/configs/recommended.ts#L23
So I would expect it to be the same in @typescript-eslint/recommended.
I was unable to find any issues about it being intentionally removed.
Actual Result
Function type usage is not banned
Additional Info
To match TSLint I have to do this
Versions
@typescript-eslint/eslint-plugin
2.27.0
@typescript-eslint/parser
2.27.0
TypeScript
3.8.3
ESLint
6.8.0
node
13.12.0
npm
X.Y.Z
yarn
1.22.0
The text was updated successfully, but these errors were encountered: