Linter Plugin
@praha/byethrow-oxlint is an Oxlint plugin that enforces best practices when using @praha/byethrow.
Installation
Setup
Using the recommended preset
The easiest way to get started is to extend the recommended preset. It enables all rules with their default settings.
oxlint.config.ts
Configuring rules manually
If you need fine-grained control, you can load the plugin and enable individual rules:
oxlint.config.ts
Settings
You can customize how the plugin detects byethrow imports by adding a byethrow key under settings. This is useful when you re-export @praha/byethrow from your own package.
oxlint.config.ts
