Skip to content

Commit fce31ae

Browse files
committed
fix: show npm run lint in messages if user installs prettier
Because the generated template code style doesn't conform to the default prettier configuration
1 parent 76d47da commit fce31ae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,9 @@ async function init() {
383383
console.log(` ${bold(green(`cd ${path.relative(cwd, root)}`))}`)
384384
}
385385
console.log(` ${bold(green(getCommand(packageManager, 'install')))}`)
386+
if (needsPrettier) {
387+
console.log(` ${bold(green(getCommand(packageManager, 'lint')))}`)
388+
}
386389
console.log(` ${bold(green(getCommand(packageManager, 'dev')))}`)
387390
console.log()
388391
}

0 commit comments

Comments
 (0)