Skip to content

Commit 186ee4f

Browse files
committed
refactor(gen): rm unused imports
1 parent 72d2de7 commit 186ee4f

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

Diff for: src/generators/app/index.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
import fs from 'fs';
21
import path from 'path';
32
import Promise from 'bluebird';
43
import { runCmd } from '../util';
5-
import chalk from 'chalk';
64
import { Base } from '../generator-base';
75
import insight from '../insight-init';
8-
import { exec } from 'child_process';
96
import tap from 'gulp-tap';
107
import filter from 'gulp-filter';
118
import eslint from 'gulp-eslint';
@@ -505,7 +502,7 @@ export class Generator extends Base {
505502
clientJsFilter,
506503
codeshiftStream,
507504
eslint({
508-
fix: true,
505+
fix: true,
509506
configFile: path.join(genDir, 'templates/app/client/.eslintrc(babel)')
510507
}),
511508
clientJsFilter.restore
@@ -562,7 +559,7 @@ export class Generator extends Base {
562559
this.registerTransformStream([
563560
serverJsFilter,
564561
eslint({
565-
fix: true,
562+
fix: true,
566563
configFile: path.join(genDir, 'templates/app/server/.eslintrc')
567564
}),
568565
serverJsFilter.restore

Diff for: src/generators/generator-base.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
'use strict';
22

3-
import util from 'util';
43
import path from 'path';
54
import _ from 'lodash';
65
import s from 'underscore.string';
@@ -54,7 +53,7 @@ export class Base extends YoBase {
5453
export class NamedBase extends Base {
5554
constructor(...args) {
5655
super(...args);
57-
56+
5857
this.argument('name', { type: String, required: true });
5958

6059
var name = this.name.replace(/\//g, '-');

0 commit comments

Comments
 (0)