create-rstack 2.1.0 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -91,7 +91,7 @@ export declare function copyFolder({ from, to, version, packageName, templatePar
91
91
  skipFiles?: string[];
92
92
  }): void;
93
93
 
94
- export declare function create({ name, root, templates, skipFiles, getTemplateName, mapESLintTemplate, version, noteInformation, extraTools, extraSkills, argv: processArgv, }: {
94
+ export declare function create({ name, root, templates, skipFiles, getTemplateName, mapESLintTemplate, mapRslintTemplate, version, noteInformation, extraTools, extraSkills, argv: processArgv, }: {
95
95
  name: string;
96
96
  root: string;
97
97
  skipFiles?: string[];
@@ -104,6 +104,13 @@ export declare function create({ name, root, templates, skipFiles, getTemplateNa
104
104
  mapESLintTemplate?: (templateName: string, context: {
105
105
  distFolder: string;
106
106
  }) => ESLintTemplateName | null;
107
+ /**
108
+ * Map the template name to the Rslint template name.
109
+ * If not provided, reuses mapESLintTemplate and falls back to 'vanilla-ts'.
110
+ */
111
+ mapRslintTemplate?: (templateName: string, context: {
112
+ distFolder: string;
113
+ }) => RslintTemplateName | null;
107
114
  version?: Record<string, string> | string;
108
115
  noteInformation?: string[];
109
116
  /**
@@ -280,6 +287,8 @@ export declare function resolveNpmTemplate(packageName: string, version?: string
280
287
  cacheDir?: string;
281
288
  }): string;
282
289
 
290
+ export declare type RslintTemplateName = 'vanilla-js' | 'vanilla-ts' | 'react-js' | 'react-ts';
291
+
283
292
  /**
284
293
  * Sanitize package name and version to create a valid cache key
285
294
  */