fix
This commit is contained in:
		| @@ -12,8 +12,8 @@ import fs from 'fs-extra'; | ||||
| /** | ||||
|  * write a template to a file | ||||
|  * | ||||
|  * @param {string} contents file contents | ||||
|  * @param {string} destination file destination | ||||
|  * @param contents - file contents | ||||
|  * @param destination - file destination | ||||
|  */ | ||||
| async function apply_template ( | ||||
|   contents: string, | ||||
| @@ -34,8 +34,8 @@ type JSONMutator = { | ||||
| /** | ||||
|  * modify a json file | ||||
|  * | ||||
|  * @param {Function} func function that modifies the object | ||||
|  * @param {string} json_path path of json file | ||||
|  * @param func - function that modifies the object | ||||
|  * @param json_path - path of json file | ||||
|  */ | ||||
| async function modify_json ( | ||||
|   func: JSONMutator, | ||||
| @@ -50,8 +50,8 @@ async function modify_json ( | ||||
| /** | ||||
|  * run a command | ||||
|  * | ||||
|  * @param {string} command command to run | ||||
|  * @param {string} folder folder to run in | ||||
|  * @param command - command to run | ||||
|  * @param folder - folder to run in | ||||
|  */ | ||||
| function run_command (command: string, folder = ''): void { | ||||
|   // eslint-disable-next-line no-sync | ||||
|   | ||||
| @@ -19,9 +19,9 @@ import { | ||||
| /** | ||||
|  * initialize the package.json | ||||
|  * | ||||
|  * @param {string} folder folder | ||||
|  * @param {boolean} use_ts use_ts | ||||
|  * @param {boolean} use_tests use_tests | ||||
|  * @param folder - folder | ||||
|  * @param use_ts - use typescript | ||||
|  * @param use_tests - use tests | ||||
|  */ | ||||
| async function init_package ( | ||||
|   folder: string, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user