Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rsbuild-plugin-lint

A collection of high-performance lint plugins for Rsbuild. These plugins integrate Rust-based linting tools into the Rsbuild workflow, providing ready-to-use code quality checks for projects.

license

✨ Features

  • 🚀 High performance: Built on Rust-based linters that are orders of magnitude faster than typical JS linters.
  • 🔌 Plug-and-play: Simply add the plugin to your rsbuild.config.ts to enable linting during development.
  • 💡 Live feedback: Lint results are reported to the terminal and browser overlay with precise locations.
  • 🧩 Modular design: Core logic is decoupled from specific linters for easy extension and maintenance.
  • 🔧 Highly configurable: Options include custom config paths, lint-on-start, rule overrides, and more.

📦 Packages

This monorepo contains the following packages:

Package Description Docs
rsbuild-plugin-biome Biome-based lint plugin README
rsbuild-plugin-oxlint Oxlint-based lint plugin README
rsbuild-plugin-rslint Rslint-based lint plugin README
rsbuild-plugin-lint (core) Generic core plugin used to wrap any command-line linter README

📖 Usage

Example using rsbuild-plugin-oxlint:

npm add rsbuild-plugin-oxlint -D
// rsbuild.config.ts
import { defineConfig } from '@rsbuild/core';
import { linterPlugin } from 'rsbuild-plugin-oxlint';

export default defineConfig({
  plugins: [linterPlugin()],
});

After starting the dev server, saving files triggers lint checks and results will appear both in the terminal and in the browser overlay.

🏗️ Development

# Install dependencies
npm install

# Build packages
npm run build -w packages/core
npm run build -w packages/biome
npm run build -w packages/oxlint
npm run build -w packages/rslint

# Run tests
npm run test -w packages/oxlint

Each package includes a playground/ directory for local experimentation and debugging.

🪪 License

MIT.

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages