Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is no support for public API for cross-imports in FSD 2.0 #179

Open
BaurinVladislav opened this issue Mar 7, 2025 · 2 comments
Open

Comments

@BaurinVladislav
Copy link

There is no support for public API for cross-imports in FSD 2.0

DESCRIPTION

My code:

import { StatusModel } from '@src/entities/status/@x/workflow';

My errors:

┌ src/entities/workflow/model/adapters/mapWorkflowDiagramStatusToStatus.ts
✘ Forbidden cross-import from slice "status".

There is no support for public API for cross-imports in FSD 2.0 (https://feature-sliced.design/ru/docs/reference/public-api#public-api-for-cross-imports)

ENV:

npx steiger -v           
0.5.5
@BaurinVladislav
Copy link
Author

Bonus question

Is there any way to add a *.test.ts file to the exception for all rules?

@illright
Copy link
Member

illright commented Mar 8, 2025

Hi, thanks for reporting! Strange, because the @x notation should be supported. Could you create a simple reproduction of this error on StackBlitz or CodeSandbox and send a link so we could investigate further?

Is there any way to add a *.test.ts file to the exception for all rules?

Yes, you can add { ignores: ["**/*.test.ts"] } to the config array

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants