Repository navigation
Import Effect from its submodules and lint that shape - #285
Merged
Merged
Conversation
The CLI was the only file that imported named values from the effect package barrel. The other Effect rules enabled here already pass on this tree. effect/effect-run-in-body stays off because runApi is the client boundary. Co-authored-by: Jonathan Beckman <jonathantbeckman@gmail.com>
jonbeckman
marked this pull request as ready for review
November 27, 2026 09:14
Contributor
🟢 e2e solstatus-core: 2 passed, 6 skipped, 7 left out by filtersChange 2 files changed since 7 tests left out by filters
All 8 tests in 4 files
Tested by e2e 0.23.1 · 22.7s · 2 targets (chromium, cli) · run artifacts |
Contributor
TegamiThis repository uses Tegami to manage releases. When your changes affect published packages, add a changelog file under Create a changelog → · Changelog format No changelogs yetThis PR has no pending changelog files. If your changes require a release, add a changelog before merging. Run Managed by Tegami. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The CLI was the only application file that imported named values from the
effectpackage barrel. It now importseffect/Console,effect/Effect, andeffect/Option, which matches the rest of the tree and the Effect plugin'sno-barrel-importsrule.These Effect rules already pass, so they are errors:
effect/no-barrel-importseffect/avoid-data-tagged-erroreffect/avoid-option-getorthroweffect/avoid-yield-refeffect/no-effect-ignore-then-aseffect/avoid-platform-couplingeffect/context-tag-extendseffect/avoid-schema-suffixeffect/no-opaque-instance-fieldseffect/prefer-array-fromoption-over-option-match-emptyeffect/effect-promise-vs-trypromiseeffect/effect-catchall-defaulteffect/avoid-expect-in-ifeffect/effect-run-in-bodystays off. It rejectsEffect.runPromiseinrunApi, and that function is the client boundary.release:none: no deployment behavior changes and no package publish.nub src/index.ts --helpstill prints the same command help.Validation
nub run typechecknub run lintnub run formatnub src/index.ts --helpnub run test:e2e:cache-strict(9 passed, 6 skipped on the other target), including the CLI help testChecklist
.tegami/release entry, or explained why this pull request usesrelease:none.nub run typecheck,nub run lint,nub run format, andnub run test.The existing CLI help test covers the import change. No new test is needed.