Skip to content

Commit 20c388c

Browse files
committed
improve success message formatting in init wizard by showing full file paths instead of separate directory and filename
- Changed package.json success message to show full path using join(this.cwd, configFileName) - Changed config file success message to show full path using join(this.cwd, configFileName) - Simplified message wording from "in directory X as Y" to "at X/Y"
1 parent ddde5ac commit 20c388c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cli/init-wizard.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,10 +357,10 @@ export class LinterCliInitWizard {
357357
private notifySuccess(configFileName: string, isRoot: boolean): void {
358358
if (configFileName === PACKAGE_JSON) {
359359
// eslint-disable-next-line no-console
360-
console.log(`Config was added successfully to "${configFileName}" in directory "${this.cwd}"`);
360+
console.log(`Config was added successfully to "${join(this.cwd, configFileName)}"`);
361361
} else {
362362
// eslint-disable-next-line no-console
363-
console.log(`Config file was created successfully in directory "${this.cwd}" as "${configFileName}"`);
363+
console.log(`Config file was created successfully at "${join(this.cwd, configFileName)}"`);
364364
}
365365

366366
// Notify user about root: true option if it was set

0 commit comments

Comments
 (0)