Skip to content

Commit

Permalink
feat(eslint-plugin): remove object from ban-types' default types
Browse files Browse the repository at this point in the history
BREAKING CHANGE: `ban-types` no longer reports `object` by default
  • Loading branch information
MichaelDeBoey committed Aug 29, 2021
1 parent d299473 commit ee38e47
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/eslint-plugin/src/rules/ban-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,6 @@ const defaultTypes: Types = {
'- If you want a type meaning "empty object", you probably want `Record<string, never>` instead.',
].join('\n'),
},
object: {
message: [
'The `object` type is currently hard to use ([see this issue](https://github.com/microsoft/TypeScript/issues/21732)).',
'Consider using `Record<string, unknown>` instead, as it allows you to more easily inspect and use the keys.',
].join('\n'),
},
};

export const TYPE_KEYWORDS = {
Expand Down

0 comments on commit ee38e47

Please sign in to comment.