UNPKG

@iobroker/create-adapter

Version:

Command line utility to create customized ioBroker adapters

20 lines 648 B
"use strict"; const JSON5 = require("json5"); const templateFunction = answers => { const useESLint = answers.tools && answers.tools.indexOf("ESLint") > -1; const usePrettier = answers.tools && answers.tools.indexOf("Prettier") > -1; if (!useESLint && !usePrettier) return; const template = ` { "recommendations": [ ${useESLint ? `"dbaeumer.vscode-eslint",` : ""} ${usePrettier ? `"esbenp.prettier-vscode",` : ""} ] } `; return JSON.stringify(JSON5.parse(template), null, 4); }; templateFunction.customPath = ".vscode/extensions.json"; module.exports = templateFunction; //# sourceMappingURL=extensions.json.js.map