Skip to content

Commit

Permalink
style(core): organise imports
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieMason committed Aug 9, 2020
1 parent 9d48f88 commit 6cb3462
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/bin-fix-mismatches.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env node

import chalk from 'chalk';
import program = require('commander');
import { fixMismatchesToDisk } from './commands/fix-mismatches';
import { option } from './constants';
import program = require('commander');

program.description(
`
Expand Down
2 changes: 1 addition & 1 deletion src/bin-format.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env node

import chalk from 'chalk';
import program = require('commander');
import { formatToDisk } from './commands/format';
import { option } from './constants';
import program = require('commander');

program.description(
`
Expand Down
2 changes: 1 addition & 1 deletion src/bin-list-mismatches.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env node

import chalk from 'chalk';
import program = require('commander');
import { listMismatchesFromDisk } from './commands/list-mismatches';
import { option } from './constants';
import program = require('commander');

program.description(
`
Expand Down
2 changes: 1 addition & 1 deletion src/bin-list.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env node

import chalk from 'chalk';
import program = require('commander');
import { listFromDisk } from './commands/list';
import { option } from './constants';
import program = require('commander');

program.description(' List all dependencies required by your packages.');

Expand Down
2 changes: 1 addition & 1 deletion src/bin-set-semver-ranges.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env node

import chalk from 'chalk';
import program = require('commander');
import { setSemverRangesToDisk } from './commands/set-semver-ranges';
import { option } from './constants';
import program = require('commander');

program.description(
`
Expand Down
2 changes: 1 addition & 1 deletion src/commands/format.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SORT_AZ, SORT_FIRST } from '../constants';
import { getWrappers, SourceWrapper, Source } from './lib/get-wrappers';
import { getWrappers, Source, SourceWrapper } from './lib/get-wrappers';
import { writeIfChanged } from './lib/write-if-changed';

interface FormatConfig {
Expand Down
3 changes: 1 addition & 2 deletions src/commands/lib/get-dependency-types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { DEPENDENCY_TYPES } from '../../constants';
import { DependencyType } from '../../constants';
import { DependencyType, DEPENDENCY_TYPES } from '../../constants';

interface Options {
prod: boolean;
Expand Down
2 changes: 1 addition & 1 deletion src/commands/lib/get-wrappers.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { removeSync } from 'fs-extra';
import mock = require('mock-fs');
import { getWrappers, SourceWrapper } from './get-wrappers';
import mock = require('mock-fs');

describe('getWrappers', () => {
afterEach(() => {
Expand Down

0 comments on commit 6cb3462

Please sign in to comment.