Skip to content

Commit

Permalink
Comply with sane-fmt 0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
KSXGitHub committed Dec 2, 2020
1 parent 3f6b0af commit 9fed302
Show file tree
Hide file tree
Showing 18 changed files with 43 additions and 43 deletions.
4 changes: 2 additions & 2 deletions app/src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { title, message } from '@scope-name/scoped-hello-world'
import HelloWorld from 'hello-world'
import React from 'react'
import { Helmet } from 'react-helmet'
import HelloWorld from 'hello-world'
import { title, message } from '@scope-name/scoped-hello-world'

const Home = () =>
<>
Expand Down
6 changes: 3 additions & 3 deletions test/package-manager/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import path from 'path'
import { existsSync } from 'fs'
import { project } from '@tools/places'
import { spawnSync } from 'child_process'
import { existsSync } from 'fs'
import path from 'path'
import semver from 'semver'
import { project } from '@tools/places'

const mkfn = (file: string, pkgmgr: string) =>
() => {
Expand Down
4 changes: 2 additions & 2 deletions tools/add-dependency/lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import path from 'path'
import { prompt } from 'inquirer'
import {
Manifest,
ManifestType,
Expand All @@ -12,6 +10,8 @@ import {
loadTestList,
loadToolList,
} from '@tools/utils'
import { prompt } from 'inquirer'
import path from 'path'

async function promptManifestType(): Promise<NonRootManifestTypes.Union> {
const { type } = await prompt({
Expand Down
4 changes: 2 additions & 2 deletions tools/app/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import process from 'process'
import { app } from '@tools/places'
import { spawnSync } from 'child_process'
import process from 'process'
import { dbg } from 'string-template-format-inspect'
import { app } from '@tools/places'

const {
NODE_SCRIPT_RUNNER = 'pnpm run',
Expand Down
10 changes: 5 additions & 5 deletions tools/create-new-folder/lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import path from 'path'
import { spawnSync } from 'child_process'
import { prompt } from 'inquirer'
import yargs from 'yargs'
import * as fsx from 'fs-extra'
import * as config from '@tools/pkgcfg'
import * as places from '@tools/places'
import { createLogger, writeJSON, PackageManifest, TestManifest, ToolManifest, loadRootManifest } from '@tools/utils'
import { spawnSync } from 'child_process'
import * as fsx from 'fs-extra'
import { prompt } from 'inquirer'
import path from 'path'
import yargs from 'yargs'
const rootManifest = loadRootManifest()

const { editor, silent } = yargs
Expand Down
10 changes: 5 additions & 5 deletions tools/docs/lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import places from '@tools/places'
import { loadPackageList, loadRepoUrl } from '@tools/utils'
import { partition } from '@tsfun/array'
import { ensureFile, writeFile, pathExists } from 'fs-extra'
import path from 'path'
import process from 'process'
import { ensureFile, writeFile, pathExists } from 'fs-extra'
import { Application, TypeScript } from 'typedoc'
import { partition } from '@tsfun/array'
import places from '@tools/places'
import { loadPackageList, loadRepoUrl } from '@tools/utils'
import * as config from './config'
import combineGlobPatterns from './combine-glob-patterns'
import * as config from './config'
import { Child, homepage } from './homepage'

async function propIfExists<Key extends string>(
Expand Down
6 changes: 3 additions & 3 deletions tools/ignore-file/lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as path from 'path'
import minimatch from 'minimatch'
import * as yaml from 'js-yaml'
import * as fsx from 'fs-extra'
import * as fsTreeUtils from 'fs-tree-utils'
import * as yaml from 'js-yaml'
import minimatch from 'minimatch'
import * as path from 'path'
import Traverse = fsTreeUtils.Traverse
import DeepFunc = Traverse.Options.DeepFunc

Expand Down
2 changes: 1 addition & 1 deletion tools/publish-tag-push/lib/command.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as places from '@tools/places'
import { StyledText, dim } from './styled-text'
import spawn, { TerminationError, SpawnFactory } from 'advanced-spawn-async'
import { Printer } from '../utils/types'
import { StyledText, dim } from './styled-text'

export function displayCommand(args: readonly StyledText[]): string {
return [dim('$'), ...args]
Expand Down
2 changes: 1 addition & 1 deletion tools/publish-tag-push/lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from './styled-text'
export * from './command'
export * from './main'
export { default } from './main'
export * from './styled-text'
4 changes: 2 additions & 2 deletions tools/publish-tag-push/lib/main.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as places from '@tools/places'
import fs from 'fs'
import { statusMatrix } from 'isomorphic-git'
import * as places from '@tools/places'
import { Printer } from '../utils/types'
import { StyledText, normal, dim, bold } from './styled-text'
import { command } from './command'
import { StyledText, normal, dim, bold } from './styled-text'

export interface EnvironmentVariables {
readonly PUBLISH_TAG_PUSH_EXECUTOR?: string
Expand Down
2 changes: 1 addition & 1 deletion tools/publish-web-pages/lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import process from 'process'
import { publish, Options } from '@tools/gh-pages'
import places from '@tools/places'
import process from 'process'
import { optionsList } from './config'

const DEFAULT_OPTIONS: Options = { dotfiles: true }
Expand Down
6 changes: 3 additions & 3 deletions tools/scripts/bin/main.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import path from 'path'
import process from 'process'
import chalk from 'chalk'
import * as app from '@tools/app'
import * as places from '@tools/places'
import chalk from 'chalk'
import path from 'path'
import process from 'process'
import { commands, enums, functions } from '../index'
const { ExitStatusCode } = enums
const { spawnSync } = functions
Expand Down
4 changes: 2 additions & 2 deletions tools/scripts/lib/functions/format-command/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'
import path from 'path'
import chalk from 'chalk'
import * as places from '@tools/places'
import chalk from 'chalk'
import path from 'path'
const prefix = chalk.dim('$')
const node = chalk.dim('node')
const projectPrfx = '<project>'
Expand Down
2 changes: 1 addition & 1 deletion tools/scripts/lib/functions/spawn-sync/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { spawnSync as execInline } from 'exec-inline'
import process from 'process'
import formatCommand from '../format-command'
import { spawnSync as execInline } from 'exec-inline'
const { SHOW_SPAWN_CMD = 'false' } = process.env

interface SpawnSync {
Expand Down
6 changes: 3 additions & 3 deletions tools/traverse/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { join } from 'path'
import { asyncFilter } from 'iter-tools'
import traverse from 'fast-traverse'
import { readdir, stat } from 'fs-extra'
import { asyncFilter } from 'iter-tools'
import { join } from 'path'
import { pipeline } from 'ts-pipe-compose'
import traverse from 'fast-traverse'

export async function* items(
dirname: string,
Expand Down
6 changes: 3 additions & 3 deletions tools/utils/lib/files/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import path from 'path'
import { readdir, readJSON, existsSync } from 'fs-extra'
import * as places from '@tools/places'
import writeJSON from '../write-json'
import { readdir, readJSON, existsSync } from 'fs-extra'
import path from 'path'
import { Manifest, PackageManifest, TestManifest, ToolManifest, ManifestType } from '../manifest'
import writeJSON from '../write-json'

export abstract class ManifestItem<Obj extends Manifest> {
abstract readonly name: string
Expand Down
6 changes: 3 additions & 3 deletions tools/utils/lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export * from './esm'
export * from './logger'
export * from './files'
export * from './json'
export * from './write-json'
export * from './logger'
export * from './manifest'
export * from './files'
export * from './repo'
export * from './write-json'
2 changes: 1 addition & 1 deletion tools/utils/lib/manifest/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from 'path'
import * as places from '@tools/places'
import path from 'path'
import writeJSON from '../write-json'

interface Repository {
Expand Down

0 comments on commit 9fed302

Please sign in to comment.