diff --git a/packages/eslint-plugin/src/rules/consistent-type-assertions.ts b/packages/eslint-plugin/src/rules/consistent-type-assertions.ts index 037a980d17af..8713405115d9 100644 --- a/packages/eslint-plugin/src/rules/consistent-type-assertions.ts +++ b/packages/eslint-plugin/src/rules/consistent-type-assertions.ts @@ -82,7 +82,6 @@ export default createRule({ enum: ['allow', 'allow-as-parameter', 'never'], }, }, - required: ['assertionStyle'], }, ], }, diff --git a/packages/eslint-plugin/tests/schema-snapshots/consistent-type-assertions.shot b/packages/eslint-plugin/tests/schema-snapshots/consistent-type-assertions.shot index 5a7b31771041..7845d5b791bb 100644 --- a/packages/eslint-plugin/tests/schema-snapshots/consistent-type-assertions.shot +++ b/packages/eslint-plugin/tests/schema-snapshots/consistent-type-assertions.shot @@ -33,7 +33,6 @@ exports[`Rule schemas should be convertible to TS types for documentation purpos "type": "string" } }, - "required": ["assertionStyle"], "type": "object" } ] @@ -46,7 +45,12 @@ exports[`Rule schemas should be convertible to TS types for documentation purpos type Options = [ | { /** The expected assertion style to enforce. */ - assertionStyle: + assertionStyle: /** The expected assertion style to enforce. */ + 'never'; + } + | { + /** The expected assertion style to enforce. */ + assertionStyle?: | 'as' /** The expected assertion style to enforce. */ | 'angle-bracket'; @@ -56,11 +60,6 @@ type Options = [ | 'never' /** Whether to always prefer type declarations for object literals used as variable initializers, rather than type assertions. */ | 'allow'; - } - | { - /** The expected assertion style to enforce. */ - assertionStyle: /** The expected assertion style to enforce. */ - 'never'; }, ]; "