Skip to content

Commit a6d9b12

Browse files
committed
lint fix
1 parent 08b8641 commit a6d9b12

File tree

5 files changed

+14
-7
lines changed

5 files changed

+14
-7
lines changed

tools/cli/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { Command } from 'commander';
2-
import { test } from '@lg-tools/test';
31
import { lint } from '@lg-tools/lint';
2+
import { test } from '@lg-tools/test';
3+
import { Command } from 'commander';
44

55
const cli = new Command('lg');
66

tools/lint/src/eslint.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
/* eslint-disable no-console */
2+
import chalk from 'chalk';
13
import { spawn } from 'child_process';
24
import path from 'path';
3-
import chalk from 'chalk';
5+
46
import { LintCommandOptions } from './lint.types';
57

68
const rootDir = process.cwd();

tools/lint/src/index.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
/* eslint-disable no-console */
2-
import { npmPkgJsonLint } from './npmPkgJsonLint';
3-
42
import { eslint } from './eslint';
53
import { LintCommandOptions } from './lint.types';
4+
import { npmPkgJsonLint } from './npmPkgJsonLint';
65
import { prettier } from './prettier';
76

87
export const lint = (options: LintCommandOptions) => {
@@ -13,9 +12,11 @@ export const lint = (options: LintCommandOptions) => {
1312
if (!prettierOnly && !pkgJsonOnly) {
1413
linters.push(eslint({ fix, verbose }));
1514
}
15+
1616
if (!eslintOnly && !pkgJsonOnly) {
1717
linters.push(prettier({ fix, verbose }));
1818
}
19+
1920
if (!prettierOnly && !eslintOnly) {
2021
linters.push(npmPkgJsonLint({ fix, verbose }));
2122
}

tools/lint/src/npmPkgJsonLint.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
import { spawn } from 'child_process';
1+
/* eslint-disable no-console */
22
import chalk from 'chalk';
3+
import { spawn } from 'child_process';
34
import path from 'path';
5+
46
import { LintCommandOptions } from './lint.types';
57
// import { NpmPackageJsonLint } from 'npm-package-json-lint';
68
const rootDir = process.cwd();

tools/lint/src/prettier.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
/* eslint-disable no-console */
2+
import chalk from 'chalk';
13
import { spawn } from 'child_process';
24
import path from 'path';
3-
import chalk from 'chalk';
5+
46
import { esLintExtensions } from './eslint';
57
import { LintCommandOptions } from './lint.types';
68

0 commit comments

Comments
 (0)