From e6ce312a6cd7de096188147f81e0521fd89b674b Mon Sep 17 00:00:00 2001 From: Zhenyu Lin Date: Mon, 27 Sep 2021 18:20:11 +0100 Subject: [PATCH] refactor: linter update fix --- src/actions/setup/steps.js | 6 ++---- src/lib/package-json.js | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/actions/setup/steps.js b/src/actions/setup/steps.js index 6911a93..213cccb 100644 --- a/src/actions/setup/steps.js +++ b/src/actions/setup/steps.js @@ -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: [ diff --git a/src/lib/package-json.js b/src/lib/package-json.js index 16a3cca..82fb793 100644 --- a/src/lib/package-json.js +++ b/src/lib/package-json.js @@ -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 = {};