Effect-first library for writing oxlint custom lint rules. Current stable version: 0.2.0. Release cadence: irregular, with initial releases in early 2025. Key differentiators: provides typed errors, composable visitors, Option-safe AST matching, and Ref-based state without mutable variables, wrapping @oxlint/plugins in Effect idioms. Requires effect@^4.0.0-beta.57 as a peer dependency. Ideal for Effect ecosystem developers who want to write lint rules with Effect's effectful computation model.
npm install effect-oxlintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Defines a custom oxlint rule using Effect idioms, then assembles it into a plugin.
Use SourceCode.getText() for full file and SourceCode.getNodeText(node) for specific nodes.
Update effect to ^4.0.0-beta.57.
Use getNodeText for node-specific text extraction.
npm install effect@^4.0.0-beta.57
Install effect@^4.0.0-beta.57 alongside effect-oxlint.
Ensure create is a generator function and wrap in Effect.runSync or similar.
import { Testing } from 'effect-oxlint/testing'