Skip to content

Commit

Permalink
refactor: linter update fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenyulin committed Sep 27, 2021
1 parent e658be7 commit e6ce312
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/actions/setup/steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,8 @@ export const updatePackageJson = async (config) => {

export const generateReadme = async (config) => {
const PACKAGE_JSON_PATH = './package.json';
const {
name: packageJsonName,
license: packageJsonLicense,
} = await jsonfile.readFile(PACKAGE_JSON_PATH);
const { name: packageJsonName, license: packageJsonLicense } =
await jsonfile.readFile(PACKAGE_JSON_PATH);
await replace({
files: `./README.md`,
from: [
Expand Down
2 changes: 1 addition & 1 deletion src/lib/package-json.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Logics of generate package.json as per component type.
*
* @returns {object} The generated package.json content.
* @type {Object} The generated package.json content.
*/
const configPackageJsonFromTemplate = (config, template) => {
const output = {};
Expand Down

0 comments on commit e6ce312

Please sign in to comment.