working-with-oxlint
Working with Oxlint
This repo's setup: .oxlintrc.json (every category but restriction and nursery, the @effect/tsgo recommended preset, and anti-slop vendored in tools/oxlint/anti-slop/), and pnpm lint runs scripts/lint-ratchet.ts, which holds violations to the shrink-only scripts/lint-baseline.json. Sources and licenses are in ATTRIBUTION.md. Effect coding rules are working-with-effect; this skill covers the linter that enforces them.
Install and run
Install oxlint and, for type-aware rules, oxlint-tsgolint as exact-pinned dev dependencies. Type-aware rules (typescript/no-floating-promises and the effecttsgo/* rules) run when the config sets options.typeAware or the CLI gets --type-aware. The project needs no typescript dependency for this; tsgolint brings typescript-go.
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"options": { "typeAware": true, "reportUnusedDisableDirectives": "error" }
}
The config is .oxlintrc.json (comments and trailing commas allowed) or oxlint.config.ts with defineConfig from oxlint. Useful flags: -c <config>, --fix, --deny-warnings, --max-warnings=<n>, --rules to list registered rules, --init for a default config.