Skip to content

Commit

Permalink
fix: Wrong info about globally-installed copy of ESLint (#18)
Browse files Browse the repository at this point in the history
* fix: Wrong info about globally-installed copy of ESLint

* Update config-initializer.js
  • Loading branch information
aladdin-add authored Jan 3, 2022
1 parent da0fcbb commit c8ba806
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/init/config-initializer.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,10 @@ async function writeFile(config, format) {
}
}

const installedESLint = config.installedESLint;

delete config.installedESLint;

await ConfigFile.write(config, `./.eslintrc${extname}`);
info(`Successfully created .eslintrc${extname} file in ${process.cwd()}`);

if (installedESLint) {
info("ESLint was installed locally. We recommend using this local copy instead of your globally-installed copy.");
}
}

/**
Expand Down

0 comments on commit c8ba806

Please sign in to comment.