Guide for using Workleap's shared web configuration packages (@workleap/eslint-configs, @workleap/typescript-configs, @workleap/rsbuild-configs, @workleap/rslib-configs, @workleap/stylelint-configs,...
Workleap's shared configuration library for web tooling. Provides pre-configured packages for ESLint, TypeScript, Rsbuild, Rslib, Stylelint, and Browserslist.
| 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
| 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 |
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
For comprehensive setup guides, options, and examples, read the appropriate reference file:
define*Config functions, rule categories, customization, VS Code integration, and migrating from ESLint 8tsgo.stylelintrc.json setup, Prettier integration, and VS Code settings