Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b731df9

Browse files
glenwintersbradzacher
authored andcommitted
docs(eslint-plugin): Improve ban-types description (typescript-eslint#773)
1 parent 22e9ae5 commit b731df9

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

packages/eslint-plugin/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ Then you should add `airbnb` (or `airbnb-base`) to your `extends` section of `.e
127127
| [`@typescript-eslint/array-type`](./docs/rules/array-type.md) | Requires using either `T[]` or `Array<T>` for arrays | :heavy_check_mark: | :wrench: | |
128128
| [`@typescript-eslint/await-thenable`](./docs/rules/await-thenable.md) | Disallows awaiting a value that is not a Thenable | | | :thought_balloon: |
129129
| [`@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: | |
131131
| [`@typescript-eslint/camelcase`](./docs/rules/camelcase.md) | Enforce camelCase naming convention | :heavy_check_mark: | | |
132132
| [`@typescript-eslint/class-name-casing`](./docs/rules/class-name-casing.md) | Require PascalCased class and interface names | :heavy_check_mark: | | |
133133
| [`@typescript-eslint/consistent-type-assertions`](./docs/rules/consistent-type-assertions.md) | Enforces consistent usage of type assertions. | :heavy_check_mark: | | |

packages/eslint-plugin/docs/rules/ban-types.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# Enforces that types will not to be used (ban-types)
1+
# Bans specific types from being used (ban-types)
22

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.
45

56
## Rule Details
67

packages/eslint-plugin/src/rules/ban-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default util.createRule<Options, MessageIds>({
4646
meta: {
4747
type: 'suggestion',
4848
docs: {
49-
description: 'Enforces that types will not to be used',
49+
description: 'Bans specific types from being used',
5050
category: 'Best Practices',
5151
recommended: 'error',
5252
},

0 commit comments

Comments
 (0)