From 6eeff690055191cd65e93683516a393a75e46879 Mon Sep 17 00:00:00 2001 From: Hiroki Osame Date: Thu, 26 Dec 2024 11:30:39 +0900 Subject: [PATCH] docs(consistent-type-specifier-style): correct default option --- docs/rules/consistent-type-specifier-style.md | 4 ++-- src/rules/consistent-type-specifier-style.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/rules/consistent-type-specifier-style.md b/docs/rules/consistent-type-specifier-style.md index 11beda2eb..e94798962 100644 --- a/docs/rules/consistent-type-specifier-style.md +++ b/docs/rules/consistent-type-specifier-style.md @@ -37,10 +37,10 @@ This rule includes a fixer that will automatically convert your specifiers to th The rule accepts a single string option which may be one of: -- `'prefer-inline'` - enforces that named type-only specifiers are only ever written with an inline marker; and never as part of a top-level, type-only import. - `'prefer-top-level'` - enforces that named type-only specifiers only ever written as part of a top-level, type-only import; and never with an inline marker. +- `'prefer-inline'` - enforces that named type-only specifiers are only ever written with an inline marker; and never as part of a top-level, type-only import. -By default the rule will use the `prefer-inline` option. +By default the rule will use the `prefer-top-level` option. ## Examples diff --git a/src/rules/consistent-type-specifier-style.ts b/src/rules/consistent-type-specifier-style.ts index 9df23a092..d573a2640 100644 --- a/src/rules/consistent-type-specifier-style.ts +++ b/src/rules/consistent-type-specifier-style.ts @@ -61,8 +61,8 @@ export = createRule<[Options?], MessageId>({ schema: [ { type: 'string', - enum: ['prefer-inline', 'prefer-top-level'], - default: 'prefer-inline', + enum: ['prefer-top-level', 'prefer-inline'], + default: 'prefer-top-level', }, ], messages: {