File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ Then you should add `airbnb` (or `airbnb-base`) to your `extends` section of `.e
127
127
| [ ` @typescript-eslint/array-type ` ] ( ./docs/rules/array-type.md ) | Requires using either ` T[] ` or ` Array<T> ` for arrays | :heavy_check_mark : | :wrench : | |
128
128
| [ ` @typescript-eslint/await-thenable ` ] ( ./docs/rules/await-thenable.md ) | Disallows awaiting a value that is not a Thenable | | | :thought_balloon : |
129
129
| [ ` @typescript-eslint/ban-ts-ignore ` ] ( ./docs/rules/ban-ts-ignore.md ) | Bans “// @ts-ignore ” comments from being used | | | |
130
- | [ ` @typescript-eslint/ban-types ` ] ( ./docs/rules/ban-types.md ) | Enforces that types will not to be used | :heavy_check_mark : | :wrench : | |
130
+ | [ ` @typescript-eslint/ban-types ` ] ( ./docs/rules/ban-types.md ) | Bans specific types from being used | :heavy_check_mark : | :wrench : | |
131
131
| [ ` @typescript-eslint/camelcase ` ] ( ./docs/rules/camelcase.md ) | Enforce camelCase naming convention | :heavy_check_mark : | | |
132
132
| [ ` @typescript-eslint/class-name-casing ` ] ( ./docs/rules/class-name-casing.md ) | Require PascalCased class and interface names | :heavy_check_mark : | | |
133
133
| [ ` @typescript-eslint/consistent-type-assertions ` ] ( ./docs/rules/consistent-type-assertions.md ) | Enforces consistent usage of type assertions. | :heavy_check_mark : | | |
Original file line number Diff line number Diff line change 1
- # Enforces that types will not to be used (ban-types)
1
+ # Bans specific types from being used (ban-types)
2
2
3
- Bans specific types from being used. Does not ban the corresponding runtime objects from being used.
3
+ This rule bans specific types and can suggest alternatives. It does not ban the
4
+ corresponding runtime objects from being used.
4
5
5
6
## Rule Details
6
7
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ export default util.createRule<Options, MessageIds>({
46
46
meta : {
47
47
type : 'suggestion' ,
48
48
docs : {
49
- description : 'Enforces that types will not to be used' ,
49
+ description : 'Bans specific types from being used' ,
50
50
category : 'Best Practices' ,
51
51
recommended : 'error' ,
52
52
} ,
You can’t perform that action at this time.
0 commit comments