File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -163,7 +163,10 @@ export async function create({
163163 skipFiles ?: string [ ] ;
164164 templates : string [ ] ;
165165 getTemplateName : ( argv : Argv ) => Promise < string > ;
166- mapESLintTemplate : ( templateName : string ) => ESLintTemplateName | null ;
166+ mapESLintTemplate : (
167+ templateName : string ,
168+ distFolder : string ,
169+ ) => ESLintTemplateName | null ;
167170 version ?: Record < string , string > | string ;
168171 noteInformation ?: string [ ] ;
169172} ) {
@@ -255,7 +258,7 @@ export async function create({
255258 const toolFolder = path . join ( packageRoot , `template-${ tool } ` ) ;
256259
257260 if ( tool === 'eslint' ) {
258- const eslintTemplateName = mapESLintTemplate ( templateName ) ;
261+ const eslintTemplateName = mapESLintTemplate ( templateName , distFolder ) ;
259262
260263 if ( ! eslintTemplateName ) {
261264 continue ;
You can’t perform that action at this time.
0 commit comments