Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesrp13 committed Oct 18, 2023
1 parent fa0470c commit 633ff57
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions core/utils/fs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import chalk from 'chalk';
import { createPromise } from 'core/utils/create-promise';
import { isBinary } from './is-binary';

// eslint-disable-next-line @typescript-eslint/no-var-requires
const { Confirm } = require('enquirer');

// TODO - rename so that we know it also renders ejs
Expand Down
1 change: 1 addition & 0 deletions core/utils/renderScaffold.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export const renderScaffold = async (cwd: string, scaffold: BaseScaffold, templa

async function copyFilesAndRenameEnv(allDirFilePaths: string[], basePath: string, cwd: string, templateData: any) {
for (const filePath of allDirFilePaths) {
// eslint-disable-next-line no-await-in-loop
await copyFileWithEjsData(filePath, path.join(cwd, filePath.replace(basePath, '')), templateData);
}
if (fs.existsSync(path.join(cwd, '.env.example'))) {
Expand Down
2 changes: 1 addition & 1 deletion scaffolds/prompts.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/* eslint-disable @typescript-eslint/ban-ts-comment */

import { Prompt } from 'enquirer';
import type { Flags } from 'core/flags';
import type { ValuesOf } from 'core/types/utility-types';
import { ExecaCommand } from 'core/types/BaseScaffold';

// eslint-disable-next-line @typescript-eslint/no-var-requires
const { Select, MultiSelect, Input } = require('enquirer');

export namespace ProjectNamePrompt {
Expand Down

0 comments on commit 633ff57

Please sign in to comment.