Skip to content

Commit

Permalink
docs(consistent-type-specifier-style): correct default option
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed Dec 26, 2024
1 parent 091d2da commit 6eeff69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/rules/consistent-type-specifier-style.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions src/rules/consistent-type-specifier-style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 6eeff69

Please sign in to comment.