Skip to content

Commit c7c1a83

Browse files
committedMay 30, 2019
chore: fix linting
1 parent eb3909b commit c7c1a83

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed
 

‎.eslintignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ test/**/null.js
99
test/**/main.js
1010
test/**/cliEntry.js
1111
test/**/foo.js
12-
test/binCases/config-location/webpack-babel-config/bin/es6.js
12+
test/binCases/config-location/webpack-babel-config/bin/es6.js
13+
packages/utils/validate-identifier.ts

‎packages/init/init.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export default function runTransform(webpackProperties: WebpackProperties, actio
8181
}
8282
);
8383

84-
let successMessage: string = `Congratulations! Your new webpack configuration file has been created!`;
84+
let successMessage = `Congratulations! Your new webpack configuration file has been created!`;
8585
if (initActionNotDefined && webpackProperties.config.item) {
8686
successMessage = `Congratulations! ${webpackProperties.config.item} has been ${action}ed!`;
8787
}

‎packages/utils/package-manager.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export function spawnChild(pkg: string): SpawnSyncReturns<Buffer> {
102102
const rootPath: string = getPathToGlobalPackages();
103103
const pkgPath: string = path.resolve(rootPath, pkg);
104104
const packageManager: string = getPackageManager();
105-
const isNew: boolean = !fs.existsSync(pkgPath);
105+
const isNew = !fs.existsSync(pkgPath);
106106

107107
return SPAWN_FUNCTIONS[packageManager](pkg, isNew);
108108
}

0 commit comments

Comments
 (0)
Please sign in to comment.