Skip to content

Commit

Permalink
chore(cli): fix quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
rudfoss-rr committed Nov 15, 2024
1 parent 6e4c390 commit 59d45a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/commands/lint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ const lintCommand: CommandModule = {
alias: 'p',
description: 'which parser should be used to read the file (defaults to Yaml)',
type: 'string',
choices: ["Yaml", "Json"],
choices: ['Yaml', 'Json'],
default: "Yaml"
},
verbose: {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/services/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ export interface ILintConfig {
failOnUnmatchedGlobs: boolean;
verbose?: boolean;
quiet?: boolean;
parser?: keyof Pick<typeof Parsers, "Json" | "Yaml">
parser?: keyof Pick<typeof Parsers, 'Json' | 'Yaml'>
}
4 changes: 2 additions & 2 deletions packages/cli/src/services/linter/linter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ const createDocument = async (
identifier: string | number,
opts: IFileReadOptions,
source: string,
parser: ILintConfig["parser"] = "Yaml"
parser: ILintConfig['parser'] = 'Yaml'
) => {
if (parser === "Json") {
if (parser === 'Json') {
if (typeof identifier === 'string') {
return new Document(await readParsable(identifier, opts), Parsers.Json, identifier);
}
Expand Down

0 comments on commit 59d45a8

Please sign in to comment.