{"version":3,"sources":["jsdelivr-header.js","/npm/f2elint@7.0.0/dist/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OCNS,SAAY,mBACZ,QAAS,WAAY,SAAY,cACnC,aAAc,6BACZ,kBAAqB,qBACf,eAAe,QAAQ,EAAS,EAAU,CAAC,GACtD,MAAM,EAAkB,WAAW,GAAW,EAAU,KAAK,QAAQ,MAAO,GACtE,EAAY,QAAQ,0BAA0B,MAC9C,EAAW,GAAS,UAAY,OAChC,EAAgB,GAAM,KAAK,KAAK,EAAW,KAAM,YAAa,GAAI,EAAiB,EAAS,CAC9F,WAAY,EAAQ,WACpB,kBACA,kBAAkB,UAEhB,EAAa,QACF,SAAb,SACM,EAAa,GAEnB,EAAQ,iBACF,EAAa,aAEnB,EAAQ,gBACF,EAAa,YAEnB,EAAQ,kBACF,EAAa,eAEnB,EAAQ,kBACF,EAAa,aAE3B","file":"/npm/f2elint@7.0.0/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/f2elint@7.0.0/dist/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","import { init } from 'init-roll';\nimport { dirname, isAbsolute, join } from 'path';\nimport prettier from 'prettier-config-ali';\nimport { fileURLToPath } from 'url';\nexport default async function f2elint(project, options = {}) {\n    const projectFullPath = isAbsolute(project) ? project : join(process.cwd(), project);\n    const __dirname = dirname(fileURLToPath(import.meta.url));\n    const template = options?.template || 'base';\n    const initTemplate = (t) => init(join(__dirname, '..', 'templates', t), projectFullPath, options, {\n        disableLog: options.disableLog,\n        prettier,\n        bumpDependencies: true,\n    });\n    await initTemplate('base');\n    if (template !== 'base') {\n        await initTemplate(template);\n    }\n    if (options.stylelint) {\n        await initTemplate('stylelint');\n    }\n    if (options.prettier) {\n        await initTemplate('prettier');\n    }\n    if (options.lintStaged) {\n        await initTemplate('lint-staged');\n    }\n    if (options.commitlint) {\n        await initTemplate('commitlint');\n    }\n}\n"]}