feat(create-rspack): support rslint template mapping - #13882
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates create-rspack to use create-rstack@2.1.1 and wires in the new Rslint template mapping hook so generated projects select the appropriate Rslint config per template.
Changes:
- Bump
create-rstackfrom2.0.1to2.1.1(and update lockfile). - Add
mapRslintTemplateto map React templates to React Rslint configs and others to vanilla JS/TS. - Pass the new
mapRslintTemplateoption intocreate().
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| pnpm-lock.yaml | Updates the resolved create-rstack version/integrity to 2.1.1. |
| packages/create-rspack/src/index.ts | Introduces and registers mapRslintTemplate for template→Rslint-config mapping. |
| packages/create-rspack/package.json | Bumps create-rstack dependency to 2.1.1. |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
📦 Binary Size-limit
🙈 Size remains the same at 61.85MB |
Rsdoctor Bundle Diff AnalysisFound 6 projects in monorepo, 6 projects with changes. 📊 Quick Summary
📋 Detailed Reports (Click to expand)📁 popular-libsPath:
📁 react-10kPath:
📁 react-1kPath:
📁 react-5kPath:
📁 romePath:
📁 ui-componentsPath:
Generated by Rsdoctor GitHub Action |
Summary
This PR updates
create-rspackto usecreate-rstack@2.1.1so the generator can pass through the new Rslint template mapping support. It maps React templates to React-specific Rslint configs and all other framework templates to vanilla JS/TS configs.Related links
Checklist