Skip to content

Commit

Permalink
chore: fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Lena Rashkovan committed Oct 29, 2023
1 parent 4eb3298 commit 9dbc0d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/cli/commands/help.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export class HelpCommand implements Command {
${chalk.bold('ПРИМЕР')}
${chalk.bold('cli.js')} --${chalk.underline(
'command',
)} [...${chalk.underline('arguments')}]
'command',
)} [...${chalk.underline('arguments')}]
${chalk.bold('КОМАНДЫ')}
${chalk.bold('--version')}
Expand All @@ -22,8 +22,8 @@ ${chalk.bold('КОМАНДЫ')}
${chalk.bold('--import')} ${chalk.underline('path')}
Импортирует данные из TSV
${chalk.bold('--generate')} ${chalk.underline('n')} ${chalk.underline(
'path',
)} ${chalk.underline('url')}
'path',
)} ${chalk.underline('url')}
Генерирует произвольное количество тестовых данных
`);
}
Expand Down
4 changes: 2 additions & 2 deletions src/shared/libs/config/rest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class RestConfig implements Config<RestSchema> {
const parsedOutput = config();

if (parsedOutput.error) {
throw new Error("Can't read .env file. Does it exist?");
throw new Error('Can\'t read .env file. Does it exist?');
}

configRestSchema.load({});
Expand All @@ -22,7 +22,7 @@ export class RestConfig implements Config<RestSchema> {
configRestSchema.validate({ allowed: 'strict' });
} catch (error) {
this.logger.error('.env file is not valid', error as Error);
throw new Error("Can't validate config");
throw new Error('Can\'t validate config');
}

this.config = configRestSchema.getProperties();
Expand Down

0 comments on commit 9dbc0d8

Please sign in to comment.