Getting started
Overview
29 local rules. See Presets for external policies.
Choose your policy
@totto2727/oxlint is an Oxlint JavaScript plugin for TypeScript and Effect policies. Choose a preset:
- TypeScript: 8 local rules.
- Effect: 18 local rules and 4 official Effect rules.
- @totto2727/oxlint/preset: both groups.
All presets include the native Ultracite 7.12.3 core baseline. Follow Getting started to install and configure the plugin.
Rule reference
Rules covers 29 locally authored rules: 26 preset rules and 3 opt-in compatibility rules. The plugin exports 34 rules, including 5 external Effect adapters. Native Ultracite rules are separate from these exports. Presets covers external sources, included rules and disabled settings, without external rule detail pages.
The presets omit these local compatibility rules:
- force-ts-extension: duplicates the two extension rules.
- no-effect-import-as and no-effect-subpath-import: conflict with the official Effect import policy.
TypeScript
- consistent-import-extension: Normalize code-module import extensions for your runtime.
- require-import-extension: Require explicit extensions without guessing module resolution.
- force-ts-extension: Require extensions and normalize them in ts or js mode.
- no-eslint-disable-comments: Use Oxlint suppression directives instead of ESLint directives.
- no-jsx-script-tag: Avoid native script elements in JSX.
- no-let: Use const bindings instead of let.
- no-redundant-alias: Avoid aliases that only rename an existing value or type.
- no-string-style: Use JSX object styles instead of string styles.
- require-disable-reason: Require a reason for each Oxlint suppression.
Effect
- force-array-empty: Use Effect Array predicates for empty and non-empty checks.
- force-iterable-empty: Use Iterable.isEmpty rather than size-based emptiness checks.
- force-predicate: Replace direct null, undefined and typeof comparisons with predicates.
- force-string-empty: Use String.isEmpty and String.isNonEmpty for empty strings.
- no-effect-import-as: Keep Effect imports named and unaliased.
- no-effect-runtime-run: Keep runtime execution at documented boundaries.
- no-effect-subpath-import: Prefer public Effect package roots over deep subpaths.
- no-error-cause-option: Preserve raw errors using an explicit error field.
- no-error-property-access: Pass raw error values through without inspecting their properties.
- no-fetch: Use Effect HttpClient instead of calling global fetch.
- no-instanceof-error: Avoid normalizing caught values using instanceof Error.
- no-js-date: Use Effect DateTime and Duration instead of native Date operations.
- no-node-imports: Prefer Effect Platform services over direct Node built-ins.
- no-option-tag-comparison: Use Option.isSome and Option.isNone instead of comparing _tag.
- no-raw-hono-create-middleware: Keep Hono middleware creation behind an Effect-aware wrapper.
- no-sync-decode: Keep Schema decoding in Effect or Exit rather than Sync or Promise.
- no-type-predicate: Use Schema validation instead of handwritten type predicates.
- prefer-is-nullish: Treat null and undefined uniformly unless the distinction is intentional.
- prefer-non-unknown-decode: Use typed Schema decoders when the input type is already known.
- require-top-level-decoder: Construct and cache schema decoders at module scope.