Skip to content

Commit 9dbb4f9

Browse files
authored
fix(eslint-plugin): remove references to "extendDefaults" in no-restricted-types (typescript-eslint#10401)
fix(docs): remove references to "extendDefaults" in no-restricted-types
1 parent fcd6cf0 commit 9dbb4f9

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

packages/eslint-plugin/docs/rules/no-restricted-types.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ The type can either be a type name literal (`OldType`) or a a type name with gen
2626
The values can be:
2727

2828
- A string, which is the error message to be reported; or
29-
- `false` to specifically un-ban this type (useful when you are using `extendDefaults`); or
3029
- An object with the following properties:
3130
- `message: string`: the message to display when the type is matched.
3231
- `fixWith?: string`: a string to replace the banned type with when the fixer is run. If this is omitted, no fix will be done.

packages/eslint-plugin/src/rules/no-restricted-types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ type Types = Record<
1818

1919
export type Options = [
2020
{
21-
extendDefaults?: boolean;
2221
types?: Types;
2322
},
2423
];

0 commit comments

Comments
 (0)