Skip to content

Commit a615dd9

Browse files
committed
chore: update mapESLintTemplate to accept context object
1 parent a49433b commit a615dd9

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export async function create({
165165
getTemplateName: (argv: Argv) => Promise<string>;
166166
mapESLintTemplate: (
167167
templateName: string,
168-
distFolder: string,
168+
context: { distFolder: string },
169169
) => ESLintTemplateName | null;
170170
version?: Record<string, string> | string;
171171
noteInformation?: string[];
@@ -258,7 +258,9 @@ export async function create({
258258
const toolFolder = path.join(packageRoot, `template-${tool}`);
259259

260260
if (tool === 'eslint') {
261-
const eslintTemplateName = mapESLintTemplate(templateName, distFolder);
261+
const eslintTemplateName = mapESLintTemplate(templateName, {
262+
distFolder,
263+
});
262264

263265
if (!eslintTemplateName) {
264266
continue;

0 commit comments

Comments
 (0)