From 4d802b494247c7fd7e49e43bb6115384aaa3f111 Mon Sep 17 00:00:00 2001 From: Daniel Cassidy Date: Sat, 19 Nov 2022 07:57:33 +0000 Subject: [PATCH] feat(ban-types): remove autofixes for banned `{}` and `Object` types These were very rarely good fixes --- index.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/index.ts b/index.ts index 5ed3a32f..c41a8ae2 100644 --- a/index.ts +++ b/index.ts @@ -48,8 +48,7 @@ const config: Linter.Config = { 'Do not use `Object`, it means "any non-nullish value".', '- If you want a type meaning "any object", you probably want `Record` instead.', '- If you want a type meaning "any value", you probably want `unknown` instead.' - ].join("\n"), - fixWith: "Record" + ].join("\n") }, "{}": { message: [ @@ -57,8 +56,7 @@ const config: Linter.Config = { '- If you want a type meaning "any object", you probably want `Record` instead.', '- If you want a type meaning "any value", you probably want `unknown` instead.', '- If you want a type meaning "empty object", you probably want `Record` instead.' - ].join("\n"), - fixWith: "Record" + ].join("\n") }, "Function": { message: [