feature-sliced / steiger

Universal file structure and project architecture linter
https://www.npmjs.com/package/steiger
MIT License
48 stars 3 forks source link

Add no-segments-on-sliced-layers rule #54

Closed daniilsapa closed 1 month ago

daniilsapa commented 1 month ago

Resolves #25

daniilsapa commented 1 month ago

Yes, this is most likely the cause of the problem. Thank you. Fixing the PR

daniilsapa commented 1 month ago

Thanks for your feedback! I'm glad to bring value to the project. 
I agree, your suggestions make perfect sense and improve the solution. I have already corrected the highlighted parts

illright commented 1 month ago

I guess toSorted is not available in Node 18. Could you replace it with .sort()?

daniilsapa commented 1 month ago

Yep, sure

daniilsapa commented 1 month ago

@illright Done