Skip to content

Commit 9d7495e

Browse files
committed
chore: Deprecate @typescript-eslint/ban-types
1 parent fe13627 commit 9d7495e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.eslintrc.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,23 +47,28 @@ rules:
4747
"@typescript-eslint/array-type":
4848
- error
4949
- default: array
50-
"@typescript-eslint/ban-types":
50+
"@typescript-eslint/no-restricted-types":
5151
- error
5252
- types:
5353
Object:
5454
message: Avoid using the `Object` type. Did you mean `object`?
55+
fixWith: object
5556
Function:
5657
message: >-
5758
Avoid using the `Function` type. Prefer a specific function type,
5859
like `() => void`.
5960
Boolean:
6061
message: Avoid using the `Boolean` type. Did you mean `boolean`?
62+
fixWith: boolean
6163
Number:
6264
message: Avoid using the `Number` type. Did you mean `number`?
65+
fixWith: number
6366
String:
6467
message: Avoid using the `String` type. Did you mean `string`?
68+
fixWith: string
6569
Symbol:
6670
message: Avoid using the `Symbol` type. Did you mean `symbol`?
71+
fixWith: symbol
6772
"@typescript-eslint/consistent-type-assertions": error
6873
"@typescript-eslint/dot-notation": error
6974
"@typescript-eslint/explicit-function-return-type":
@@ -92,7 +97,7 @@ rules:
9297
format:
9398
- camelCase
9499
- PascalCase
95-
- UPPER_CASE # for constants
100+
- UPPER_CASE # for constants
96101
filter:
97102
regex: (^[a-z]+:.+)|_attr|[0-9]
98103
match: false

0 commit comments

Comments
 (0)