Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Add "ban-types" to tslint:latest. #2271

Merged
merged 4 commits into from Feb 28, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/configs/latest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,16 @@ export const rules = {
"arrow-return-shorthand": true,
"no-unnecessary-initializer": true,
"no-misused-new": true,

// added in v4.5
"ban-types": [
true,
["Object", "Avoid using the `Object` type. Did you mean `object`?"],
["Function", "Avoid using the `Function` type. Prefer a specific function type, like `() => void`."],
["Boolean", "Avoid using the `Boolean` type. Did you mean `boolean`?"],
["Number", "Avoid using the `Number` type. Did you mean `number`?"],
["String", "Avoid using the `String` type. Did you mean `string`?"]
],
};
// tslint:enable object-literal-sort-keys

Expand Down