Skip to content

Commit

Permalink
chore(lint): prefer record over index signature
Browse files Browse the repository at this point in the history
  • Loading branch information
rellafella committed Nov 11, 2024
1 parent 91bd12c commit ff2a58c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/command-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ interface OptionCommand {
}

// Supported options
type OptionCommands = {
[_key in 'check' | 'fix' | 'init' | 'printConfig']?: OptionCommand;
};
type OptionCommands = Partial<Record<'check' | 'fix' | 'init' | 'printConfig', OptionCommand>>;

function createStreamTransform(logPrefix: string | undefined, logColor: ChalkColor): Transform {
return new Transform({
Expand Down

0 comments on commit ff2a58c

Please sign in to comment.