mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-16 05:03:11 +08:00
fix linting in scripts
This commit is contained in:
parent
4158d9b643
commit
3e96c7b9b4
@ -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;
|
||||
|
||||
|
@ -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';
|
||||
|
@ -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;
|
||||
|
@ -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) {
|
||||
|
@ -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>) {
|
||||
|
@ -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 {
|
||||
|
@ -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';
|
||||
|
@ -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 };
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user