Skip to content

Commit

Permalink
fix: rm empty object from @typescript-eslint/ban-types
Browse files Browse the repository at this point in the history
Covered by @typescript-eslint/no-empty-object-type
  • Loading branch information
mightyiam committed Aug 24, 2024
1 parent 28572d5 commit 79c1eaa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,6 @@ const rules = {
'- If you want a type meaning "any value", you probably want `unknown` instead.',
].join('\n'),
},
'{}': {
message: [
'`{}` actually means "any non-nullish value".',
'- If you want a type meaning "any object", you probably want `Record<string, unknown>` instead.',
'- If you want a type meaning "any value", you probably want `unknown` instead.',
].join('\n'),
},
},
},
],
Expand Down
7 changes: 0 additions & 7 deletions src/test/_expected-exported-value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,13 +220,6 @@ export const expectedExportedValue: TSESLint.FlatConfig.Config = {
'- If you want a type meaning "any value", you probably want `unknown` instead.',
].join('\n'),
},
'{}': {
message: [
'`{}` actually means "any non-nullish value".',
'- If you want a type meaning "any object", you probably want `Record<string, unknown>` instead.',
'- If you want a type meaning "any value", you probably want `unknown` instead.',
].join('\n'),
},
},
},
],
Expand Down

0 comments on commit 79c1eaa

Please sign in to comment.