Skip to content

Commit

Permalink
chore(lint): fix lint warnings (#926)
Browse files Browse the repository at this point in the history
* chore(lint): fix lint warnings

fix lint warnings

* chore(generator): rm unused imports

rm unused imports
  • Loading branch information
anshumanv authored and ematipico committed Jun 5, 2019
1 parent fe80517 commit e4997ac
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/generators/init-generator.ts
Expand Up @@ -92,7 +92,7 @@ export default class InitGenerator extends Generator {
}
}

public async prompting() {
public async prompting(): Promise<void | {}> {
const done: () => {} = this.async();
const self: this = this;
let regExpForStyles: string;
Expand Down
2 changes: 0 additions & 2 deletions packages/generators/remove-generator.ts
@@ -1,4 +1,3 @@
import * as fs from "fs";
import * as path from "path";
import * as Generator from "yeoman-generator";

Expand Down Expand Up @@ -34,7 +33,6 @@ export default class RemoveGenerator extends Generator {
};
const { configFile } = opts;
let configPath = path.resolve(process.cwd(), configFile);
const webpackConfigExists = fs.existsSync(configPath);
this.webpackOptions = require(configPath);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/migrate/commonsChunkPlugin/commonsChunkPlugin.ts
Expand Up @@ -197,7 +197,7 @@ export default function(j: JSCodeshift, ast: Node): Node {

// eslint-disable-next-line
cacheGroup[chunkKey] = cacheGroup[chunkKey].map(
(prop): any =>
(prop): string | void =>
prop.key.name === "test"
? mergeTestPropArrowFunction(j, chunkKey, pathValue)
: prop
Expand Down

0 comments on commit e4997ac

Please sign in to comment.