This commit is contained in:
Timo Hocker 2020-05-08 09:58:49 +02:00
parent 6b0b40a292
commit 3545ba6a48
2 changed files with 9 additions and 9 deletions

View File

@ -12,8 +12,8 @@ import fs from 'fs-extra';
/** /**
* write a template to a file * write a template to a file
* *
* @param {string} contents file contents * @param contents - file contents
* @param {string} destination file destination * @param destination - file destination
*/ */
async function apply_template ( async function apply_template (
contents: string, contents: string,
@ -34,8 +34,8 @@ type JSONMutator = {
/** /**
* modify a json file * modify a json file
* *
* @param {Function} func function that modifies the object * @param func - function that modifies the object
* @param {string} json_path path of json file * @param json_path - path of json file
*/ */
async function modify_json ( async function modify_json (
func: JSONMutator, func: JSONMutator,
@ -50,8 +50,8 @@ async function modify_json (
/** /**
* run a command * run a command
* *
* @param {string} command command to run * @param command - command to run
* @param {string} folder folder to run in * @param folder - folder to run in
*/ */
function run_command (command: string, folder = ''): void { function run_command (command: string, folder = ''): void {
// eslint-disable-next-line no-sync // eslint-disable-next-line no-sync

View File

@ -19,9 +19,9 @@ import {
/** /**
* initialize the package.json * initialize the package.json
* *
* @param {string} folder folder * @param folder - folder
* @param {boolean} use_ts use_ts * @param use_ts - use typescript
* @param {boolean} use_tests use_tests * @param use_tests - use tests
*/ */
async function init_package ( async function init_package (
folder: string, folder: string,