Skip to content

Commit

Permalink
feat(cli): change output of lint command
Browse files Browse the repository at this point in the history
Closes #134
  • Loading branch information
JamieMason committed Jun 3, 2023
1 parent 047afa1 commit 765376c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 149 deletions.
10 changes: 8 additions & 2 deletions src/bin-lint/lint-cli.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
import { pipe } from 'tightrope/fn/pipe';
import { lintSemverRanges } from '../bin-lint-semver-ranges/lint-semver-ranges';
import { listMismatches } from '../bin-list-mismatches/list-mismatches';
import type { CliConfig } from '../config/types';
import { getContext } from '../get-context';
import type { Disk } from '../lib/disk';
import { exitIfInvalid } from '../lib/exit-if-invalid';
import { lint } from './lint';

export function lintCli(input: Partial<CliConfig>, disk: Disk): void {
pipe(getContext(input, disk), lint, exitIfInvalid);
pipe(
getContext(input, disk),
listMismatches,
lintSemverRanges,
exitIfInvalid,
);
}
147 changes: 0 additions & 147 deletions src/bin-lint/lint.ts

This file was deleted.

0 comments on commit 765376c

Please sign in to comment.