Skip to content

Rule no watch#51

Merged
igorkamyshev merged 12 commits intoeffector:masterfrom
binjospookie:rule-no-watch
Oct 6, 2021
Merged

Rule no watch#51
igorkamyshev merged 12 commits intoeffector:masterfrom
binjospookie:rule-no-watch

Conversation

@binjospookie
Copy link
Copy Markdown
Contributor

close #48

Copy link
Copy Markdown
Member

@igorkamyshev igorkamyshev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution, it's a great help 💙

I've left some questions about the code and the documentation.

In general, I like it. I think we can release this rule in 0.4.0 on the next week.

Comment thread README.md Outdated
Comment thread rules/@typescript-no-watch/@typescript-no-watch.js Outdated
Comment thread rules/@typescript-no-watch/@typescript-no-watch.md Outdated
Comment thread rules/@typescript-no-watch/@typescript-no-watch.md Outdated
@@ -0,0 +1,7 @@
const event = {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add some smoke cases to correct test. E.g. sample({ ... }), `forward({...}), etc.

@binjospookie
Copy link
Copy Markdown
Contributor Author

Made all necessary changes.

Copy link
Copy Markdown
Member

@igorkamyshev igorkamyshev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job!

I think, we are ready to merge it. I've left some comments about test-cases. Once you fix it, I'll merge PR.

Comment thread rules/no-watch/no-watch.ts.test.js
.map(readExampleForTheRule)
.map((result) => ({
...result,
errors: [
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pattern leads to hard debugging. Could you split incorrect test-cases and put it by files with only one error?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean that for every incorrect case there should be a separate file?
1 error per file

For example: effects has 5 cases => 5 files

Am I right?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, in this case up to you. I think, it's easier to debug in case of broken tests, but I can be wrong here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You right. I choose a solution in the middle. No more than 2 errors per case.

@binjospookie
Copy link
Copy Markdown
Contributor Author

Nice. I'll try to fix it asap 🙂

@igorkamyshev
Copy link
Copy Markdown
Member

Let me know, when you'll be ready to merge. For me, this PR looks good.

@binjospookie
Copy link
Copy Markdown
Contributor Author

I'm ready to merge🙃

@igorkamyshev igorkamyshev merged commit 9af46f3 into effector:master Oct 6, 2021
@igorkamyshev
Copy link
Copy Markdown
Member

Thanks! Will be released in a week with 0.4.0.

@binjospookie binjospookie deleted the rule-no-watch branch October 6, 2021 14:16
@binjospookie
Copy link
Copy Markdown
Contributor Author

Thank u too!

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

Successfully merging this pull request may close these issues.

Rule: no-watch

2 participants