Skip to content
This repository has been archived by the owner on Feb 23, 2022. It is now read-only.

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 c633e9e commit 2009e7b
Show file tree
Hide file tree
Showing 23 changed files with 72 additions and 72 deletions.
8 changes: 4 additions & 4 deletions app/src/pages/index.tsx
@@ -1,10 +1,10 @@
import React from 'react'
import { Helmet } from 'react-helmet'
import Main from '@khai-personal-website/components/Main'
import Rust from '@khai-personal-website/icons/Rust'
import TypeScript from '@khai-personal-website/icons/TypeScript'
import JavaScript from '@khai-personal-website/icons/JavaScript'
import Rust from '@khai-personal-website/icons/Rust'
import Shell from '@khai-personal-website/icons/Shell'
import TypeScript from '@khai-personal-website/icons/TypeScript'
import React from 'react'
import { Helmet } from 'react-helmet'

const title = "Khải's Profile"
const avatar = 'https://avatars3.githubusercontent.com/u/11488886?s=460&u=76f47499f89ba390e2322a5ebef112fb9e5ad9ef&v=4'
Expand Down
4 changes: 2 additions & 2 deletions packages/components/LicenseFooter.tsx
@@ -1,6 +1,6 @@
import React from 'react'
import { makeStyles } from '@material-ui/core/styles'
import { Child } from '@khai-personal-website/utility-types'
import { makeStyles } from '@material-ui/core/styles'
import React from 'react'

export interface LicenseFooterAttr {
readonly year: Child
Expand Down
6 changes: 3 additions & 3 deletions packages/components/Main.tsx
@@ -1,9 +1,9 @@
import React from 'react'
import { makeStyles, createStyles } from '@material-ui/core/styles'
import { Child } from '@khai-personal-website/utility-types'
import { makeStyles, createStyles } from '@material-ui/core/styles'
import React from 'react'
import LicenseFooter from './LicenseFooter'
import MainAppBar from './MainAppBar'
import Profile from './Profile'
import LicenseFooter from './LicenseFooter'
import { ProgrammingLanguageListData } from './ProgrammingLanguageList'

export interface MainAttr {
Expand Down
8 changes: 4 additions & 4 deletions packages/components/MainAppBar.tsx
@@ -1,12 +1,12 @@
import React from 'react'
import { makeStyles, createStyles } from '@material-ui/core/styles'
import { Child } from '@khai-personal-website/utility-types'
import AppBar from '@material-ui/core/AppBar'
import IconButton from '@material-ui/core/IconButton'
import Toolbar from '@material-ui/core/Toolbar'
import Typography from '@material-ui/core/Typography'
import IconButton from '@material-ui/core/IconButton'
import { makeStyles, createStyles } from '@material-ui/core/styles'
import GitHubIcon from '@material-ui/icons/GitHub'
import PrintIcon from '@material-ui/icons/Print'
import { Child } from '@khai-personal-website/utility-types'
import React from 'react'

export interface MainAppBarAttr {
readonly title: Child
Expand Down
24 changes: 12 additions & 12 deletions packages/components/Profile.tsx
@@ -1,22 +1,22 @@
import React from 'react'
import { makeStyles, createStyles } from '@material-ui/core/styles'
import { Child } from '@khai-personal-website/utility-types'
import Accordion from '@material-ui/core/Accordion'
import AccordionDetails from '@material-ui/core/AccordionDetails'
import AccordionSummary from '@material-ui/core/AccordionSummary'
import Avatar from '@material-ui/core/Avatar'
import ButtonGroup from '@material-ui/core/ButtonGroup'
import Card from '@material-ui/core/Card'
import CardContent from '@material-ui/core/CardContent'
import Typography from '@material-ui/core/Typography'
import ButtonGroup from '@material-ui/core/ButtonGroup'
import IconButton from '@material-ui/core/IconButton'
import Grid from '@material-ui/core/Grid'
import Accordion from '@material-ui/core/Accordion'
import AccordionSummary from '@material-ui/core/AccordionSummary'
import AccordionDetails from '@material-ui/core/AccordionDetails'
import ExpandMore from '@material-ui/icons/ExpandMore'
import IconButton from '@material-ui/core/IconButton'
import Link from '@material-ui/core/Link'
import GitHub from '@material-ui/icons/GitHub'
import Twitter from '@material-ui/icons/Twitter'
import Typography from '@material-ui/core/Typography'
import { makeStyles, createStyles } from '@material-ui/core/styles'
import ExpandMore from '@material-ui/icons/ExpandMore'
import Facebook from '@material-ui/icons/Facebook'
import GitHub from '@material-ui/icons/GitHub'
import Mail from '@material-ui/icons/Mail'
import { Child } from '@khai-personal-website/utility-types'
import Twitter from '@material-ui/icons/Twitter'
import React from 'react'
import { ProgrammingLanguageList, ProgrammingLanguageListData } from './ProgrammingLanguageList'
import VerticalHeadingTable from './VerticalHeadingTable'

Expand Down
10 changes: 5 additions & 5 deletions packages/components/ProgrammingLanguageList.tsx
@@ -1,11 +1,11 @@
import React from 'react'
import { makeStyles, createStyles } from '@material-ui/core/styles'
import Typography from '@material-ui/core/Typography'
import Icon from '@material-ui/core/Icon'
import Link from '@material-ui/core/Link'
import List from '@material-ui/core/List'
import ListItem from '@material-ui/core/ListItem'
import ListItemIcon from '@material-ui/core/ListItemIcon'
import Link from '@material-ui/core/Link'
import Icon from '@material-ui/core/Icon'
import Typography from '@material-ui/core/Typography'
import { makeStyles, createStyles } from '@material-ui/core/styles'
import React from 'react'

export interface ProgrammingLanguageListData {
readonly Icon: () => JSX.Element
Expand Down
2 changes: 1 addition & 1 deletion packages/components/VerticalHeadingTable.tsx
@@ -1,5 +1,5 @@
import React from 'react'
import { Child } from '@khai-personal-website/utility-types'
import React from 'react'

export interface VerticalHeadingTableAttr {
readonly data: Record<string, Child>
Expand Down
6 changes: 3 additions & 3 deletions test/package-manager/index.test.ts
@@ -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
@@ -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
@@ -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
@@ -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
6 changes: 3 additions & 3 deletions tools/ignore-file/lib/index.ts
@@ -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
@@ -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
@@ -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
@@ -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
12 changes: 6 additions & 6 deletions tools/publish-web-pages/lib/index.ts
@@ -1,12 +1,12 @@
import path from 'path'
import fs from 'fs'
import { spawnSync } from 'child_process'
import process from 'process'
import { error, startGroup, endGroup } from '@actions/core'
import places from '@tools/places'
import { spawnSync } from 'child_process'
import fs from 'fs'
import { remove, copy, readdir } from 'fs-extra'
import git from 'isomorphic-git'
import http from 'isomorphic-git/http/node'
import { remove, copy, readdir } from 'fs-extra'
import places from '@tools/places'
import path from 'path'
import process from 'process'

export enum ExitStatusCode {
Success = 0,
Expand Down
6 changes: 3 additions & 3 deletions tools/scripts/bin/main.ts
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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 2009e7b

Please sign in to comment.