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

Skip to content

Commit ab9f6e8

Browse files
authored
update defaults again
1 parent 376145b commit ab9f6e8

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
@@ -96,11 +96,10 @@ export default util.createRule<Options, MessageIds>({
9696
fixWith: 'number',
9797
},
9898
Object: {
99-
message: 'Object is not type safe, use Record<string, unknown> instead',
100-
fixWith: 'Record<string, unknown>',
99+
message: 'The Object type is mostly the same as unknown, you probably want Record<string, unknown> instead',
101100
},
102101
object: {
103-
message: 'Object is not type safe, use Record<string, unknown> instead',
102+
message: 'The object type is hard to use, use Record<string, unknown> instead',
104103
fixWith: 'Record<string, unknown>',
105104
},
106105
Symbol: {

0 commit comments

Comments
 (0)