@antithrow/eslint-plugin
v2.0.0
Published
ESLint plugin for antithrow Result types
Maintainers
Readme
Installation
bun add -d @antithrow/eslint-pluginThis plugin requires typed linting to be configured.
Usage
Add the recommended config to your eslint.config.ts:
import antithrow from "@antithrow/eslint-plugin";
export default [
// ... your other configs
antithrow.configs.recommended,
];Or configure rules individually:
import antithrow from "@antithrow/eslint-plugin";
export default [
{
plugins: {
"@antithrow": antithrow,
},
rules: {
"@antithrow/no-throwing-call": "warn",
"@antithrow/no-unsafe-unwrap": "warn",
"@antithrow/no-unused-result": "error",
},
},
];Reference
Full rule reference: https://antithrow.dev/docs/reference/eslint-plugin
