feature-sliced / eslint-config

🍰 Lint feature-sliced concepts by existing eslint plugins
https://npmjs.com/@feature-sliced/eslint-config
MIT License
117 stars 4 forks source link

fix: add app layer rule #109

Closed rokashkovvd closed 2 months ago

rokashkovvd commented 3 months ago

Description

I came across the fact that with deafult config settings it is impossible to import internal modules inside the app layer. It seems to me that this is more of an error in the development of the config than a well-thought-out limitation.

For example, it is common to import styles or providers into the root of the app layer:

image

This pull request adds the ability to cross-segment module imports in the app layer.

References

Checklist

illright commented 3 months ago

Thanks for the update! I agree with @Krakazybik here, this should probably also be reflected in tests. Let me know if you encounter any issues

illright commented 2 months ago

Released in 0.1.1, thank you!