-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add no-segments-on-sliced-layers rule #54
Add no-segments-on-sliced-layers rule #54
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, thanks for the PR! I looked over it quickly, thank you for including the changeset and updates to the README :)
I ran the tests and they are failing on Windows. It might have to do with the fact that you split by '/'
, because Windows paths are separated with \
. You can use sep
from node:path
to fix that
Yes, this is most likely the cause of the problem. Thank you. Fixing the PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastic job! I'm very happy that you did all the steps that are needed to add a rule. I also like the code of the rule, it's short and to the point.
I've left some suggestions, mostly around the error messages, as that is the most important part of a rule. Let me know what you think about them
packages/steiger-plugin-fsd/src/no-segments-on-sliced-layers/README.md
Outdated
Show resolved
Hide resolved
packages/steiger-plugin-fsd/src/no-segments-on-sliced-layers/index.ts
Outdated
Show resolved
Hide resolved
packages/steiger-plugin-fsd/src/no-segments-on-sliced-layers/index.ts
Outdated
Show resolved
Hide resolved
packages/steiger-plugin-fsd/src/no-segments-on-sliced-layers/index.spec.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Lev Chelyadinov <[email protected]>
Co-authored-by: Lev Chelyadinov <[email protected]>
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 |
I guess |
Yep, sure |
@illright |
Resolves #25