Skip to content

Commit

Permalink
style: fix import/order by eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
deot committed Aug 17, 2023
1 parent 4c7d4b0 commit 93d983a
Show file tree
Hide file tree
Showing 21 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion packages/adder/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { resolve } from 'node:path';
import type { Options } from '@deot/dev-shared';
import { Utils, Shell, Logger, Locals } from '@deot/dev-shared';
import { resolve } from 'node:path';
import ora from 'ora';
import fs from 'fs-extra';

Expand Down
4 changes: 2 additions & 2 deletions packages/builder/__tests__/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Locals, Shell } from '@deot/dev-shared';
import * as Builder from '@deot/dev-builder';
import * as path from 'node:path';
import * as fs from 'node:fs';
import { Locals, Shell } from '@deot/dev-shared';
import * as Builder from '@deot/dev-builder';

describe('index', () => {
it('config', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/builder/src/script.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from 'fs-extra';
import * as path from 'node:path';
import { fileURLToPath } from 'node:url';
import fs from 'fs-extra';
import { Locals } from '@deot/dev-shared';
import { build as createViteBuild } from 'vite';
import type { InlineConfig } from 'vite';
Expand Down
2 changes: 1 addition & 1 deletion packages/builder/src/style.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fs from 'fs-extra';
import * as path from 'node:path';
import fs from 'fs-extra';
import * as sass from 'sass';

import postcss from 'postcss';
Expand Down
2 changes: 1 addition & 1 deletion packages/builder/src/type.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as path from 'node:path';
import { fileURLToPath } from 'node:url';
import fs from 'fs-extra';
import { Extractor, ExtractorConfig } from '@microsoft/api-extractor';
import { Logger, Shell, Locals } from '@deot/dev-shared';
import { fileURLToPath } from 'node:url';
import type { Build } from './build';

const dirname = path.dirname(fileURLToPath(import.meta.url));
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/__tests__/add.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Command } from '@deot/dev-test';
import { resolve } from 'node:path';
import { Command } from '@deot/dev-test';

describe('add.ts', () => {
it('ddc add / package', async () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/__tests__/build.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Command } from '@deot/dev-test';
import { resolve } from 'node:path';
import { Command } from '@deot/dev-test';

describe('build.ts', () => {
it('command **', async () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/__tests__/dev.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Command } from '@deot/dev-test';
import { resolve } from 'node:path';
import { Command } from '@deot/dev-test';

describe('dev.ts', () => {
it('ddc dev', async () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/__tests__/link.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Command } from '@deot/dev-test';
import { resolve } from 'node:path';
import { Command } from '@deot/dev-test';

describe('link.ts', () => {
it('command', async () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/__tests__/release.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Command } from '@deot/dev-test';
import { resolve } from 'node:path';
import { Command } from '@deot/dev-test';

describe('release.ts', () => {
it('command', async () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/__tests__/test.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Command } from '@deot/dev-test';
import { resolve } from 'node:path';
import { Command } from '@deot/dev-test';

describe('test.ts', () => {
it('ddc test', async () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/__tests__/update.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Command } from '@deot/dev-test';
import { resolve } from 'node:path';
import { Command } from '@deot/dev-test';

describe('update.ts', () => {
it('ddc update', async () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createRequire } from "node:module";
import type { Command } from 'commander';
import { program, Option } from 'commander';
import { createRequire } from "node:module";
import * as Releaser from '@deot/dev-releaser';
import * as Builder from '@deot/dev-builder';
import * as Tester from '@deot/dev-tester';
Expand Down
4 changes: 2 additions & 2 deletions packages/dever/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Options } from '@deot/dev-shared';
import { Utils, Shell, Locals, Logger } from '@deot/dev-shared';
import * as path from 'node:path';
import { fileURLToPath } from 'node:url';
import type { Options } from '@deot/dev-shared';
import { Utils, Shell, Locals, Logger } from '@deot/dev-shared';
import fs from 'fs-extra';
import type { InlineConfig } from 'vite';
import { createServer } from 'vite';
Expand Down
2 changes: 1 addition & 1 deletion packages/releaser/__tests__/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { resolve } from 'node:path';
import { Locals } from '@deot/dev-shared';
import { Command } from '@deot/dev-test';
import * as Release from '@deot/dev-releaser';
import { resolve } from 'node:path';

describe('index', () => {
it('config', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/releaser/src/release.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as path from 'node:path';
import fs from 'fs-extra';
import { createRequire } from 'node:module';
import fs from 'fs-extra';
import parser from 'conventional-commits-parser';
import chalk from 'chalk';
import semver from 'semver';
Expand Down
2 changes: 1 addition & 1 deletion packages/test/__tests__/command.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Command } from '@deot/dev-test';
import { resolve } from 'node:path';
import { Command } from '@deot/dev-test';

describe('command.ts', () => {
it('package', async () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/test/__tests__/e2e.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { E2E } from '@deot/dev-test';
import { resolve } from 'node:path';
import { E2E } from '@deot/dev-test';

describe('e2e.ts', () => {
const launch = E2E.impl();
Expand Down
2 changes: 1 addition & 1 deletion packages/test/__tests__/launch.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Launch, E2E } from '@deot/dev-test';
import { resolve } from 'node:path';
import { Launch, E2E } from '@deot/dev-test';

describe('launch.ts', () => {
const baseUrl = `file://${resolve(__dirname, './fixtures/e2e.html')}`;
Expand Down
2 changes: 1 addition & 1 deletion packages/test/src/command.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as childProcess from 'child_process';
import type { Nullable } from '@deot/dev-shared';
import { Shell } from '@deot/dev-shared';
import * as childProcess from 'child_process';

const { LOCAL_COMMAND_MAP } = Shell;
const KEY_MAP = {
Expand Down
2 changes: 1 addition & 1 deletion packages/tester/shared.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineConfig, configDefaults } from 'vitest/config';
import * as path from 'node:path';
import { createRequire } from "node:module";
import { defineConfig, configDefaults } from 'vitest/config';
import type { UserConfig } from 'vite';

const cwd = process.cwd();
Expand Down

0 comments on commit 93d983a

Please sign in to comment.