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,14 @@ 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+ extraInfo : {
169+ distFolder : string ;
170+ version ?: Record < string , string > | string ;
171+ skipFiles ?: string [ ] ;
172+ } ,
173+ ) => ESLintTemplateName | null ;
167174 version ?: Record < string , string > | string ;
168175 noteInformation ?: string [ ] ;
169176} ) {
@@ -255,7 +262,11 @@ export async function create({
255262 const toolFolder = path . join ( packageRoot , `template-${ tool } ` ) ;
256263
257264 if ( tool === 'eslint' ) {
258- const eslintTemplateName = mapESLintTemplate ( templateName ) ;
265+ const eslintTemplateName = mapESLintTemplate ( templateName , {
266+ distFolder,
267+ version,
268+ skipFiles,
269+ } ) ;
259270
260271 if ( ! eslintTemplateName ) {
261272 continue ;
You can’t perform that action at this time.
0 commit comments