Troubleshooting
The problems most often hit when adopting the plugin: each states the symptom, the cause and the fix.
The lint stops with a settings error
- Symptom: oxlint exits with an error naming a
dl-effectsetting before reporting anything. - Cause: a key under
settings["dl-effect"]is not one of the shared settings, or its value is not an array of strings. - Fix: correct the key or the value as described in Shared settings.
Settings are ignored or rejected
- Symptom: settings put in a preset in
extendshave no effect, or oxlint rejects settings put inoverrides. - Cause: oxlint reads settings only from the config that lints.
- Fix: move them to that config, as described in Where settings go.
Many warnings on correct code
- Symptom: on a layout that is not a Node CLI, such as Next.js or a monorepo, many warnings look like false positives, for example Effects run or adapters imported outside the entry files.
- Cause: the defaults of
entryFilesandtestFilesfit a Node CLI. - Fix: set both for your layout, as described in Shared settings.
No warnings on code that uses aliases
- Symptom: a file that breaks the rules gets no warnings.
- Cause: the rules recognize literal names only: see Common limits.
- Fix: import Effect modules under their own names where you want the rules to check the code.