AGENT SKILL
Workleap Web 项目配置
workleap-web-configs
暂无简介
适用职业软件开发工程师
使用场景开发环境与工具链管理
- License 许可
- MIT
- 最近更新
- 2026-10-16
- Stars
- ★ 0
- Forks
- 13
02 资源文件 7
- 参考文档agents/openai.yaml228 B
- 参考文档references/eslint.md5.5 KB
- 参考文档references/examples.md3.8 KB
- 参考文档references/rsbuild.md7.7 KB
- 参考文档references/rslib.md7.5 KB
- 参考文档references/stylelint.md3.1 KB
- 参考文档references/typescript.md3.9 KB
03 SKILL.md 正文
name: workleap-web-configs description: | Workleap's shared web configuration packages (@workleap/eslint-configs, @workleap/typescript-configs, @workleap/rsbuild-configs, @workleap/rslib-configs, @workleap/stylelint-configs, @workleap/browserslist-config). Use when setting up, customizing, extending, or troubleshooting shared web tooling configs in a Workleap project — including ESLint, TypeScript, Rsbuild, Rslib, Stylelint, Browserslist, and monorepo (Turborepo) strategies. Activate even if only one tool is mentioned, as the packages are designed to work together. metadata: version: 1.3
wl-web-configs
Workleap's shared configuration library for web tooling. Provides pre-configured packages for ESLint, TypeScript, Rsbuild, Rslib, Stylelint, and Browserslist.
Philosophy
- No lock-in: Default configurations can always be extended or overridden
- By project type: Configurations are composed internally and offered per project type for simplicity
- ESM/ESNext by default: Targets modern JavaScript environments
- Distributed via NPM: Easy to adopt new features by bumping package versions
Supported Tools (Active)
| Tool | Package | Purpose |
|---|---|---|
| Browserslist | @workleap/browserslist-config |
Browser targets for apps |
| ESLint | @workleap/eslint-configs |
Code linting |
| Stylelint | @workleap/stylelint-configs |
CSS linting |
| TypeScript | @workleap/typescript-configs |
Type checking (linting only) |
| Rsbuild | @workleap/rsbuild-configs |
Web application bundling |
| Rslib | @workleap/rslib-configs |
Library bundling |
In maintenance mode (do not recommend): PostCSS, SWC, webpack, tsup
Quick Reference
Which Configuration to Use?
| Project Type | ESLint | TypeScript | Bundler |
|---|---|---|---|
| Web app with React | defineWebApplicationConfig |
web-application.json |
@workleap/rsbuild-configs |
| React library | defineReactLibraryConfig |
library.json |
@workleap/rslib-configs |
| TypeScript library (no React) | defineTypeScriptLibraryConfig |
library.json |
@workleap/rslib-configs |
| Monorepo workspace root | defineMonorepoWorkspaceConfig |
monorepo-workspace.json |
N/A |
Browserslist (Apps Only)
pnpm add -D @workleap/browserslist-config browserslist
# .browserslistrc
extends @workleap/browserslist-config
Only for projects emitting application bundles. Libraries should not include Browserslist — the consuming application's Browserslist controls the final output targets.
To add custom browser targets while still using the shared config:
# .browserslistrc
extends @workleap/browserslist-config
IE 11
last 2 OperaMobile 12.1 versions
Reference Guide
For comprehensive setup guides, options, and examples, read the appropriate reference file:
- ESLint — references/eslint.md: Installation,
define*Configfunctions, rule categories, customization, and VS Code integration - TypeScript — references/typescript.md: Config files by project type, compiler option overrides, path mappings, and CLI scripts
- Rsbuild — references/rsbuild.md: Dev/build/Storybook configs, predefined options, transformers, and Turborepo setup
- Rslib — references/rslib.md: Library build/dev/Storybook configs, bundleless vs bundle, transformers, and type declarations
- Stylelint — references/stylelint.md: Installation,
.stylelintrc.jsonsetup, Prettier integration, and VS Code settings
Critical Rules
- Stick to documented APIs — these packages are thin wrappers, and undocumented options won't be passed through to the underlying tool
- Avoid maintenance-mode packages — PostCSS, SWC, webpack, and tsup configs won't receive new features; recommend the active alternatives (Rsbuild, Rslib, Stylelint) instead
- ESM by default — all configs target ESM/ESNext because Workleap's toolchain assumes modern JavaScript environments
- Browserslist for apps only — libraries omit Browserslist because the consuming application's config controls the final output targets
- TypeScript for linting — the shared TypeScript configs focus on type-checking; bundlers handle transpilation, so don't mix concerns
04 同仓库更多 Skills
sds-plugin-a11y-check
暂无简介
★ 0
endpoint-review
暂无简介
★ 0
数据库Schema草案设计
schema-draft
暂无简介
★ 0
文档大纲生成
doc-outline
暂无简介
★ 0
SDS插件无障碍检查
sds-plugin-a11y-check
暂无简介
★ 0
API端点审查
endpoint-review
暂无简介
★ 0