Rules
no-effect-import-as
Keep Effect imports named and unaliased.
Purpose and behavior
Keep Effect imports named and unaliased.
The rule reports namespace imports and renamed named imports from effect and @effect packages. The rule allows direct named imports and does not check other aliases.
Options
No configurable options. Enable with "rules/no-effect-import-as": "error".
Invalid example
import * as Effect from 'effect'
import { Schema as S } from 'effect'Valid example
import { Effect, Schema } from 'effect'Fixes and exceptions
This rule provides no automatic fix. Rewrite the code to preserve its intended behavior.
For a boundary exception, use oxlint-disable-next-line rules/no-effect-import-as -- reason. Examples cover this rule only and may omit imports or declarations.
Source and tests
Opt-in compatibility rule. Both presets omit it because its import convention conflicts with their policy or its reports duplicate other rules.