fix linting in scripts

This commit is contained in:
Norbert de Langen 2022-11-24 20:13:28 +01:00
parent 4158d9b643
commit 3e96c7b9b4
No known key found for this signature in database
GPG Key ID: FD0E78AF9A837762
8 changed files with 10 additions and 6 deletions

View File

@ -3,10 +3,10 @@
// then combine the results into one large documentation.json
import { join, resolve } from 'path';
import { execaCommand } from './utils/exec';
import { realpath, readFile, writeFile, lstat } from 'fs-extra';
import glob from 'glob';
import { directory } from 'tempy';
import { execaCommand } from './utils/exec';
const logger = console;

View File

@ -16,6 +16,7 @@ import { JsPackageManagerFactory } from '../../code/lib/cli/src/js-package-manag
import { maxConcurrentTasks } from '../utils/maxConcurrentTasks';
// eslint-disable-next-line import/no-cycle
import { localizeYarnConfigFiles, setupYarn } from './utils/yarn';
import type { GeneratorConfig } from './utils/types';
import { getStackblitzUrl, renderTemplate } from './utils/template';

View File

@ -1,11 +1,12 @@
import program from 'commander';
import { join } from 'path';
import { existsSync } from 'fs';
import { execaCommand } from '../utils/exec';
import * as tempy from 'tempy';
import { copy, emptyDir, readdir, remove, stat, writeFile } from 'fs-extra';
import { execaCommand } from '../utils/exec';
import { getTemplatesData, renderTemplate } from './utils/template';
// eslint-disable-next-line import/no-cycle
import { commitAllToGit } from './utils/git';
export const logger = console;

View File

@ -1,4 +1,5 @@
import { execaCommand } from '../../utils/exec';
// eslint-disable-next-line import/no-cycle
import { logger } from '../publish';
export async function commitAllToGit(cwd: string) {

View File

@ -1,7 +1,7 @@
import { render } from 'ejs';
import { readFile } from 'fs-extra';
import { format } from 'prettier';
import { GeneratorConfig } from './types';
import type { GeneratorConfig } from './types';
import { allTemplates as reproTemplates } from '../../../code/lib/cli/src/repro-templates';
export async function renderTemplate(templatePath: string, templateData: Record<string, any>) {

View File

@ -1,5 +1,6 @@
import { join } from 'path';
import { move, remove } from 'fs-extra';
// eslint-disable-next-line import/no-cycle
import { runCommand } from '../generate-repros';
interface SetupYarnOptions {

View File

@ -2,8 +2,8 @@
* Use commander and prompts to gather a list of options for a script
*/
import prompts, { Falsy, PrevCaller, PromptType } from 'prompts';
import type { PromptObject } from 'prompts';
import prompts from 'prompts';
import type { PromptObject, Falsy, PrevCaller, PromptType } from 'prompts';
import program from 'commander';
import dedent from 'ts-dedent';
import chalk from 'chalk';

View File

@ -1,6 +1,6 @@
import { execaCommand } from './exec';
import memoize from 'memoizerific';
import { resolve } from 'path';
import { execaCommand } from './exec';
export type Workspace = { name: string; location: string };