Skip to content

Commit 3fcb3b7

Browse files
committed
actually do a await / async conversion
1 parent 70abdb8 commit 3fcb3b7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bin/eslint-github-init.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ const questions = [
4747
}
4848
]
4949

50-
for (const answers of inquirer.prompt(questions)) {
50+
;(async function() {
51+
const answers = await inquirer.prompt(questions)
5152
const eslintrc = {extends: ['plugin:github/es6']}
5253

5354
if (answers.project === 'app') {
@@ -83,4 +84,4 @@ for (const answers of inquirer.prompt(questions)) {
8384
prettierConfig.push('')
8485

8586
fs.writeFileSync(path.resolve(process.cwd(), 'prettier.config.js'), prettierConfig.join('\n'), 'utf8')
86-
}
87+
})()

0 commit comments

Comments
 (0)