@no-throw/oxlint-plugin
v0.2.0
Published
The oxlint adapter for no-throw. Contains no analysis.
Maintainers
Readme
@no-throw/oxlint-plugin
The oxlint adapter for no-throw. It turns findings from
@no-throw/core into diagnostics and suggestions, and contains no
analysis.
It ships the same two rules as the ESLint adapter, under the same names, saying the same words:
{
"jsPlugins": ["@no-throw/oxlint-plugin"],
"rules": {
"nothrow/no-escaping-throw": "error",
"nothrow/valid-mark": "error"
}
}The rules are type-aware and oxlint hands a JS plugin no type information, so
the plugin reads your program itself: the tsconfig.json above each file that
includes it — the nearest first, then the ones above — one program per config.
A file no project includes is a diagnostic naming the config to fix, never a
silent pass.
Two host-specific notes. The preset's third rule has an oxlint counterpart —
enable typescript/no-floating-promises with --type-aware to cover the same
float hygiene. And oxlint --fix never applies a bridge, exactly as eslint
--fix never does; --fix-suggestions applies every offered bridge in bulk,
which is accepting every bridge blind — the one choice the suggestion channel
exists to leave with you.
The documentation is the root README — hosting in oxlint, what each rule holds you to, and why an offered bridge is never an autofix.
