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

Skip to content
This repository was archived by the owner on Sep 25, 2020. It is now read-only.

Commit 28a2133

Browse files
committed
update defaults again
1 parent 8aed443 commit 28a2133

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,10 @@ export default util.createRule<Options, MessageIds>({
102102
fixWith: 'number',
103103
},
104104
Object: {
105-
message: 'Object is not type safe, use Record<string, unknown> instead',
106-
fixWith: 'Record<string, unknown>',
105+
message: 'The Object type is mostly the same as unknown, you probably want Record<string, unknown> instead',
107106
},
108107
object: {
109-
message: 'Object is not type safe, use Record<string, unknown> instead',
108+
message: 'The object type is hard to use, use Record<string, unknown> instead',
110109
fixWith: 'Record<string, unknown>',
111110
},
112111
Symbol: {

0 commit comments

Comments
 (0)