Skip to content

Commit

Permalink
fix(linting): no-console
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed May 4, 2024
1 parent 5b599d7 commit 3d50080
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/init-package-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,17 @@ async function init (dir,
if (yes) {
await pkg.save()
if (!config.get('silent')) {
// eslint-disable-next-line no-console
console.log(`Wrote to ${msg}`)
}
return pkg.content
}

// eslint-disable-next-line no-console
console.log(`About to write to ${msg}`)
const ok = await read({ prompt: 'Is this OK? ', default: 'yes' })
if (!ok || !ok.toLowerCase().startsWith('y')) {
// eslint-disable-next-line no-console
console.log('Aborted.')
return
}
Expand Down

0 comments on commit 3d50080

Please sign in to comment.